Home
last modified time | relevance | path

Searched refs:UserConfig (Results 1 – 16 of 16) sorted by relevance

/hal_stm32-latest/stm32cube/stm32u5xx/drivers/src/
Dstm32u5xx_hal_flash_ex.c128 static void FLASH_OB_UserConfig(uint32_t UserType, uint32_t UserConfig);
1095 static void FLASH_OB_UserConfig(uint32_t UserType, uint32_t UserConfig) in FLASH_OB_UserConfig() argument
1106 assert_param(IS_OB_USER_BOR_LEVEL(UserConfig & FLASH_OPTR_BOR_LEV)); in FLASH_OB_UserConfig()
1109 optr_reg_val |= (UserConfig & FLASH_OPTR_BOR_LEV); in FLASH_OB_UserConfig()
1116 assert_param(IS_OB_USER_STOP(UserConfig & FLASH_OPTR_nRST_STOP)); in FLASH_OB_UserConfig()
1119 optr_reg_val |= (UserConfig & FLASH_OPTR_nRST_STOP); in FLASH_OB_UserConfig()
1126 assert_param(IS_OB_USER_STANDBY(UserConfig & FLASH_OPTR_nRST_STDBY)); in FLASH_OB_UserConfig()
1129 optr_reg_val |= (UserConfig & FLASH_OPTR_nRST_STDBY); in FLASH_OB_UserConfig()
1136 assert_param(IS_OB_USER_SHUTDOWN(UserConfig & FLASH_OPTR_nRST_SHDW)); in FLASH_OB_UserConfig()
1139 optr_reg_val |= (UserConfig & FLASH_OPTR_nRST_SHDW); in FLASH_OB_UserConfig()
[all …]
/hal_stm32-latest/stm32cube/stm32g4xx/drivers/src/
Dstm32g4xx_hal_flash_ex.c95 static HAL_StatusTypeDef FLASH_OB_UserConfig(uint32_t UserType, uint32_t UserConfig);
786 static HAL_StatusTypeDef FLASH_OB_UserConfig(uint32_t UserType, uint32_t UserConfig) in FLASH_OB_UserConfig() argument
804 assert_param(IS_OB_USER_PB4_PUPEN(UserConfig & FLASH_OPTR_PB4_PUPEN)); in FLASH_OB_UserConfig()
807 optr_reg_val |= (UserConfig & FLASH_OPTR_PB4_PUPEN); in FLASH_OB_UserConfig()
815 assert_param(IS_OB_USER_BOR_LEVEL(UserConfig & FLASH_OPTR_BOR_LEV)); in FLASH_OB_UserConfig()
818 optr_reg_val |= (UserConfig & FLASH_OPTR_BOR_LEV); in FLASH_OB_UserConfig()
825 assert_param(IS_OB_USER_STOP(UserConfig & FLASH_OPTR_nRST_STOP)); in FLASH_OB_UserConfig()
828 optr_reg_val |= (UserConfig & FLASH_OPTR_nRST_STOP); in FLASH_OB_UserConfig()
835 assert_param(IS_OB_USER_STANDBY(UserConfig & FLASH_OPTR_nRST_STDBY)); in FLASH_OB_UserConfig()
838 optr_reg_val |= (UserConfig & FLASH_OPTR_nRST_STDBY); in FLASH_OB_UserConfig()
[all …]
/hal_stm32-latest/stm32cube/stm32l5xx/drivers/src/
Dstm32l5xx_hal_flash_ex.c119 static void FLASH_OB_UserConfig(uint32_t UserType, uint32_t UserConfig);
956 static void FLASH_OB_UserConfig(uint32_t UserType, uint32_t UserConfig) in FLASH_OB_UserConfig() argument
967 assert_param(IS_OB_USER_BOR_LEVEL(UserConfig & FLASH_OPTR_BOR_LEV)); in FLASH_OB_UserConfig()
970 optr_reg_val |= (UserConfig & FLASH_OPTR_BOR_LEV); in FLASH_OB_UserConfig()
977 assert_param(IS_OB_USER_STOP(UserConfig & FLASH_OPTR_nRST_STOP)); in FLASH_OB_UserConfig()
980 optr_reg_val |= (UserConfig & FLASH_OPTR_nRST_STOP); in FLASH_OB_UserConfig()
987 assert_param(IS_OB_USER_STANDBY(UserConfig & FLASH_OPTR_nRST_STDBY)); in FLASH_OB_UserConfig()
990 optr_reg_val |= (UserConfig & FLASH_OPTR_nRST_STDBY); in FLASH_OB_UserConfig()
997 assert_param(IS_OB_USER_SHUTDOWN(UserConfig & FLASH_OPTR_nRST_SHDW)); in FLASH_OB_UserConfig()
1000 optr_reg_val |= (UserConfig & FLASH_OPTR_nRST_SHDW); in FLASH_OB_UserConfig()
[all …]
/hal_stm32-latest/stm32cube/stm32l4xx/drivers/src/
Dstm32l4xx_hal_flash_ex.c85 static HAL_StatusTypeDef FLASH_OB_UserConfig(uint32_t UserType, uint32_t UserConfig);
771 static HAL_StatusTypeDef FLASH_OB_UserConfig(uint32_t UserType, uint32_t UserConfig) in FLASH_OB_UserConfig() argument
788 assert_param(IS_OB_USER_BOR_LEVEL(UserConfig & FLASH_OPTR_BOR_LEV)); in FLASH_OB_UserConfig()
791 optr_reg_val |= (UserConfig & FLASH_OPTR_BOR_LEV); in FLASH_OB_UserConfig()
798 assert_param(IS_OB_USER_STOP(UserConfig & FLASH_OPTR_nRST_STOP)); in FLASH_OB_UserConfig()
801 optr_reg_val |= (UserConfig & FLASH_OPTR_nRST_STOP); in FLASH_OB_UserConfig()
808 assert_param(IS_OB_USER_STANDBY(UserConfig & FLASH_OPTR_nRST_STDBY)); in FLASH_OB_UserConfig()
811 optr_reg_val |= (UserConfig & FLASH_OPTR_nRST_STDBY); in FLASH_OB_UserConfig()
818 assert_param(IS_OB_USER_SHUTDOWN(UserConfig & FLASH_OPTR_nRST_SHDW)); in FLASH_OB_UserConfig()
821 optr_reg_val |= (UserConfig & FLASH_OPTR_nRST_SHDW); in FLASH_OB_UserConfig()
[all …]
/hal_stm32-latest/stm32cube/stm32wbaxx/drivers/src/
Dstm32wbaxx_hal_flash_ex.c126 static void FLASH_OB_UserConfig(uint32_t UserType, uint32_t UserConfig);
1164 static void FLASH_OB_UserConfig(uint32_t UserType, uint32_t UserConfig) in FLASH_OB_UserConfig() argument
1175 assert_param(IS_OB_USER_BOR_LEVEL(UserConfig & FLASH_OPTR_BOR_LEV)); in FLASH_OB_UserConfig()
1178 optr_reg_val |= (UserConfig & FLASH_OPTR_BOR_LEV); in FLASH_OB_UserConfig()
1185 assert_param(IS_OB_USER_STOP(UserConfig & FLASH_OPTR_nRST_STOP)); in FLASH_OB_UserConfig()
1188 optr_reg_val |= (UserConfig & FLASH_OPTR_nRST_STOP); in FLASH_OB_UserConfig()
1195 assert_param(IS_OB_USER_STANDBY(UserConfig & FLASH_OPTR_nRST_STDBY)); in FLASH_OB_UserConfig()
1198 optr_reg_val |= (UserConfig & FLASH_OPTR_nRST_STDBY); in FLASH_OB_UserConfig()
1205 assert_param(IS_OB_USER_SRAM1_RST(UserConfig & FLASH_OPTR_SRAM1_RST)); in FLASH_OB_UserConfig()
1208 optr_reg_val |= (UserConfig & FLASH_OPTR_SRAM1_RST); in FLASH_OB_UserConfig()
[all …]
/hal_stm32-latest/stm32cube/stm32h7xx/drivers/src/
Dstm32h7xx_hal_flash_ex.c124 static void FLASH_OB_UserConfig(uint32_t UserType, uint32_t UserConfig);
1430 static void FLASH_OB_UserConfig(uint32_t UserType, uint32_t UserConfig) in FLASH_OB_UserConfig() argument
1441 assert_param(IS_OB_IWDG1_SOURCE(UserConfig & FLASH_OPTSR_IWDG1_SW)); in FLASH_OB_UserConfig()
1444 optr_reg_val |= (UserConfig & FLASH_OPTSR_IWDG1_SW); in FLASH_OB_UserConfig()
1451 assert_param(IS_OB_IWDG2_SOURCE(UserConfig & FLASH_OPTSR_IWDG2_SW)); in FLASH_OB_UserConfig()
1454 optr_reg_val |= (UserConfig & FLASH_OPTSR_IWDG2_SW); in FLASH_OB_UserConfig()
1461 assert_param(IS_OB_STOP_D1_RESET(UserConfig & FLASH_OPTSR_NRST_STOP_D1)); in FLASH_OB_UserConfig()
1464 optr_reg_val |= (UserConfig & FLASH_OPTSR_NRST_STOP_D1); in FLASH_OB_UserConfig()
1471 assert_param(IS_OB_STDBY_D1_RESET(UserConfig & FLASH_OPTSR_NRST_STBY_D1)); in FLASH_OB_UserConfig()
1474 optr_reg_val |= (UserConfig & FLASH_OPTSR_NRST_STBY_D1); in FLASH_OB_UserConfig()
[all …]
/hal_stm32-latest/stm32cube/stm32f0xx/drivers/src/
Dstm32f0xx_hal_flash_ex.c102 static HAL_StatusTypeDef FLASH_OB_UserConfig(uint8_t UserConfig);
800 static HAL_StatusTypeDef FLASH_OB_UserConfig(uint8_t UserConfig) in FLASH_OB_UserConfig() argument
805 assert_param(IS_OB_IWDG_SOURCE((UserConfig&OB_IWDG_SW))); in FLASH_OB_UserConfig()
806 assert_param(IS_OB_STOP_SOURCE((UserConfig&OB_STOP_NO_RST))); in FLASH_OB_UserConfig()
807 assert_param(IS_OB_STDBY_SOURCE((UserConfig&OB_STDBY_NO_RST))); in FLASH_OB_UserConfig()
808 assert_param(IS_OB_BOOT1((UserConfig&OB_BOOT1_SET))); in FLASH_OB_UserConfig()
809 assert_param(IS_OB_VDDA_ANALOG((UserConfig&OB_VDDA_ANALOG_ON))); in FLASH_OB_UserConfig()
810 assert_param(IS_OB_SRAM_PARITY((UserConfig&OB_SRAM_PARITY_RESET))); in FLASH_OB_UserConfig()
812 assert_param(IS_OB_BOOT_SEL((UserConfig&OB_BOOT_SEL_SET))); in FLASH_OB_UserConfig()
813 assert_param(IS_OB_BOOT0((UserConfig&OB_BOOT0_SET))); in FLASH_OB_UserConfig()
[all …]
/hal_stm32-latest/stm32cube/stm32f3xx/drivers/src/
Dstm32f3xx_hal_flash_ex.c102 static HAL_StatusTypeDef FLASH_OB_UserConfig(uint8_t UserConfig);
792 static HAL_StatusTypeDef FLASH_OB_UserConfig(uint8_t UserConfig) in FLASH_OB_UserConfig() argument
797 assert_param(IS_OB_IWDG_SOURCE((UserConfig&OB_IWDG_SW))); in FLASH_OB_UserConfig()
798 assert_param(IS_OB_STOP_SOURCE((UserConfig&OB_STOP_NO_RST))); in FLASH_OB_UserConfig()
799 assert_param(IS_OB_STDBY_SOURCE((UserConfig&OB_STDBY_NO_RST))); in FLASH_OB_UserConfig()
800 assert_param(IS_OB_BOOT1((UserConfig&OB_BOOT1_SET))); in FLASH_OB_UserConfig()
801 assert_param(IS_OB_VDDA_ANALOG((UserConfig&OB_VDDA_ANALOG_ON))); in FLASH_OB_UserConfig()
802 assert_param(IS_OB_SRAM_PARITY((UserConfig&OB_SRAM_PARITY_RESET))); in FLASH_OB_UserConfig()
804 assert_param(IS_OB_SDACD_VDD_MONITOR((UserConfig&OB_SDACD_VDD_MONITOR_SET))); in FLASH_OB_UserConfig()
819 OB->USER = (UserConfig | 0x08U); in FLASH_OB_UserConfig()
[all …]
/hal_stm32-latest/stm32cube/stm32f1xx/drivers/src/
Dstm32f1xx_hal_flash_ex.c102 static HAL_StatusTypeDef FLASH_OB_UserConfig(uint8_t UserConfig);
932 static HAL_StatusTypeDef FLASH_OB_UserConfig(uint8_t UserConfig) in FLASH_OB_UserConfig() argument
937 assert_param(IS_OB_IWDG_SOURCE((UserConfig&OB_IWDG_SW))); in FLASH_OB_UserConfig()
938 assert_param(IS_OB_STOP_SOURCE((UserConfig&OB_STOP_NO_RST))); in FLASH_OB_UserConfig()
939 assert_param(IS_OB_STDBY_SOURCE((UserConfig&OB_STDBY_NO_RST))); in FLASH_OB_UserConfig()
941 assert_param(IS_OB_BOOT1((UserConfig&OB_BOOT1_SET))); in FLASH_OB_UserConfig()
956 OB->USER = (UserConfig | 0xF0U); in FLASH_OB_UserConfig()
958 OB->USER = (UserConfig | 0x88U); in FLASH_OB_UserConfig()
/hal_stm32-latest/stm32cube/stm32wbxx/drivers/src/
Dstm32wbxx_hal_flash_ex.c103 static void FLASH_OB_OptrConfig(uint32_t UserType, uint32_t UserConfig, uint32_t RDPLe…
295 FLASH_OB_OptrConfig(pOBInit->UserType, pOBInit->UserConfig, pOBInit->RDPLevel); in HAL_FLASHEx_OBProgram()
311 FLASH_OB_OptrConfig(pOBInit->UserType, pOBInit->UserConfig, optr); in HAL_FLASHEx_OBProgram()
386 pOBInit->UserConfig = FLASH_OB_GetUser(); in HAL_FLASHEx_OBGetConfig()
633 static void FLASH_OB_OptrConfig(uint32_t UserType, uint32_t UserConfig, uint32_t RDPLevel) in FLASH_OB_OptrConfig() argument
639 assert_param(IS_OB_USER_CONFIG(UserType, UserConfig)); in FLASH_OB_OptrConfig()
645 FLASH->OPTR = (optr | UserConfig | RDPLevel); in FLASH_OB_OptrConfig()
/hal_stm32-latest/stm32cube/stm32wlxx/drivers/src/
Dstm32wlxx_hal_flash_ex.c117 static void FLASH_OB_OptrConfig(uint32_t UserType, uint32_t UserConfig, uint32_t RDPLe…
334 FLASH_OB_OptrConfig(pOBInit->UserType, pOBInit->UserConfig, pOBInit->RDPLevel); in HAL_FLASHEx_OBProgram()
350 FLASH_OB_OptrConfig(pOBInit->UserType, pOBInit->UserConfig, optr); in HAL_FLASHEx_OBProgram()
427 pOBInit->UserConfig = FLASH_OB_GetUser(); in HAL_FLASHEx_OBGetConfig()
820 static void FLASH_OB_OptrConfig(uint32_t UserType, uint32_t UserConfig, uint32_t RDPLevel) in FLASH_OB_OptrConfig() argument
826 assert_param(IS_OB_USER_CONFIG(UserType, UserConfig)); in FLASH_OB_OptrConfig()
832 FLASH->OPTR = (optr | UserConfig | RDPLevel); in FLASH_OB_OptrConfig()
/hal_stm32-latest/stm32cube/stm32u0xx/drivers/src/
Dstm32u0xx_hal_flash_ex.c98 static void FLASH_OB_OptrConfig(uint32_t UserType, uint32_t UserConfig, uint32_t RDPL…
597 static void FLASH_OB_OptrConfig(uint32_t UserType, uint32_t UserConfig, uint32_t RDPLevel) in FLASH_OB_OptrConfig() argument
603 assert_param(IS_OB_USER_CONFIG(UserType, UserConfig)); in FLASH_OB_OptrConfig()
609 FLASH->OPTR = (optr | UserConfig | RDPLevel); in FLASH_OB_OptrConfig()
/hal_stm32-latest/stm32cube/stm32c0xx/drivers/src/
Dstm32c0xx_hal_flash_ex.c97 static void FLASH_OB_OptrConfig(uint32_t UserType, uint32_t UserConfig, uint32_t RDPLeve…
594 static void FLASH_OB_OptrConfig(uint32_t UserType, uint32_t UserConfig, uint32_t RDPLevel) in FLASH_OB_OptrConfig() argument
600 assert_param(IS_OB_USER_CONFIG(UserType, UserConfig)); in FLASH_OB_OptrConfig()
606 FLASH->OPTR = (optr | UserConfig | RDPLevel); in FLASH_OB_OptrConfig()
/hal_stm32-latest/stm32cube/stm32g0xx/drivers/src/
Dstm32g0xx_hal_flash_ex.c96 static void FLASH_OB_OptrConfig(uint32_t UserType, uint32_t UserConfig, uint32_t RDPL…
764 static void FLASH_OB_OptrConfig(uint32_t UserType, uint32_t UserConfig, uint32_t RDPLevel) in FLASH_OB_OptrConfig() argument
770 assert_param(IS_OB_USER_CONFIG(UserType, UserConfig)); in FLASH_OB_OptrConfig()
776 FLASH->OPTR = (optr | UserConfig | RDPLevel); in FLASH_OB_OptrConfig()
/hal_stm32-latest/stm32cube/stm32wlxx/drivers/include/
Dstm32wlxx_hal_flash.h75 uint32_t UserConfig; /*!< Value of the user option byte (used for OPTIONBYTE_USER). member
86 uint32_t UserConfig; /*!< Value of the user option byte (used for OPTIONBYTE_USER). member
/hal_stm32-latest/stm32cube/stm32wbxx/drivers/include/
Dstm32wbxx_hal_flash.h74 uint32_t UserConfig; /*!< Value of the user option byte (used for OPTIONBYTE_USER). member