add timer channel macros

This commit is contained in:
King Kévin 2017-01-19 23:31:58 +01:00
parent be0b5c8b06
commit e30172da33
1 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,10 @@
*/
/** get GPIO based on GPIO identifier */
#define GPIO(x) CAT2(GPIO,x)
/** get GPIO based on identifier */
#define GPIO_(x) CAT2(GPIO_,x)
/** get GPIO based on bank identifier */
#define GPIO_BANK_(x) CAT2(GPIO_BANK_,x)
/** get RCC for GPIO based on GPIO identifier */
#define RCC_GPIO(x) CAT2(RCC_GPIO,x)
/** get TIM based on TIM identifier */