|
| #define | STM32F4 |
| | STM32 Family.
|
| |
| #define | __STM32F4xx_CMSIS_VERSION_MAIN (0x02U) |
| | Comment the line below if you will not use the peripherals drivers. In this case, these drivers will not be included and the application code will be based on direct access to peripherals registers.
|
| |
| #define | __STM32F4xx_CMSIS_VERSION_SUB1 (0x06U) |
| |
| #define | __STM32F4xx_CMSIS_VERSION_SUB2 (0x08U) |
| |
| #define | __STM32F4xx_CMSIS_VERSION_RC (0x00U) |
| |
| #define | __STM32F4xx_CMSIS_VERSION |
| |
| #define | IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE)) |
| |
| #define | SET_BIT(REG, BIT) ((REG) |= (BIT)) |
| |
| #define | CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) |
| |
| #define | READ_BIT(REG, BIT) ((REG) & (BIT)) |
| |
| #define | CLEAR_REG(REG) ((REG) = (0x0)) |
| |
| #define | WRITE_REG(REG, VAL) ((REG) = (VAL)) |
| |
| #define | READ_REG(REG) ((REG)) |
| |
| #define | MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK))) |
| |
| #define | POSITION_VAL(VAL) (__CLZ(__RBIT(VAL))) |
| |
| #define | ATOMIC_SET_BIT(REG, BIT) |
| |
| #define | ATOMIC_CLEAR_BIT(REG, BIT) |
| |
| #define | ATOMIC_MODIFY_REG(REG, CLEARMSK, SETMASK) |
| |
| #define | ATOMIC_SETH_BIT(REG, BIT) |
| |
| #define | ATOMIC_CLEARH_BIT(REG, BIT) |
| |
| #define | ATOMIC_MODIFYH_REG(REG, CLEARMSK, SETMASK) |
| |