global: add RST macros for GPIO
This commit is contained in:
parent
55c6319928
commit
a310fb402a
4
global.h
4
global.h
|
@ -336,6 +336,10 @@
|
|||
#define RCC_GPIO(x) CAT2(RCC_GPIO,x)
|
||||
/** get RCC for GPIO based on GPIO identifier */
|
||||
#define GPIO_RCC(x) RCC_GPIO(GPIO_PORT_ID(x))
|
||||
/** get RST for GPIO based on GPIO identifier */
|
||||
#define RST_GPIO(x) CAT2(RST_GPIO,x)
|
||||
/** get RST for GPIO based on GPIO identifier */
|
||||
#define GPIO_RST(x) RST_GPIO(GPIO_PORT_ID(x))
|
||||
/** get TIM based on TIM identifier */
|
||||
#define TIM(x) CAT2(TIM,x)
|
||||
/** get RCC for timer based on TIM identifier */
|
||||
|
|
Loading…
Reference in New Issue