From a310fb402acae2b25e8980d714cd2310693b7de0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Sun, 14 Jun 2020 19:01:29 +0200 Subject: [PATCH] global: add RST macros for GPIO --- global.h | 4 ++++ 1 file changed, 4 insertions(+) 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 */