~ruther/stm32h747i-disco-usb-image-viewer

ref: c8fe27c955b05f63fefa02f9c19dbbfb47de11ee stm32h747i-disco-usb-image-viewer/include/exti.h -rw-r--r-- 601 bytes
c8fe27c9 — Rutherther feat: implement usb devicd cdc descriptors, init, setup 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdint.h>
#include <stm32h747xx.h>

#ifndef EXTI_H
#define EXTI_H

typedef struct {
  EXTI_TypeDef* exti;
  SYSCFG_TypeDef* syscfg;
} exti_t;

exti_t* exti_init(EXTI_TypeDef* exti, SYSCFG_TypeDef* syscfg);
void exti_external_interrupt(exti_t* exti, uint8_t line, uint8_t gpio);

// Only 21 positions are now supported. This is too hard for other ones.
void exti_rising_interrupt(exti_t* exti, uint8_t line);
void exti_falling_interrupt(exti_t* exti, uint8_t line);
void exti_disable_interrupt(exti_t* exti, uint8_t line);

void exti_nvic_setup(exti_t* exti, uint8_t line);

#endif // EXTI_H
Do not follow this link