/hal_ambiq-3.6.0/mcu/apollo4p/hal/ |
D | am_hal_i2s.c | 98 uint32_t ui32Module; member 128 am_hal_i2s_initialize(uint32_t ui32Module, void **ppHandle) in am_hal_i2s_initialize() argument 138 if ( ui32Module >= AM_REG_I2S_NUM_MODULES ) in am_hal_i2s_initialize() 148 if (g_I2Shandles[ui32Module].prefix.s.bInit) in am_hal_i2s_initialize() 154 g_I2Shandles[ui32Module].prefix.s.bInit = true; in am_hal_i2s_initialize() 155 g_I2Shandles[ui32Module].prefix.s.bEnable = false; in am_hal_i2s_initialize() 156 g_I2Shandles[ui32Module].prefix.s.magic = AM_HAL_MAGIC_I2S; in am_hal_i2s_initialize() 160 g_I2Shandles[ui32Module].ui32Module = ui32Module; in am_hal_i2s_initialize() 164 *ppHandle = (void *)&g_I2Shandles[ui32Module]; in am_hal_i2s_initialize() 189 pState->ui32Module = 0; in am_hal_i2s_deinitialize() [all …]
|
D | am_hal_pdm.c | 134 am_hal_pdm_initialize(uint32_t ui32Module, void **ppHandle) in am_hal_pdm_initialize() argument 139 if ( ui32Module >= AM_REG_PDM_NUM_MODULES ) in am_hal_pdm_initialize() 155 if (g_PDMhandles[ui32Module].prefix.s.bInit) in am_hal_pdm_initialize() 163 g_PDMhandles[ui32Module].prefix.s.bInit = true; in am_hal_pdm_initialize() 164 g_PDMhandles[ui32Module].prefix.s.magic = AM_HAL_MAGIC_PDM; in am_hal_pdm_initialize() 165 g_PDMhandles[ui32Module].ui32Module = ui32Module; in am_hal_pdm_initialize() 166 g_PDMhandles[ui32Module].sRegState.bValid = false; in am_hal_pdm_initialize() 171 *ppHandle = (void *)&g_PDMhandles[ui32Module]; in am_hal_pdm_initialize() 199 pState->ui32Module = 0; in am_hal_pdm_deinitialize() 223 uint32_t ui32Module = pState->ui32Module; in am_hal_pdm_power_control() local [all …]
|
D | am_hal_adc.c | 60 #define ADC_CRITICAL_BEGIN(ui32Module) \ argument 64 ui32adcintensave = ADCn(ui32Module)->INTEN; \ 65 ADCn(ui32Module)->INTEN = 0x0; \ 66 ui32adcintstatsave = ADCn(ui32Module)->INTSTAT; \ 68 #define ADC_CRITICAL_END(ui32Module) \ argument 72 ADCn(ui32Module)->INTCLR = ADC_INTCLR_SCNCMP_Msk | \ 75 ADCn(ui32Module)->INTEN = ui32adcintensave; \ 143 uint32_t ui32Module; member 250 uint32_t ui32Module = ((am_hal_adc_state_t *)pHandle)->ui32Module; in ForceFIFOpop() local 255 if ( !((ADCn(ui32Module)->CFG_b.RPTEN == ADC_CFG_RPTEN_SINGLE_SCAN) && in ForceFIFOpop() [all …]
|
D | am_hal_audadc.c | 109 uint32_t ui32Module; member 202 am_hal_audadc_initialize(uint32_t ui32Module, void **ppHandle) in am_hal_audadc_initialize() argument 209 if ( ui32Module >= AM_REG_AUDADC_NUM_MODULES ) in am_hal_audadc_initialize() 225 if ( g_AUDADCState[ui32Module].prefix.s.bInit ) in am_hal_audadc_initialize() 234 g_AUDADCState[ui32Module].prefix.s.bInit = true; in am_hal_audadc_initialize() 235 g_AUDADCState[ui32Module].prefix.s.magic = AM_HAL_MAGIC_AUDADC; in am_hal_audadc_initialize() 236 g_AUDADCState[ui32Module].ui32Module = ui32Module; in am_hal_audadc_initialize() 246 *ppHandle = (void *)&g_AUDADCState[ui32Module]; in am_hal_audadc_initialize() 343 uint32_t ui32Module = pAUDADCState->ui32Module; in am_hal_audadc_configure() local 420 AUDADCn(ui32Module)->CFG = ui32Config; in am_hal_audadc_configure() [all …]
|
D | am_hal_usb.c | 213 uint32_t ui32Module; member 692 am_hal_usb_initialize(uint32_t ui32Module, void **ppHandle) in am_hal_usb_initialize() argument 698 if ( ui32Module >= AM_REG_USB_NUM_MODULES ) in am_hal_usb_initialize() 715 if ( g_am_hal_usb_states[ui32Module].prefix.s.bInit ) in am_hal_usb_initialize() 723 g_am_hal_usb_states[ui32Module].prefix.s.bInit = true; in am_hal_usb_initialize() 724 g_am_hal_usb_states[ui32Module].prefix.s.magic = AM_HAL_MAGIC_USB; in am_hal_usb_initialize() 725 g_am_hal_usb_states[ui32Module].ui32Module = ui32Module; in am_hal_usb_initialize() 726 g_am_hal_usb_states[ui32Module].sRegState.bValid = false; in am_hal_usb_initialize() 731 *ppHandle = (void *)&g_am_hal_usb_states[ui32Module]; in am_hal_usb_initialize() 764 pState->ui32Module = 0; in am_hal_usb_deinitialize() [all …]
|
D | am_hal_pdm.h | 392 uint32_t ui32Module; member 416 extern uint32_t am_hal_pdm_initialize(uint32_t ui32Module, void **ppHandle);
|
D | am_hal_usb.h | 585 extern uint32_t am_hal_usb_initialize(uint32_t ui32Module, void **ppHandle);
|
D | am_hal_adc.h | 607 extern uint32_t am_hal_adc_initialize(uint32_t ui32Module, void **ppHandle);
|
D | am_hal_i2s.h | 464 extern uint32_t am_hal_i2s_initialize(uint32_t ui32Module, void **ppHandle);
|
D | am_hal_audadc.h | 660 extern uint32_t am_hal_audadc_initialize(uint32_t ui32Module, void **ppHandle);
|
/hal_ambiq-3.6.0/mcu/apollo4p/hal/mcu/ |
D | am_hal_mspi.c | 203 uint32_t ui32Module; member 338 uint32_t ui32Module = pMSPIState->ui32Module; in build_dma_cmdlist() local 366 pPIOEntry->ui32ADDRAddr = (uint32_t)&MSPIn(ui32Module)->ADDR; in build_dma_cmdlist() 368 pPIOEntry->ui32INSTRAddr = (uint32_t)&MSPIn(ui32Module)->INSTR; in build_dma_cmdlist() 370 pPIOEntry->ui32CTRLAddr = (uint32_t)&MSPIn(ui32Module)->CTRL; in build_dma_cmdlist() 409 pDMAEntry->ui32DMACFG2Addr = (uint32_t)&MSPIn(ui32Module)->DMACFG; in build_dma_cmdlist() 415 pDMAEntry->ui32DMATARGADDRAddr = (uint32_t)&MSPIn(ui32Module)->DMATARGADDR; in build_dma_cmdlist() 421 pDMAEntry->ui32DMADEVADDRAddr = (uint32_t)&MSPIn(ui32Module)->DMADEVADDR; in build_dma_cmdlist() 427 pDMAEntry->ui32DMATOTCOUNTAddr = (uint32_t)&MSPIn(ui32Module)->DMATOTCOUNT; in build_dma_cmdlist() 433 pDMAEntry->ui32DMACFG1Addr = (uint32_t)&MSPIn(ui32Module)->DMACFG; in build_dma_cmdlist() [all …]
|
D | am_hal_ios.c | 90 uint32_t ui32Module; member 165 …wrctrl_periph_enable((am_hal_pwrctrl_periph_e)(AM_HAL_PWRCTRL_PERIPH_IOS + pIOSState->ui32Module)); in am_hal_ios_power_ctrl() 171 IOSLAVEn(pIOSState->ui32Module)->FIFOCFG = pIOSState->registerState.regFIFOCFG; in am_hal_ios_power_ctrl() 172 IOSLAVEn(pIOSState->ui32Module)->FIFOTHR = pIOSState->registerState.regFIFOTHR; in am_hal_ios_power_ctrl() 173 IOSLAVEn(pIOSState->ui32Module)->CFG = pIOSState->registerState.regCFG; in am_hal_ios_power_ctrl() 174 IOSLAVEn(pIOSState->ui32Module)->INTEN = pIOSState->registerState.regINTEN; in am_hal_ios_power_ctrl() 175 IOSLAVEn(pIOSState->ui32Module)->REGACCINTEN = pIOSState->registerState.regACCINTEN; in am_hal_ios_power_ctrl() 186 pIOSState->registerState.regFIFOCFG = IOSLAVEn(pIOSState->ui32Module)->FIFOCFG; in am_hal_ios_power_ctrl() 187 pIOSState->registerState.regFIFOTHR = IOSLAVEn(pIOSState->ui32Module)->FIFOTHR; in am_hal_ios_power_ctrl() 188 pIOSState->registerState.regCFG = IOSLAVEn(pIOSState->ui32Module)->CFG; in am_hal_ios_power_ctrl() [all …]
|
D | am_hal_iom.c | 114 #define IOM_SET_INTEN(ui32Module, intCfg) \ argument 117 IOMn(ui32Module)->INTEN = 0; \ 118 IOMn(ui32Module)->INTCLR = AM_HAL_IOM_INT_ALL; \ 119 IOMn(ui32Module)->INTEN = (intCfg); \ 229 uint32_t ui32Module; member 441 uint32_t ui32Module = pIOMState->ui32Module; in build_txn_cmdlist() local 448 pCQEntry->ui32OFFSETHIAddr = (uint32_t)&IOMn(ui32Module)->OFFSETHI; in build_txn_cmdlist() 455 pCQEntry->ui32DEVCFGAddr = (uint32_t)&IOMn(ui32Module)->DEVCFG; in build_txn_cmdlist() 461 pCQEntry->ui32DMACFGdis1Addr = (uint32_t)&IOMn(ui32Module)->DMACFG; in build_txn_cmdlist() 467 pCQEntry->ui32DMATOTCOUNTAddr = (uint32_t)&IOMn(ui32Module)->DMATOTCOUNT; in build_txn_cmdlist() [all …]
|
D | am_hal_uart.c | 129 uint32_t ui32Module; member 172 static uint32_t config_baudrate(uint32_t ui32Module, 199 am_hal_uart_initialize(uint32_t ui32Module, void **ppHandle) in am_hal_uart_initialize() argument 204 if (ui32Module >= AM_REG_UART_NUM_MODULES ) in am_hal_uart_initialize() 228 g_am_hal_uart_states[ui32Module].prefix.s.bInit = true; in am_hal_uart_initialize() 229 g_am_hal_uart_states[ui32Module].prefix.s.magic = AM_HAL_MAGIC_UART; in am_hal_uart_initialize() 230 g_am_hal_uart_states[ui32Module].ui32Module = ui32Module; in am_hal_uart_initialize() 231 g_am_hal_uart_states[ui32Module].sRegState.bValid = false; in am_hal_uart_initialize() 232 g_am_hal_uart_states[ui32Module].ui32BaudRate = 0; in am_hal_uart_initialize() 233 g_am_hal_uart_states[ui32Module].bCurrentlyReading = 0; in am_hal_uart_initialize() [all …]
|
D | am_hal_sdhc.c | 105 uint32_t ui32Module; member 577 SDIO_Type *pSDHC = SDHCn(pSDHCState->ui32Module); in am_hal_sdhc_pio_xfer_data() 604 SDIO_Type *pSDHC = SDHCn(pSDHCState->ui32Module); in am_hal_sdhc_sdma_xfer_data() 650 SDIO_Type *pSDHC = SDHCn(pSDHCState->ui32Module); in am_hal_sdhc_xfer_data() 759 uint32_t am_hal_sdhc_initialize(uint32_t ui32Module, void **ppHandle) in am_hal_sdhc_initialize() argument 766 if ( ui32Module >= AM_REG_SDIO_NUM_MODULES ) in am_hal_sdhc_initialize() 782 if ( g_SDHCState[ui32Module].prefix.s.bInit ) in am_hal_sdhc_initialize() 791 g_SDHCState[ui32Module].prefix.s.bInit = true; in am_hal_sdhc_initialize() 792 g_SDHCState[ui32Module].prefix.s.magic = AM_HAL_MAGIC_SDHC; in am_hal_sdhc_initialize() 793 g_SDHCState[ui32Module].ui32Module = ui32Module; in am_hal_sdhc_initialize() [all …]
|
D | am_hal_iom.h | 239 uint32_t ui32Module; member 263 uint32_t ui32Module; member 587 extern uint32_t am_hal_iom_initialize(uint32_t ui32Module, void **ppHandle);
|
D | am_hal_card_host.c | 75 if (am_hal_sdhc_initialize(pHost->ui32Module, &pHost->pHandle) != AM_HAL_STATUS_SUCCESS) in am_hal_sdhc_host_init() 202 .ui32Module = 0x0,
|
D | am_hal_sdhc.h | 75 extern uint32_t am_hal_sdhc_initialize(uint32_t ui32Module,
|
D | am_hal_card_host.h | 208 uint32_t ui32Module; member
|
D | am_hal_uart.h | 402 extern uint32_t am_hal_uart_initialize(uint32_t ui32Module, void **ppHandle);
|
D | am_hal_ios.h | 376 extern uint32_t am_hal_ios_initialize(uint32_t ui32Module, void **ppHandle);
|
D | am_hal_mspi.h | 768 extern uint32_t am_hal_mspi_initialize(uint32_t ui32Module,
|
/hal_ambiq-3.6.0/utils/ |
D | am_util_ble.c | 136 uint32_t ui32Module = pBLE->ui32Module; in am_util_ble_init_rf_channel() local 151 ui32IntEnable = BLEIFn(ui32Module)->INTEN; in am_util_ble_init_rf_channel() 152 BLEIFn(ui32Module)->INTEN = 0; in am_util_ble_init_rf_channel() 161 BLEIFn(ui32Module)->BLEDBG_b.IOCLKON = 1; in am_util_ble_init_rf_channel() 166 while ( BLEIFn(ui32Module)->BSTATUS_b.BLEIRQ == 0 ); in am_util_ble_init_rf_channel() 186 BLEIFn(ui32Module)->BLEDBG_b.IOCLKON = 1; in am_util_ble_init_rf_channel() 191 while ( BLEIFn(ui32Module)->BSTATUS_b.BLEIRQ == 0 ); in am_util_ble_init_rf_channel() 198 BLEIFn(ui32Module)->INTCLR = ui32IntEnable; in am_util_ble_init_rf_channel() 199 BLEIFn(ui32Module)->INTEN = ui32IntEnable; in am_util_ble_init_rf_channel() 278 uint32_t ui32Module = pBLE->ui32Module; in am_util_ble_hci_reset() local [all …]
|
D | am_util_regdump.c | 1120 uint32_t ui32Module; in dump_reg() local 1124 ui32Module = 0; in dump_reg() 1126 while ( ui32Module < ui32NumModules ) in dump_reg() 1129 !(ui32ModuleMask & (1 << ui32Module)) ) in dump_reg() 1131 ui32Module++; in dump_reg() 1138 am_util_stdio_printf(" %s Module %d\n", pui8BlockName, ui32Module); in dump_reg() 1142 block_print(psDump, ui32BlockBaseAddr + (ui32ModuleOffset * ui32Module)); in dump_reg() 1144 ui32Module++; in dump_reg()
|