libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
EXTI Defines

Defined Constants and Types for the STM32G0xx EXTI Control More...

Collaboration diagram for EXTI Defines:

Modules

 EXTI Registers
 

Macros

#define EXTI_EXTICR(i)   MMIO32(EXTI_BASE + 0x60 + (i)*4)
 EXTI External Interrupt Selection Registers. More...
 
#define EXTI_EXTICR1   MMIO32(EXTI_BASE + 0x60)
 
#define EXTI_EXTICR2   MMIO32(EXTI_BASE + 0x64)
 
#define EXTI_EXTICR3   MMIO32(EXTI_BASE + 0x68)
 
#define EXTI_EXTICR4   MMIO32(EXTI_BASE + 0x6c)
 
#define EXTI_RPR1   MMIO32(EXTI_BASE + 0x0c)
 EXTI Rising Edge Pending Register. More...
 
#define EXTI_FPR1   MMIO32(EXTI_BASE + 0x10)
 EXTI Falling Edge Pending Register. More...
 
#define EXTI0   (1 << 0)
 
#define EXTI1   (1 << 1)
 
#define EXTI2   (1 << 2)
 
#define EXTI3   (1 << 3)
 
#define EXTI4   (1 << 4)
 
#define EXTI5   (1 << 5)
 
#define EXTI6   (1 << 6)
 
#define EXTI7   (1 << 7)
 
#define EXTI8   (1 << 8)
 
#define EXTI9   (1 << 9)
 
#define EXTI10   (1 << 10)
 
#define EXTI11   (1 << 11)
 
#define EXTI12   (1 << 12)
 
#define EXTI13   (1 << 13)
 
#define EXTI14   (1 << 14)
 
#define EXTI15   (1 << 15)
 
#define EXTI16   (1 << 16)
 
#define EXTI17   (1 << 17)
 
#define EXTI18   (1 << 18)
 
#define EXTI19   (1 << 19)
 
#define EXTI20   (1 << 20)
 
#define EXTI21   (1 << 21)
 
#define EXTI22   (1 << 22)
 
#define EXTI23   (1 << 23)
 
#define EXTI24   (1 << 24)
 
#define EXTI25   (1 << 25)
 
#define EXTI26   (1 << 26)
 
#define EXTI27   (1 << 27)
 
#define EXTI28   (1 << 28)
 
#define EXTI29   (1 << 29)
 
#define EXTI30   (1 << 30)
 
#define EXTI31   (1 << 31)
 
#define EXTI32   (1 << 0)
 
#define EXTI33   (1 << 1)
 
#define EXTI34   (1 << 2)
 
#define EXTI35   (1 << 3)
 
#define EXTI36   (1 << 4)
 
#define EXTI37   (1 << 5)
 
#define EXTI_EXTICR_FIELDSIZE   8
 
#define EXTI_EXTICR_GPIOA   0
 
#define EXTI_EXTICR_GPIOB   1
 
#define EXTI_EXTICR_GPIOC   2
 
#define EXTI_EXTICR_GPIOD   3
 
#define EXTI_EXTICR_GPIOE   4
 
#define EXTI_EXTICR_GPIOF   5
 
#define EXTI_EXTICR_GPIOG   6
 
#define EXTI_EXTICR_GPIOH   7
 

Enumerations

enum  exti_trigger_type { EXTI_TRIGGER_RISING , EXTI_TRIGGER_FALLING , EXTI_TRIGGER_BOTH }
 

Functions

void exti_set_trigger (uint32_t extis, enum exti_trigger_type trig)
 
void exti_enable_request (uint32_t extis)
 
void exti_disable_request (uint32_t extis)
 
void exti_reset_request (uint32_t extis)
 
void exti_select_source (uint32_t exti, uint32_t gpioport)
 
uint32_t exti_get_flag_status (uint32_t exti)
 
uint32_t exti_get_rising_flag_status (uint32_t exti)
 
uint32_t exti_get_falling_flag_status (uint32_t exti)
 
void exti_reset_rising_request (uint32_t extis)
 
void exti_reset_falling_request (uint32_t extis)
 

Detailed Description

Defined Constants and Types for the STM32G0xx EXTI Control

Version
1.0.0

LGPL License Terms libopencm3 License

Author
© 2010 Mark Butler mbutl.nosp@m.er@p.nosp@m.hysic.nosp@m.s.ot.nosp@m.ago.a.nosp@m.c.nz
© 2019 Guillaume Revaillot g.rev.nosp@m.aill.nosp@m.ot@gm.nosp@m.ail..nosp@m.com

Macro Definition Documentation

◆ EXTI0

#define EXTI0   (1 << 0)

Definition at line 33 of file exti_common_all.h.

◆ EXTI1

#define EXTI1   (1 << 1)

Definition at line 34 of file exti_common_all.h.

◆ EXTI10

#define EXTI10   (1 << 10)

Definition at line 43 of file exti_common_all.h.

◆ EXTI11

#define EXTI11   (1 << 11)

Definition at line 44 of file exti_common_all.h.

◆ EXTI12

#define EXTI12   (1 << 12)

Definition at line 45 of file exti_common_all.h.

◆ EXTI13

#define EXTI13   (1 << 13)

Definition at line 46 of file exti_common_all.h.

◆ EXTI14

#define EXTI14   (1 << 14)

Definition at line 47 of file exti_common_all.h.

◆ EXTI15

#define EXTI15   (1 << 15)

Definition at line 48 of file exti_common_all.h.

◆ EXTI16

#define EXTI16   (1 << 16)

Definition at line 49 of file exti_common_all.h.

◆ EXTI17

#define EXTI17   (1 << 17)

Definition at line 50 of file exti_common_all.h.

◆ EXTI18

#define EXTI18   (1 << 18)

Definition at line 51 of file exti_common_all.h.

◆ EXTI19

#define EXTI19   (1 << 19)

Definition at line 52 of file exti_common_all.h.

◆ EXTI2

#define EXTI2   (1 << 2)

Definition at line 35 of file exti_common_all.h.

◆ EXTI20

#define EXTI20   (1 << 20)

Definition at line 53 of file exti_common_all.h.

◆ EXTI21

#define EXTI21   (1 << 21)

Definition at line 54 of file exti_common_all.h.

◆ EXTI22

#define EXTI22   (1 << 22)

Definition at line 55 of file exti_common_all.h.

◆ EXTI23

#define EXTI23   (1 << 23)

Definition at line 56 of file exti_common_all.h.

◆ EXTI24

#define EXTI24   (1 << 24)

Definition at line 57 of file exti_common_all.h.

◆ EXTI25

#define EXTI25   (1 << 25)

Definition at line 58 of file exti_common_all.h.

◆ EXTI26

#define EXTI26   (1 << 26)

Definition at line 59 of file exti_common_all.h.

◆ EXTI27

#define EXTI27   (1 << 27)

Definition at line 60 of file exti_common_all.h.

◆ EXTI28

#define EXTI28   (1 << 28)

Definition at line 61 of file exti_common_all.h.

◆ EXTI29

#define EXTI29   (1 << 29)

Definition at line 62 of file exti_common_all.h.

◆ EXTI3

#define EXTI3   (1 << 3)

Definition at line 36 of file exti_common_all.h.

◆ EXTI30

#define EXTI30   (1 << 30)

Definition at line 63 of file exti_common_all.h.

◆ EXTI31

#define EXTI31   (1 << 31)

Definition at line 64 of file exti_common_all.h.

◆ EXTI32

#define EXTI32   (1 << 0)

Definition at line 66 of file exti_common_all.h.

◆ EXTI33

#define EXTI33   (1 << 1)

Definition at line 67 of file exti_common_all.h.

◆ EXTI34

#define EXTI34   (1 << 2)

Definition at line 68 of file exti_common_all.h.

◆ EXTI35

#define EXTI35   (1 << 3)

Definition at line 69 of file exti_common_all.h.

◆ EXTI36

#define EXTI36   (1 << 4)

Definition at line 70 of file exti_common_all.h.

◆ EXTI37

#define EXTI37   (1 << 5)

Definition at line 71 of file exti_common_all.h.

◆ EXTI4

#define EXTI4   (1 << 4)

Definition at line 37 of file exti_common_all.h.

◆ EXTI5

#define EXTI5   (1 << 5)

Definition at line 38 of file exti_common_all.h.

◆ EXTI6

#define EXTI6   (1 << 6)

Definition at line 39 of file exti_common_all.h.

◆ EXTI7

#define EXTI7   (1 << 7)

Definition at line 40 of file exti_common_all.h.

◆ EXTI8

#define EXTI8   (1 << 8)

Definition at line 41 of file exti_common_all.h.

◆ EXTI9

#define EXTI9   (1 << 9)

Definition at line 42 of file exti_common_all.h.

◆ EXTI_EXTICR

#define EXTI_EXTICR (   i)    MMIO32(EXTI_BASE + 0x60 + (i)*4)

EXTI External Interrupt Selection Registers.

Definition at line 36 of file g0/exti.h.

◆ EXTI_EXTICR1

#define EXTI_EXTICR1   MMIO32(EXTI_BASE + 0x60)

Definition at line 37 of file g0/exti.h.

◆ EXTI_EXTICR2

#define EXTI_EXTICR2   MMIO32(EXTI_BASE + 0x64)

Definition at line 38 of file g0/exti.h.

◆ EXTI_EXTICR3

#define EXTI_EXTICR3   MMIO32(EXTI_BASE + 0x68)

Definition at line 39 of file g0/exti.h.

◆ EXTI_EXTICR4

#define EXTI_EXTICR4   MMIO32(EXTI_BASE + 0x6c)

Definition at line 40 of file g0/exti.h.

◆ EXTI_EXTICR_FIELDSIZE

#define EXTI_EXTICR_FIELDSIZE   8

Definition at line 64 of file exti_common_v2.h.

◆ EXTI_EXTICR_GPIOA

#define EXTI_EXTICR_GPIOA   0

Definition at line 65 of file exti_common_v2.h.

◆ EXTI_EXTICR_GPIOB

#define EXTI_EXTICR_GPIOB   1

Definition at line 66 of file exti_common_v2.h.

◆ EXTI_EXTICR_GPIOC

#define EXTI_EXTICR_GPIOC   2

Definition at line 67 of file exti_common_v2.h.

◆ EXTI_EXTICR_GPIOD

#define EXTI_EXTICR_GPIOD   3

Definition at line 68 of file exti_common_v2.h.

◆ EXTI_EXTICR_GPIOE

#define EXTI_EXTICR_GPIOE   4

Definition at line 69 of file exti_common_v2.h.

◆ EXTI_EXTICR_GPIOF

#define EXTI_EXTICR_GPIOF   5

Definition at line 70 of file exti_common_v2.h.

◆ EXTI_EXTICR_GPIOG

#define EXTI_EXTICR_GPIOG   6

Definition at line 71 of file exti_common_v2.h.

◆ EXTI_EXTICR_GPIOH

#define EXTI_EXTICR_GPIOH   7

Definition at line 72 of file exti_common_v2.h.

◆ EXTI_FPR1

#define EXTI_FPR1   MMIO32(EXTI_BASE + 0x10)

EXTI Falling Edge Pending Register.

Definition at line 45 of file g0/exti.h.

◆ EXTI_RPR1

#define EXTI_RPR1   MMIO32(EXTI_BASE + 0x0c)

EXTI Rising Edge Pending Register.

Definition at line 43 of file g0/exti.h.

Enumeration Type Documentation

◆ exti_trigger_type

Enumerator
EXTI_TRIGGER_RISING 
EXTI_TRIGGER_FALLING 
EXTI_TRIGGER_BOTH 

Definition at line 74 of file exti_common_all.h.

Function Documentation

◆ exti_disable_request()

void exti_disable_request ( uint32_t  extis)

Definition at line 71 of file exti_common_all.c.

References EXTI_EMR, and EXTI_IMR.

◆ exti_enable_request()

void exti_enable_request ( uint32_t  extis)

Definition at line 62 of file exti_common_all.c.

References EXTI_EMR, and EXTI_IMR.

◆ exti_get_falling_flag_status()

uint32_t exti_get_falling_flag_status ( uint32_t  exti)

Definition at line 46 of file exti_common_v2.c.

References EXTI_FPR1.

◆ exti_get_flag_status()

uint32_t exti_get_flag_status ( uint32_t  exti)

Definition at line 97 of file exti_common_all.c.

References EXTI_FPR1, and EXTI_RPR1.

◆ exti_get_rising_flag_status()

uint32_t exti_get_rising_flag_status ( uint32_t  exti)

Definition at line 36 of file exti_common_v2.c.

References EXTI_RPR1.

◆ exti_reset_falling_request()

void exti_reset_falling_request ( uint32_t  extis)

Definition at line 66 of file exti_common_v2.c.

References EXTI_FPR1.

◆ exti_reset_request()

void exti_reset_request ( uint32_t  extis)

Definition at line 84 of file exti_common_all.c.

References EXTI_FPR1, and EXTI_RPR1.

◆ exti_reset_rising_request()

void exti_reset_rising_request ( uint32_t  extis)

Definition at line 56 of file exti_common_v2.c.

References EXTI_RPR1.

◆ exti_select_source()

void exti_select_source ( uint32_t  exti,
uint32_t  gpioport 
)

◆ exti_set_trigger()

void exti_set_trigger ( uint32_t  extis,
enum exti_trigger_type  trig 
)