Guest User

Untitled

a guest
Feb 27th, 2020
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data