Home
last modified time | relevance | path

Searched refs:ui32Val (Results 1 – 12 of 12) sorted by relevance

/hal_ambiq-3.7.0/mcu/apollo3/hal/
Dam_hal_cachectrl.c148 uint32_t ui32Val; in set_LPMMODE() local
162 ui32Val = am_hal_flash_load_ui32(pui32RegAddr); in set_LPMMODE() local
163 ui32Val &= ~(CACHECTRL_FLASHCFG_LPMMODE_Msk | in set_LPMMODE()
165 ui32Val |= _VAL2FLD(CACHECTRL_FLASHCFG_LPMMODE, ui32value) | in set_LPMMODE()
167 am_hal_flash_store_ui32(pui32RegAddr, ui32Val); in set_LPMMODE()
176 uint32_t ui32Val; in set_SEDELAY() local
190 ui32Val = am_hal_flash_load_ui32(pui32RegAddr); in set_SEDELAY() local
191 ui32Val &= ~(CACHECTRL_FLASHCFG_SEDELAY_Msk | in set_SEDELAY()
193 ui32Val |= _VAL2FLD(CACHECTRL_FLASHCFG_SEDELAY, ui32value) | in set_SEDELAY()
195 am_hal_flash_store_ui32(pui32RegAddr, ui32Val); in set_SEDELAY()
[all …]
Dam_hal_reset.c61 uint32_t ui32Val; in am_hal_reset_configure() local
68 ui32Val = RSTGEN_CFG_BODHREN_Msk; in am_hal_reset_configure()
73 ui32Val = RSTGEN_CFG_WDREN_Msk; in am_hal_reset_configure()
78 ui32Val = RSTGEN_CFG_BODHREN_Msk; in am_hal_reset_configure()
83 ui32Val = RSTGEN_CFG_WDREN_Msk; in am_hal_reset_configure()
93 RSTGEN->CFG |= ui32Val; in am_hal_reset_configure()
97 RSTGEN->CFG &= ~ui32Val; in am_hal_reset_configure()
Dam_hal_ios.c564 uint32_t ui32Val = 0; in am_hal_ios_fifo_space_used() local
584 ui32Val = g_sSRAMBuffer.ui32Length; in am_hal_ios_fifo_space_used() local
585 ui32Val += IOSLAVEn(ui32Module)->FIFOPTR_b.FIFOSIZ; in am_hal_ios_fifo_space_used()
592 *pui32UsedSpace = ui32Val; in am_hal_ios_fifo_space_used()
613 uint32_t ui32Val = 0; in am_hal_ios_fifo_space_left() local
636 ui32Val = g_sSRAMBuffer.ui32Capacity + ((am_hal_ios_state_t*)pHandle)->ui32HwFifoSize - 1; in am_hal_ios_fifo_space_left() local
637 ui32Val -= g_sSRAMBuffer.ui32Length; in am_hal_ios_fifo_space_left()
638 ui32Val -= IOSLAVEn(ui32Module)->FIFOPTR_b.FIFOSIZ; in am_hal_ios_fifo_space_left()
645 *pui32LeftSpace = ui32Val; in am_hal_ios_fifo_space_left()
1094 uint32_t ui32Val = 0; in am_hal_ios_control() local
[all …]
Dam_hal_flash.c317 uint32_t ui32Val = ~ui32BitMask; in am_hal_flash_clear_bits() local
323 ui32Val |= ~(*pui32Addr); in am_hal_flash_clear_bits()
325 return g_am_hal_flash.flash_program_main(ui32ProgramKey, &ui32Val, in am_hal_flash_clear_bits()
/hal_ambiq-3.7.0/mcu/apollo3p/hal/
Dam_hal_cachectrl.c148 uint32_t ui32Val, ui32inst; in set_LPMMODE() local
168 ui32Val = am_hal_flash_load_ui32(pui32RegAddr); in set_LPMMODE() local
169 ui32Val &= ~(CACHECTRL_FLASH0CFG_LPMMODE0_Msk | in set_LPMMODE()
171 ui32Val |= _VAL2FLD(CACHECTRL_FLASH0CFG_LPMMODE0, ui32value) | in set_LPMMODE()
173 am_hal_flash_store_ui32(pui32RegAddr, ui32Val); in set_LPMMODE()
183 uint32_t ui32Val, ui32inst; in set_SEDELAY() local
203 ui32Val = am_hal_flash_load_ui32(pui32RegAddr); in set_SEDELAY() local
204 ui32Val &= ~(CACHECTRL_FLASH0CFG_SEDELAY0_Msk | in set_SEDELAY()
206 ui32Val |= _VAL2FLD(CACHECTRL_FLASH0CFG_SEDELAY0, ui32value) | in set_SEDELAY()
208 am_hal_flash_store_ui32(pui32RegAddr, ui32Val); in set_SEDELAY()
[all …]
Dam_hal_reset.c61 uint32_t ui32Val; in am_hal_reset_configure() local
68 ui32Val = RSTGEN_CFG_BODHREN_Msk; in am_hal_reset_configure()
73 ui32Val = RSTGEN_CFG_WDREN_Msk; in am_hal_reset_configure()
78 ui32Val = RSTGEN_CFG_BODHREN_Msk; in am_hal_reset_configure()
83 ui32Val = RSTGEN_CFG_WDREN_Msk; in am_hal_reset_configure()
93 RSTGEN->CFG |= ui32Val; in am_hal_reset_configure()
97 RSTGEN->CFG &= ~ui32Val; in am_hal_reset_configure()
Dam_hal_ios.c564 uint32_t ui32Val = 0; in am_hal_ios_fifo_space_used() local
584 ui32Val = g_sSRAMBuffer.ui32Length; in am_hal_ios_fifo_space_used() local
585 ui32Val += IOSLAVEn(ui32Module)->FIFOPTR_b.FIFOSIZ; in am_hal_ios_fifo_space_used()
592 *pui32UsedSpace = ui32Val; in am_hal_ios_fifo_space_used()
613 uint32_t ui32Val = 0; in am_hal_ios_fifo_space_left() local
636 ui32Val = g_sSRAMBuffer.ui32Capacity + ((am_hal_ios_state_t*)pHandle)->ui32HwFifoSize - 1; in am_hal_ios_fifo_space_left() local
637 ui32Val -= g_sSRAMBuffer.ui32Length; in am_hal_ios_fifo_space_left()
638 ui32Val -= IOSLAVEn(ui32Module)->FIFOPTR_b.FIFOSIZ; in am_hal_ios_fifo_space_left()
645 *pui32LeftSpace = ui32Val; in am_hal_ios_fifo_space_left()
1094 uint32_t ui32Val = 0; in am_hal_ios_control() local
[all …]
Dam_hal_flash.c318 uint32_t ui32Val = ~ui32BitMask; in am_hal_flash_clear_bits() local
324 ui32Val |= ~(*pui32Addr); in am_hal_flash_clear_bits()
326 return g_am_hal_flash.flash_program_main(ui32ProgramKey, &ui32Val, in am_hal_flash_clear_bits()
/hal_ambiq-3.7.0/mcu/apollo4p/hal/mcu/
Dam_hal_reset.c61 uint32_t ui32Val; in am_hal_reset_configure() local
75 ui32Val = RSTGEN_CFG_WDREN_Msk; in am_hal_reset_configure()
80 ui32Val = RSTGEN_CFG_BODHREN_Msk; in am_hal_reset_configure()
85 ui32Val = RSTGEN_CFG_WDREN_Msk; in am_hal_reset_configure()
95 RSTGEN->CFG |= ui32Val; in am_hal_reset_configure()
99 RSTGEN->CFG &= ~ui32Val; in am_hal_reset_configure()
Dam_hal_ios.c566 uint32_t ui32Val = 0; in am_hal_ios_fifo_space_used() local
586 ui32Val = g_sSRAMBuffer.ui32Length; in am_hal_ios_fifo_space_used() local
587 ui32Val += IOSLAVEn(ui32Module)->FIFOPTR_b.FIFOSIZ; in am_hal_ios_fifo_space_used()
594 *pui32UsedSpace = ui32Val; in am_hal_ios_fifo_space_used()
607 uint32_t ui32Val = 0; in am_hal_ios_fifo_space_left() local
630 ui32Val = g_sSRAMBuffer.ui32Capacity + ((am_hal_ios_state_t*)pHandle)->ui32HwFifoSize - 1; in am_hal_ios_fifo_space_left() local
631 ui32Val -= g_sSRAMBuffer.ui32Length; in am_hal_ios_fifo_space_left()
632 ui32Val -= IOSLAVEn(ui32Module)->FIFOPTR_b.FIFOSIZ; in am_hal_ios_fifo_space_left()
639 *pui32LeftSpace = ui32Val; in am_hal_ios_fifo_space_left()
1051 uint32_t ui32Val = 0; in am_hal_ios_control() local
[all …]
/hal_ambiq-3.7.0/utils/
Dam_util_stdio.c213 uint32_t q32, r32, ui32Val; in divu64_10() local
231 ui32Val = (uint32_t)(ui64Val & 0xffffffff); in divu64_10()
232 q32 = (ui32Val>>1) + (ui32Val>>2); in divu64_10()
237 r32 = ui32Val - q32*10; in divu64_10()
322 uint32_t ui32Val = 0, uCnt = 0; in decstr_to_int() local
338 ui32Val *= 10; in decstr_to_int()
343 ui32Val += (*pcStr - '0'); in decstr_to_int()
352 return bNeg ? -ui32Val : ui32Val; in decstr_to_int()
/hal_ambiq-3.7.0/mcu/apollo4p/hal/
Dam_hal_pwrctrl.c703 typedef void (*storeAndWFIfunc_t)(uint32_t ui32Val, uint32_t *pAddr);
748 am_hal_util_write_and_wait(uint32_t *pAddr, uint32_t ui32Mask, uint32_t ui32Val, uint32_t ui32Delay… in am_hal_util_write_and_wait() argument
797 ui32Val |= (AM_REGVAL((uint32_t)pAddr) & ~ui32Mask); in am_hal_util_write_and_wait()
813 storeAndWFIfuncRAM(ui32Val, pAddr); in am_hal_util_write_and_wait()