global: add RST macros for GPIO

This commit is contained in:
King Kévin 2020-06-14 19:01:29 +02:00
parent 55c6319928
commit a310fb402a
1 changed files with 4 additions and 0 deletions

View File

@ -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 */