diff --git a/global.h b/global.h index 38e6129..9bbca0e 100644 --- a/global.h +++ b/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 */