| /bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Include/ |
| A D | stm32l1xx.h | 204 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument 206 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument 208 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument 210 #define CLEAR_REG(REG) ((REG) = (0x0)) argument 212 #define WRITE_REG(REG, VAL) ((REG) = (VAL)) argument 214 #define READ_REG(REG) ((REG)) argument 216 #define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) |… argument 220 #define ATOMIC_SET_BIT(REG, BIT) \ argument 224 val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \ 225 } while ((__STREXW(val,(__IO uint32_t *)&(REG))) != 0U); \ [all …]
|
| /bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/CMSIS/Include/ |
| A D | fm33xx.h | 81 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument 83 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument 85 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument 87 #define CLEAR_REG(REG) ((REG) = (0x0)) argument 89 #define WRITE_REG(REG, VAL) ((REG) = (VAL)) argument 91 #define READ_REG(REG) ((REG)) argument 93 #define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) |… argument
|
| /bsp/fm33lc026/libraries/FM/FM33xx/Include/ |
| A D | fm33xx.h | 81 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument 83 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument 85 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument 87 #define CLEAR_REG(REG) ((REG) = (0x0)) argument 89 #define WRITE_REG(REG, VAL) ((REG) = (VAL)) argument 91 #define READ_REG(REG) ((REG)) argument 93 #define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) |… argument
|
| /bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Inc/ |
| A D | fm33lc0xx_fl_def.h | 46 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument 47 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument 48 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument 49 #define CLEAR_REG(REG) ((REG) = (0x0)) argument 50 #define WRITE_REG(REG, VAL) ((REG) = (VAL)) argument 51 #define READ_REG(REG) ((REG)) argument 52 #define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) |… argument
|
| /bsp/ft32/libraries/FT32F0xx/CMSIS/FT32F0xx/Include/ |
| A D | ft32f0xx.h | 79 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument 81 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument 83 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument 85 #define CLEAR_REG(REG) ((REG) = (0x0)) argument 87 #define WRITE_REG(REG, VAL) ((REG) = (VAL)) argument 89 #define READ_REG(REG) ((REG)) argument 91 #define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) |… argument
|
| /bsp/nuvoton/libraries/nu_packages/NuUtils/inc/ |
| A D | nu_miscutil.h | 27 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument 28 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument 29 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument 30 #define CLEAR_REG(REG) ((REG) = (0x0)) argument 31 #define WRITE_REG(REG, VAL) ((REG) = (VAL)) argument 32 #define READ_REG(REG) ((REG)) argument 33 #define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) |… argument
|
| /bsp/hc32l196/Libraries/HC32L196_StdPeriph_Driver/inc/ |
| A D | hc32l196_ddl.h | 79 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument 81 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument 83 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument 85 #define CLEAR_REG(REG) ((REG) = (0x0)) argument 87 #define WRITE_REG(REG, VAL) ((REG) = (VAL)) argument 89 #define READ_REG(REG) ((REG)) argument 91 #define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) |… argument
|
| /bsp/hk32/libraries/HK32F0xx_StdPeriph_Driver/CMSIS/HK32F0xx/Include/ |
| A D | hk32f0xx.h | 108 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument 110 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument 112 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument 114 #define CLEAR_REG(REG) ((REG) = (0x0)) argument 116 #define WRITE_REG(REG, VAL) ((REG) = (VAL)) argument 118 #define READ_REG(REG) ((REG)) argument 120 #define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) |… argument
|
| /bsp/rockchip/common/rk_hal/lib/hal/inc/ |
| A D | hal_def.h | 33 #define SET_BIT(REG, BIT) ((*(volatile uint32_t *)&(REG)) |= (BIT)) /**< Set 1 to the reg… argument 34 #define CLEAR_BIT(REG, MASK) ((*(volatile uint32_t *)&(REG)) &= ~(MASK)) /**< Clear the specif… argument 35 #define READ_BIT(REG, MASK) ((*(volatile const uint32_t *)&(REG)) & (MASK)) /**< Read the value o… argument 36 #define CLEAR_REG(REG) ((*(volatile uint32_t *)&(REG)) = (0x0)) /**< Write 0 to the r… argument 37 #define WRITE_REG(REG, VAL) ((*(volatile uint32_t *)&(REG)) = (VAL)) /**< Write the regist… argument 38 #define READ_REG(REG) ((*(volatile const uint32_t *)&(REG))) /**< Read the registe… argument 39 #define MODIFY_REG(REG, CLEARMASK, SETMASK) \ argument 40 …WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK))) /**< Clear and set the value… 55 #define HAL_IS_BIT_SET(REG, MASK) (((*(volatile uint32_t *)&(REG)) & (MASK)) != RESET) /**< Check … argument 56 #define HAL_IS_BIT_CLR(REG, MASK) (((*(volatile uint32_t *)&(REG)) & (MASK)) == RESET) /**< Check … argument
|
| /bsp/tae32f5300/Libraries/TAE32F53xx_StdPeriph_Driver/inc/ |
| A D | tae32f53xx_ll_def.h | 203 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument 211 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument 219 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument 226 #define CLEAR_REG(REG) ((REG) = (0x0)) argument 234 #define WRITE_REG(REG, VAL) ((REG) = (VAL)) argument 241 #define READ_REG(REG) ((REG)) argument 250 #define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | … argument
|
| /bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Inc/ |
| A D | stm32l1xx_hal_def.h | 62 #define HAL_IS_BIT_SET(REG, BIT) (((REG) & (BIT)) == (BIT)) argument 63 #define HAL_IS_BIT_CLR(REG, BIT) (((REG) & (BIT)) == 0U) argument
|
| /bsp/n32/libraries/N32G45x_Firmware_Library/n32g45x_std_periph_driver/inc/ |
| A D | n32g45x_eth.h | 270 #define IS_ETH_PHY_REG(REG) ((REG) < 0x20) argument 1369 #define IS_ETH_MMC_REGISTER(REG) … argument 1370 …(((REG) == ETH_MMCCTRL) || ((REG) == ETH_MMCRXINT) || ((REG) == ETH_MMCTXINT) || ((REG) == ETH_MMC… 1371 …|| ((REG) == ETH_MMCTXINTMSK) || ((REG) == ETH_MMCTXGFASCCNT) || ((REG) == ETH_MMCTXGFAMSCCNT) … 1372 …|| ((REG) == ETH_MMCTXGFCNT) || ((REG) == ETH_MMCRXFCECNT) || ((REG) == ETH_MMCRXFAECNT) … 1373 || ((REG) == ETH_MMCRXGUFCNT)) 1425 #define IS_ETH_PTP_REGISTER(REG) … argument 1426 …(((REG) == ETH_PTPTSCTRL) || ((REG) == ETH_PTPSSINC) || ((REG) == ETH_PTPSEC) || ((REG) == ETH_PTP… 1427 …|| ((REG) == ETH_PTPSECUP) || ((REG) == ETH_PTPNSUP) || ((REG) == ETH_PTPTSADD) || ((REG) == ETH_P… 1428 || ((REG) == ETH_PTPTTNS))
|
| /bsp/n32g452xx/Libraries/N32_Std_Driver/n32g45x_std_periph_driver/inc/ |
| A D | n32g45x_eth.h | 270 #define IS_ETH_PHY_REG(REG) ((REG) < 0x20) argument 1369 #define IS_ETH_MMC_REGISTER(REG) … argument 1370 …(((REG) == ETH_MMCCTRL) || ((REG) == ETH_MMCRXINT) || ((REG) == ETH_MMCTXINT) || ((REG) == ETH_MMC… 1371 …|| ((REG) == ETH_MMCTXINTMSK) || ((REG) == ETH_MMCTXGFASCCNT) || ((REG) == ETH_MMCTXGFAMSCCNT) … 1372 …|| ((REG) == ETH_MMCTXGFCNT) || ((REG) == ETH_MMCRXFCECNT) || ((REG) == ETH_MMCRXFAECNT) … 1373 || ((REG) == ETH_MMCRXGUFCNT)) 1425 #define IS_ETH_PTP_REGISTER(REG) … argument 1426 …(((REG) == ETH_PTPTSCTRL) || ((REG) == ETH_PTPSSINC) || ((REG) == ETH_PTPSEC) || ((REG) == ETH_PTP… 1427 …|| ((REG) == ETH_PTPSECUP) || ((REG) == ETH_PTPNSUP) || ((REG) == ETH_PTPTSADD) || ((REG) == ETH_P… 1428 || ((REG) == ETH_PTPTTNS))
|
| /bsp/acm32/acm32f0x0-nucleo/libraries/Device/ |
| A D | ACM32F0x0.h | 732 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument 734 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument 736 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument 738 #define CLEAR_REG(REG) ((REG) = (0x0)) argument 740 #define WRITE_REG(REG, VAL) ((REG) = (VAL)) argument 742 #define READ_REG(REG) ((REG)) argument 744 #define MODIFY_REG(REG,MASK,BITS) ((REG) = (((REG)&(~(MASK)))|((BITS)&(MASK)))) argument
|
| /bsp/acm32/acm32f4xx-nucleo/libraries/Device/ |
| A D | ACM32F4.h | 817 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) argument 819 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) argument 821 #define READ_BIT(REG, BIT) ((REG) & (BIT)) argument 823 #define CLEAR_REG(REG) ((REG) = (0x0)) argument 825 #define WRITE_REG(REG, VAL) ((REG) = (VAL)) argument 827 #define READ_REG(REG) ((REG)) argument 829 #define MODIFY_REG(REG,MASK,BITS) ((REG) = (((REG)&(~(MASK)))|((BITS)&(MASK)))) argument
|
| /bsp/rockchip/common/rk_hal/lib/hal/src/pinctrl/ |
| A D | hal_pinctrl_iofunc.c | 58 #define _IOMUX_WRITE(REG, DATA, SHIFT, MASK) \ argument 61 HAL_DBG("PINCTRL Write before set reg val=0x%lx\n", REG); \ 62 REG = ((DATA) << (SHIFT)) | ((MASK) << 16); \ 63 HAL_DBG("PINCTRL Write after set reg val=0x%lx\n", REG); \
|
| /bsp/efm32/Libraries/Device/EnergyMicro/EFM32G/Include/ |
| A D | efm32g880f128.h | 398 #define SET_BIT_FIELD(REG, MASK, VALUE, OFFSET) \ argument 399 REG = ((REG) &~(MASK)) | (((VALUE) << (OFFSET)) & (MASK));
|
| A D | efm32g880f32.h | 398 #define SET_BIT_FIELD(REG, MASK, VALUE, OFFSET) \ argument 399 REG = ((REG) &~(MASK)) | (((VALUE) << (OFFSET)) & (MASK));
|
| A D | efm32g880f64.h | 398 #define SET_BIT_FIELD(REG, MASK, VALUE, OFFSET) \ argument 399 REG = ((REG) &~(MASK)) | (((VALUE) << (OFFSET)) & (MASK));
|
| A D | efm32g890f128.h | 398 #define SET_BIT_FIELD(REG, MASK, VALUE, OFFSET) \ argument 399 REG = ((REG) &~(MASK)) | (((VALUE) << (OFFSET)) & (MASK));
|
| A D | efm32g890f32.h | 398 #define SET_BIT_FIELD(REG, MASK, VALUE, OFFSET) \ argument 399 REG = ((REG) &~(MASK)) | (((VALUE) << (OFFSET)) & (MASK));
|
| A D | efm32g890f64.h | 398 #define SET_BIT_FIELD(REG, MASK, VALUE, OFFSET) \ argument 399 REG = ((REG) &~(MASK)) | (((VALUE) << (OFFSET)) & (MASK));
|
| /bsp/efm32/Libraries/Device/EnergyMicro/EFM32GG/Include/ |
| A D | efm32gg990f512.h | 457 #define SET_BIT_FIELD(REG, MASK, VALUE, OFFSET) \ argument 458 REG = ((REG) &~(MASK)) | (((VALUE) << (OFFSET)) & (MASK));
|
| A D | efm32gg995f1024.h | 457 #define SET_BIT_FIELD(REG, MASK, VALUE, OFFSET) \ argument 458 REG = ((REG) &~(MASK)) | (((VALUE) << (OFFSET)) & (MASK));
|
| A D | efm32gg995f512.h | 457 #define SET_BIT_FIELD(REG, MASK, VALUE, OFFSET) \ argument 458 REG = ((REG) &~(MASK)) | (((VALUE) << (OFFSET)) & (MASK));
|