Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.48 KB | None | 0 0
  1. #define __HAL_RCC_GPIOx_CLK_ENABLE(x)   do { \
  2.                                         __IO uint32_t tmpreg; \
  3.                                         SET_BIT(RCC->AHB1ENR, (0x1UL << (x*1U)));\
  4.                                         /* Delay after an RCC peripheral clock enabling */ \
  5.                                         tmpreg = READ_BIT(RCC->AHB1ENR, (0x1UL << (x*1U)));\
  6.                                         UNUSED(tmpreg); \
  7.                                       } while(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement