| /bsp/apm32/libraries/APM32F0xx_Library/APM32F0xx_StdPeriphDriver/src/ |
| A D | apm32f0xx_ob.c | 75 OB->READPORT_B.READPROT = readProtection; in OB_ReadProtectionOptionByte() 87 OB->USER_B.WDTSEL = wdt; in OB_OptionBytesWatchdog() 99 OB->USER_B.RSTSTOP = stop; in OB_OptionBytesStop() 111 OB->USER_B.RSTSTDBY = standby; in OB_OptionBytesStandby() 123 OB->USER_B.BOT1 = boot; in OB_OptionBytesBoot1() 135 OB->USER_B.VDDAMON = vdda; in OB_OptionBytesVddaAnalog() 147 OB->USER_B.RPC = ramParityCheck; in OB_OptionBytesRamParity()
|
| A D | apm32f0xx_fmc.c | 419 OB->READPROT = rpKey; in FMC_EraseOptionByte() 458 WRPT = &OB->WRTPROT0; in FMC_EnableWriteProtection() 528 OB->READPROT = rdp; in FMC_ConfigReadOutProtection() 576 OB->USER = temp; in FMC_ConfigOptionByteUser() 610 OB->USER_B.BOT1 = BIT_SET; in FMC_EnableOptionByteBOOT() 644 OB->USER_B.BOT1 = BIT_RESET; in FMC_DisableOptionByteBOOT() 679 OB->USER_B.VDDAMON = BIT_SET; in FMC_EnableOptionByteVDDA() 714 OB->USER_B.VDDAMON = BIT_RESET; in FMC_DisableOptionByteVDDA() 749 OB->USER_B.RPC = BIT_SET; in FMC_EnableOptionByteSRAMParity() 784 OB->USER_B.RPC = BIT_RESET; in FMC_DisableOptionByteSRAMParity() [all …]
|
| /bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Src/ |
| A D | stm32l1xx_hal_flash_ex.c | 668 OB->RDP = tmp2; in HAL_FLASHEx_OB_SelectPCROP() 711 OB->RDP = tmp2; in HAL_FLASHEx_OB_DeSelectPCROP() 998 OB->RDP = tmp2; in FLASH_OB_RDPConfig() 1046 OB->USER = tmp; in FLASH_OB_BORConfig() 1252 OB->WRP01 = tmp1; in FLASH_OB_WRPConfigWRP1OrPCROP1() 1255 OB->WRP23 = tmp2; in FLASH_OB_WRPConfigWRP1OrPCROP1() 1263 OB->WRP01 = tmp1; in FLASH_OB_WRPConfigWRP1OrPCROP1() 1266 OB->WRP23 = tmp2; in FLASH_OB_WRPConfigWRP1OrPCROP1() 1298 OB->WRP45 = tmp1; in FLASH_OB_WRPConfigWRP2OrPCROP2() 1450 OB->USER = tmp; in FLASH_OB_UserConfig() [all …]
|
| /bsp/ft32/libraries/FT32F0xx/FT32F0xx_Driver/Src/ |
| A D | ft32f0xx_flash.c | 432 OB->RDP = (uint16_t)rdptmp; in FLASH_OB_Erase() 492 OB->WRP0 = WRP0_Data; in FLASH_OB_EnableWRP() 499 OB->WRP1 = WRP1_Data; in FLASH_OB_EnableWRP() 506 OB->WRP2 = WRP2_Data; in FLASH_OB_EnableWRP() 513 OB->WRP3 = WRP3_Data; in FLASH_OB_EnableWRP() 565 OB->RDP = OB_RDP; in FLASH_OB_RDPConfig() 664 OB->USER = OB_BOOT1 | 0xEF; in FLASH_OB_BOOTConfig() 789 OB->USER = OB_USER; in FLASH_OB_WriteUser() 899 OB->USER_RDP = rdptmp; in FLASH_OB_Erase() 1033 OB->USER_RDP = ob_user_rdp; in FLASH_OB_RDPConfig() [all …]
|
| /bsp/mm32f526x/ |
| A D | README.md | 1 # MM32F5265-OB开发板BSP 说明 9 本文档为MM32F5265-OB 评估板bsp适配说明 13 MM32F5265-OB 是为了用户快速上手、了解学习MM32系列MCU的一块入门级开发板,可满足基础测试及高端开发需求。 17 MM32F5265-OB 19  21 #### MM32F5265-OB 开发板特性:
|
| /bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_standard_peripheral/Include/ |
| A D | gd32vf103_fmc.h | 45 #define OB OB_BASE /*!< option bytes base address */ macro 58 #define OB_SPC REG16((OB) + 0x00U) /*!< option byte security protec… 59 #define OB_USER REG16((OB) + 0x02U) /*!< option byte user value*/ 60 #define OB_WP0 REG16((OB) + 0x08U) /*!< option byte write protectio… 61 #define OB_WP1 REG16((OB) + 0x0AU) /*!< option byte write protectio… 62 #define OB_WP2 REG16((OB) + 0x0CU) /*!< option byte write protectio… 63 #define OB_WP3 REG16((OB) + 0x0EU) /*!< option byte write protectio…
|
| /bsp/hk32/libraries/HK32F0xx_StdPeriph_Driver/src/ |
| A D | hk32f0xx_flash.c | 532 OB->RDP = (uint16_t)rdptmp; in FLASH_OB_Erase() 590 OB->WRP0 = WRP0_Data; in FLASH_OB_EnableWRP() 597 OB->WRP1 = WRP1_Data; in FLASH_OB_EnableWRP() 650 OB->RDP = OB_RDP; in FLASH_OB_RDPConfig() 711 OB->USER = (uint16_t)((uint16_t)(OB_IWDG | OB_STOP) | (uint16_t)(OB_STDBY | 0xF8)); in FLASH_OB_UserConfig() 749 OB->USER = OB_BOOT1 | 0xEF; in FLASH_OB_BOOTConfig() 788 OB->USER = OB_BOOT0 | 0xF7; in FLASH_OB_BOOT0Config() 827 OB->USER = OB_BOOT0SW | 0x7F; in FLASH_OB_BOOT0SWConfig() 865 OB->USER = OB_VDDA_ANALOG | 0xDF; in FLASH_OB_VDDAConfig() 903 OB->USER = OB_SRAM_Parity | 0xBF; in FLASH_OB_SRAMParityConfig() [all …]
|
| /bsp/apm32/libraries/APM32E10x_Library/APM32E10x_StdPeriphDriver/src/ |
| A D | apm32e10x_fmc.c | 218 OB->RDP = rdtemp; in FMC_EraseOptionBytes() 400 OB->WRP0 = WPP0_Data; in FMC_EnableWriteProtection() 405 OB->WRP1 = WPP1_Data; in FMC_EnableWriteProtection() 410 OB->WRP2 = WPP2_Data; in FMC_EnableWriteProtection() 415 OB->WRP3 = WPP3_Data; in FMC_EnableWriteProtection() 458 OB->RDP = 0x00; in FMC_EnableReadOutProtection() 505 OB->RDP = 0x00A5; in FMC_DisableReadOutProtection() 545 OB->USER = (uint32_t)userConfig->iwdtSet | \ in FMC_ConfigUserOptionByte()
|
| /bsp/apm32/libraries/APM32F10x_Library/APM32F10x_StdPeriphDriver/src/ |
| A D | apm32f10x_fmc.c | 218 OB->RDP = rdtemp; in FMC_EraseOptionBytes() 400 OB->WRP0 = WPP0_Data; in FMC_EnableWriteProtection() 405 OB->WRP1 = WPP1_Data; in FMC_EnableWriteProtection() 410 OB->WRP2 = WPP2_Data; in FMC_EnableWriteProtection() 415 OB->WRP3 = WPP3_Data; in FMC_EnableWriteProtection() 458 OB->RDP = 0x00; in FMC_EnableReadOutProtection() 505 OB->RDP = 0xA5; in FMC_DisableReadOutProtection() 545 OB->USER = (uint32_t)userConfig->iwdtSet | \ in FMC_ConfigUserOptionByte()
|
| /bsp/apm32/libraries/APM32S10x_Library/APM32S10x_StdPeriphDriver/src/ |
| A D | apm32s10x_fmc.c | 218 OB->RDP = rdtemp; in FMC_EraseOptionBytes() 394 OB->WRP0 = WPP0_Data; in FMC_EnableWriteProtection() 399 OB->WRP1 = WPP1_Data; in FMC_EnableWriteProtection() 404 OB->WRP2 = WPP2_Data; in FMC_EnableWriteProtection() 409 OB->WRP3 = WPP3_Data; in FMC_EnableWriteProtection() 452 OB->RDP = 0x00; in FMC_EnableReadOutProtection() 499 OB->RDP = 0xA5; in FMC_DisableReadOutProtection() 539 OB->USER = (uint32_t)userConfig->iwdtSet | \ in FMC_ConfigUserOptionByte()
|
| /bsp/mm32l07x/Libraries/MM32L0xx/HAL_lib/src/ |
| A D | HAL_flash.c | 309 OB->RDP= RDP_Key; in FLASH_EraseOptionBytes() 505 OB->WRP0 = WRP0_Data; in FLASH_EnableWriteProtection() 512 OB->WRP1 = WRP1_Data; in FLASH_EnableWriteProtection() 519 OB->WRP2 = WRP2_Data; in FLASH_EnableWriteProtection() 527 OB->WRP3 = WRP3_Data; in FLASH_EnableWriteProtection() 579 OB->RDP = 0x00; in FLASH_ReadOutProtection() 583 OB->RDP = RDP_Key; in FLASH_ReadOutProtection() 647 OB->USER = ( OB_IWDG | OB_STOP |OB_STDBY) | (uint16_t)0xF8; in FLASH_UserOptionByteConfig()
|
| /bsp/mm32l3xx/Libraries/MM32L3xx/HAL_lib/src/ |
| A D | HAL_flash.c | 308 OB->RDP= RDP_Key; in FLASH_EraseOptionBytes() 515 OB->WRP0 = WRP0_Data; in FLASH_EnableWriteProtection() 522 OB->WRP1 = WRP1_Data; in FLASH_EnableWriteProtection() 529 OB->WRP2 = WRP2_Data; in FLASH_EnableWriteProtection() 537 OB->WRP3 = WRP3_Data; in FLASH_EnableWriteProtection() 594 OB->RDP = 0x00; in FLASH_ReadOutProtection() 598 OB->RDP = RDP_Key; in FLASH_ReadOutProtection() 666 OB->USER = ( OB_IWDG | OB_STOP |OB_STDBY) | (uint16_t)0xF8; in FLASH_UserOptionByteConfig()
|
| /bsp/mm32f103x/Libraries/MM32F103/HAL_lib/src/ |
| A D | HAL_flash.c | 308 OB->RDP = RDP_Key; in FLASH_EraseOptionBytes() 515 OB->WRP0 = WRP0_Data; in FLASH_EnableWriteProtection() 522 OB->WRP1 = WRP1_Data; in FLASH_EnableWriteProtection() 529 OB->WRP2 = WRP2_Data; in FLASH_EnableWriteProtection() 537 OB->WRP3 = WRP3_Data; in FLASH_EnableWriteProtection() 594 OB->RDP = 0x00; in FLASH_ReadOutProtection() 598 OB->RDP = RDP_Key; in FLASH_ReadOutProtection() 666 OB->USER = ( OB_IWDG | OB_STOP | OB_STDBY) | (uint16_t)0xF8; in FLASH_UserOptionByteConfig()
|
| /bsp/wch/arm/Libraries/CH32F10x_StdPeriph_Driver/StdPeriph_Driver/src/ |
| A D | ch32f10x_flash.c | 259 OB->RDPR = (uint16_t)rdptmp; in FLASH_EraseOptionBytes() 393 OB->WRPR0 = WRP0_Data; in FLASH_EnableWriteProtection() 398 OB->WRPR1 = WRP1_Data; in FLASH_EnableWriteProtection() 403 OB->WRPR2 = WRP2_Data; in FLASH_EnableWriteProtection() 409 OB->WRPR3 = WRP3_Data; in FLASH_EnableWriteProtection() 445 OB->RDPR = 0x00; in FLASH_ReadOutProtection() 449 OB->RDPR = RDP_Key; in FLASH_ReadOutProtection() 496 OB->USER = OB_IWDG | (uint16_t)(OB_STOP | (uint16_t)(OB_STDBY | ((uint16_t)0xF8))); in FLASH_UserOptionByteConfig()
|
| /bsp/essemi/es32vf2264/ |
| A D | README.md | 23 - 调试接口,ESLinkⅡOB(EastSoft 官方推出的开发工具,自带 CDC 串口功能) SWD 下载 51 使用 ESLinkⅡOB (自带 CDC 串口)或 CKlink 等调试工具连接开发板到 PC,拨动开关选择使用调试工具供电或使用外部电源供电。若使用 Jlink 等调试工具,还需要将 CUART1… 55 双击 project.uvprojx 文件,打开 CDK 工程,工程默认配置使用ESLinkⅡOB,连接正常后即可编译并下载程序到开发板。
|
| /bsp/wch/arm/Libraries/CH32F20x_StdPeriph_Driver/StdPeriph_Driver/src/ |
| A D | ch32f20x_flash.c | 270 OB->RDPR = (uint16_t)rdptmp; in FLASH_EraseOptionBytes() 408 OB->WRPR0 = WRP0_Data; in FLASH_EnableWriteProtection() 413 OB->WRPR1 = WRP1_Data; in FLASH_EnableWriteProtection() 418 OB->WRPR2 = WRP2_Data; in FLASH_EnableWriteProtection() 424 OB->WRPR3 = WRP3_Data; in FLASH_EnableWriteProtection() 460 OB->RDPR = 0x00; in FLASH_ReadOutProtection() 464 OB->RDPR = RDP_Key; in FLASH_ReadOutProtection() 511 OB->USER = OB_IWDG | (uint16_t)(OB_STOP | (uint16_t)(OB_STDBY | ((uint16_t)0xF8))); in FLASH_UserOptionByteConfig()
|
| /bsp/n32/libraries/N32G4FR_Firmware_Library/n32g4fr_std_periph_driver/src/ |
| A D | n32g4fr_flash.c | 376 OB->USER_RDP = (uint32_t)rdptmp; in FLASH_EraseOB() 541 OB->WRP1_WRP0 = (((uint32_t)WRP0_Data) | (((uint32_t)WRP1_Data) << 16)); in FLASH_EnWriteProtection() 552 OB->WRP3_WRP2 = (((uint32_t)WRP2_Data) | (((uint32_t)WRP3_Data) << 16)); in FLASH_EnWriteProtection() 620 OB->USER_RDP = (FLASH_USER_USER & usertmp); in FLASH_ReadOutProtectionL1() 624 OB->USER_RDP = ((L1_RDP_Key & FLASH_RDP_RDP1) | usertmp); in FLASH_ReadOutProtectionL1() 700 OB->USER_RDP = usertmp; in FLASH_ReadOutProtectionL2_ENABLE() 710 OB->RDP2 = L2_RDP_Key; in FLASH_ReadOutProtectionL2_ENABLE() 806 OB->USER_RDP = in FLASH_ConfigUserOB()
|
| /bsp/n32/libraries/N32G45x_Firmware_Library/n32g45x_std_periph_driver/src/ |
| A D | n32g45x_flash.c | 376 OB->USER_RDP = (uint32_t)rdptmp; in FLASH_EraseOB() 541 OB->WRP1_WRP0 = (((uint32_t)WRP0_Data) | (((uint32_t)WRP1_Data) << 16)); in FLASH_EnWriteProtection() 552 OB->WRP3_WRP2 = (((uint32_t)WRP2_Data) | (((uint32_t)WRP3_Data) << 16)); in FLASH_EnWriteProtection() 620 OB->USER_RDP = (FLASH_USER_USER & usertmp); in FLASH_ReadOutProtectionL1() 624 OB->USER_RDP = ((L1_RDP_Key & FLASH_RDP_RDP1) | usertmp); in FLASH_ReadOutProtectionL1() 700 OB->USER_RDP = usertmp; in FLASH_ReadOutProtectionL2_ENABLE() 710 OB->RDP2 = L2_RDP_Key; in FLASH_ReadOutProtectionL2_ENABLE() 806 OB->USER_RDP = in FLASH_ConfigUserOB()
|
| /bsp/n32/libraries/N32WB452_Firmware_Library/n32wb452_std_periph_driver/src/ |
| A D | n32wb452_flash.c | 376 OB->USER_RDP = (uint32_t)rdptmp; in FLASH_EraseOB() 541 OB->WRP1_WRP0 = (((uint32_t)WRP0_Data) | (((uint32_t)WRP1_Data) << 16)); in FLASH_EnWriteProtection() 552 OB->WRP3_WRP2 = (((uint32_t)WRP2_Data) | (((uint32_t)WRP3_Data) << 16)); in FLASH_EnWriteProtection() 620 OB->USER_RDP = (FLASH_USER_USER & usertmp); in FLASH_ReadOutProtectionL1() 624 OB->USER_RDP = ((L1_RDP_Key & FLASH_RDP_RDP1) | usertmp); in FLASH_ReadOutProtectionL1() 700 OB->USER_RDP = usertmp; in FLASH_ReadOutProtectionL2_ENABLE() 710 OB->RDP2 = L2_RDP_Key; in FLASH_ReadOutProtectionL2_ENABLE() 806 OB->USER_RDP = in FLASH_ConfigUserOB()
|
| /bsp/n32g452xx/Libraries/N32_Std_Driver/n32g45x_std_periph_driver/src/ |
| A D | n32g45x_flash.c | 376 OB->USER_RDP = (uint32_t)rdptmp; in FLASH_EraseOB() 542 OB->WRP1_WRP0 = (((uint32_t)WRP0_Data) | (((uint32_t)WRP1_Data) << 16)); in FLASH_EnWriteProtection() 553 OB->WRP3_WRP2 = (((uint32_t)WRP2_Data) | (((uint32_t)WRP3_Data) << 16)); in FLASH_EnWriteProtection() 621 OB->USER_RDP = (FLASH_USER_USER & usertmp); in FLASH_ReadOutProtectionL1() 625 OB->USER_RDP = ((L1_RDP_Key & FLASH_RDP_RDP1) | usertmp); in FLASH_ReadOutProtectionL1() 701 OB->USER_RDP = usertmp; in FLASH_ReadOutProtectionL2_ENABLE() 711 OB->RDP2 = L2_RDP_Key; in FLASH_ReadOutProtectionL2_ENABLE() 807 OB->USER_RDP = in FLASH_ConfigUserOB()
|
| /bsp/wch/risc-v/Libraries/CH32V10x_StdPeriph_Driver/StdPeriph_Driver/src/ |
| A D | ch32v10x_flash.c | 290 OB->RDPR = (uint16_t)rdptmp; in FLASH_EraseOptionBytes() 445 OB->WRPR0 = WRP0_Data; in FLASH_EnableWriteProtection() 450 OB->WRPR1 = WRP1_Data; in FLASH_EnableWriteProtection() 455 OB->WRPR2 = WRP2_Data; in FLASH_EnableWriteProtection() 461 OB->WRPR3 = WRP3_Data; in FLASH_EnableWriteProtection() 500 OB->RDPR = 0x00; in FLASH_ReadOutProtection() 504 OB->RDPR = RDP_Key; in FLASH_ReadOutProtection() 554 OB->USER = OB_IWDG | (uint16_t)(OB_STOP | (uint16_t)(OB_STDBY | ((uint16_t)0xF8))); in FLASH_UserOptionByteConfig()
|
| /bsp/airm2m/air32f103/libraries/AIR32F10xLib/src/ |
| A D | air32f10x_flash.c | 717 OB->RDP = (uint16_t)rdptmp; in FLASH_EraseOptionBytes() 1069 OB->WRP0 = WRP0_Data; in FLASH_EnableWriteProtection() 1076 OB->WRP1 = WRP1_Data; in FLASH_EnableWriteProtection() 1083 OB->WRP2 = WRP2_Data; in FLASH_EnableWriteProtection() 1091 OB->WRP3 = WRP3_Data; in FLASH_EnableWriteProtection() 1140 OB->RDP = 0x00; in FLASH_ReadOutProtection() 1144 OB->RDP = RDP_Key; in FLASH_ReadOutProtection() 1211 OB->USER = OB_IWDG | (uint16_t)(OB_STOP | (uint16_t)(OB_STDBY | ((uint16_t)0xF8))); in FLASH_UserOptionByteConfig() 1262 OB->USER |= OB_USER_BFB2; in FLASH_BootConfig() 1266 OB->USER &= (uint16_t)(~(uint16_t)(OB_USER_BFB2)); in FLASH_BootConfig()
|
| /bsp/mm32f327x/Libraries/MM32F327x/HAL_Lib/Src/ |
| A D | hal_flash.c | 293 OB->USER = ob_iwdg; in FLASH_UserOptionByteConfig() 294 OB->USER |= ob_stop; in FLASH_UserOptionByteConfig() 295 OB->USER |= standby; in FLASH_UserOptionByteConfig() 296 OB->USER |= 0xF8; in FLASH_UserOptionByteConfig()
|
| /bsp/n32/libraries/N32L43x_Firmware_Library/n32l43x_std_periph_driver/src/ |
| A D | n32l43x_flash.c | 898 usertmp = ((OBR_USER_MSK & FLASH->OB) << 0x0E); in FLASH_ReadOutProtectionL1() 976 usertmp = ((OBR_USER_MSK & FLASH->OB) << 0x0E); in FLASH_ReadOutProtectionL2_ENABLE() 1283 return (uint32_t)(FLASH->OB >> 2); in FLASH_GetUserOB() 1305 if ((FLASH->OB & RDPRTL1_MSK) != (uint32_t)RESET) in FLASH_GetReadOutProtectionSTS() 1324 if ((FLASH->OB & RDPRTL2_MSK) != (uint32_t)RESET) in FLASH_GetReadOutProtectionL2STS() 1428 if ((FLASH->OB & FLASH_FLAG_OBERR) != (uint32_t)RESET) in FLASH_GetFlagSTS()
|
| /bsp/n32/libraries/N32L40x_Firmware_Library/n32l40x_std_periph_driver/src/ |
| A D | n32l40x_flash.c | 898 usertmp = ((OBR_USER_MSK & FLASH->OB) << 0x0E); in FLASH_ReadOutProtectionL1() 976 usertmp = ((OBR_USER_MSK & FLASH->OB) << 0x0E); in FLASH_ReadOutProtectionL2_ENABLE() 1283 return (uint32_t)(FLASH->OB >> 2); in FLASH_GetUserOB() 1305 if ((FLASH->OB & RDPRTL1_MSK) != (uint32_t)RESET) in FLASH_GetReadOutProtectionSTS() 1324 if ((FLASH->OB & RDPRTL2_MSK) != (uint32_t)RESET) in FLASH_GetReadOutProtectionL2STS() 1428 if ((FLASH->OB & FLASH_FLAG_OBERR) != (uint32_t)RESET) in FLASH_GetFlagSTS()
|