| /hal_ambiq-latest/mcu/apollo3p/hal/ |
| D | am_hal_adc.c | 334 uint32_t ui32Config; in am_hal_adc_configure() local 349 ui32Config = 0; in am_hal_adc_configure() 354 ui32Config |= _VAL2FLD(ADC_CFG_CLKSEL, psConfig->eClock); in am_hal_adc_configure() 359 ui32Config |= _VAL2FLD(ADC_CFG_TRIGPOL, psConfig->ePolarity); in am_hal_adc_configure() 364 ui32Config |= _VAL2FLD(ADC_CFG_TRIGSEL, psConfig->eTrigger); in am_hal_adc_configure() 369 ui32Config |= _VAL2FLD(ADC_CFG_REFSEL, psConfig->eReference); in am_hal_adc_configure() 374 ui32Config |= _VAL2FLD(ADC_CFG_DFIFORDEN, 1); in am_hal_adc_configure() 379 ui32Config |= _VAL2FLD(ADC_CFG_CKMODE, psConfig->eClockMode); in am_hal_adc_configure() 384 ui32Config |= _VAL2FLD(ADC_CFG_LPMODE, psConfig->ePowerMode); in am_hal_adc_configure() 389 ui32Config |= _VAL2FLD(ADC_CFG_RPTEN, psConfig->eRepeat); in am_hal_adc_configure() [all …]
|
| D | am_hal_wdt.c | 89 bool bResetEnabled = psConfig->ui32Config & AM_HAL_WDT_ENABLE_RESET; in am_hal_wdt_init() 90 bool bInterruptEnabled = psConfig->ui32Config & AM_HAL_WDT_ENABLE_INTERRUPT; in am_hal_wdt_init() 102 ui32ConfigVal = psConfig->ui32Config & ~(WDT_CFG_INTVAL_Msk | WDT_CFG_RESVAL_Msk); in am_hal_wdt_init() 150 if ( !(psConfig->ui32Config & WDT_CFG_CLKSEL_Msk) ) in am_hal_wdt_init()
|
| D | am_hal_mspi.c | 1304 uint32_t ui32Config = 0; in am_hal_mspi_device_configure() local 1354 ui32Config |= _VAL2FLD(MSPI0_CFG_CPOL, 0) | in am_hal_mspi_device_configure() 1358 ui32Config |= _VAL2FLD(MSPI0_CFG_CPOL, 1) | in am_hal_mspi_device_configure() 1362 ui32Config |= _VAL2FLD(MSPI0_CFG_CPOL, 0) | in am_hal_mspi_device_configure() 1366 ui32Config |= _VAL2FLD(MSPI0_CFG_CPOL, 1) | in am_hal_mspi_device_configure() 1374 ui32Config |= _VAL2FLD(MSPI0_CFG_TURNAROUND, pConfig->ui8TurnAround); in am_hal_mspi_device_configure() 1379 ui32Config |= _VAL2FLD(MSPI0_CFG_ASIZE, pConfig->eAddrCfg); in am_hal_mspi_device_configure() 1384 ui32Config |= _VAL2FLD(MSPI0_CFG_ISIZE, pConfig->eInstrCfg); in am_hal_mspi_device_configure() 1389 ui32Config |= _VAL2FLD(MSPI0_CFG_WRITELATENCY, pConfig->ui8WriteLatency); in am_hal_mspi_device_configure() 1394 MSPIn(ui32Module)->CFG = ui32Config; in am_hal_mspi_device_configure() [all …]
|
| D | am_hal_wdt.h | 120 uint32_t ui32Config; member
|
| /hal_ambiq-latest/mcu/apollo3/hal/ |
| D | am_hal_adc.c | 334 uint32_t ui32Config; in am_hal_adc_configure() local 349 ui32Config = 0; in am_hal_adc_configure() 354 ui32Config |= _VAL2FLD(ADC_CFG_CLKSEL, psConfig->eClock); in am_hal_adc_configure() 359 ui32Config |= _VAL2FLD(ADC_CFG_TRIGPOL, psConfig->ePolarity); in am_hal_adc_configure() 364 ui32Config |= _VAL2FLD(ADC_CFG_TRIGSEL, psConfig->eTrigger); in am_hal_adc_configure() 369 ui32Config |= _VAL2FLD(ADC_CFG_REFSEL, psConfig->eReference); in am_hal_adc_configure() 374 ui32Config |= _VAL2FLD(ADC_CFG_DFIFORDEN, 1); in am_hal_adc_configure() 379 ui32Config |= _VAL2FLD(ADC_CFG_CKMODE, psConfig->eClockMode); in am_hal_adc_configure() 384 ui32Config |= _VAL2FLD(ADC_CFG_LPMODE, psConfig->ePowerMode); in am_hal_adc_configure() 389 ui32Config |= _VAL2FLD(ADC_CFG_RPTEN, psConfig->eRepeat); in am_hal_adc_configure() [all …]
|
| D | am_hal_wdt.c | 89 bool bResetEnabled = psConfig->ui32Config & AM_HAL_WDT_ENABLE_RESET; in am_hal_wdt_init() 90 bool bInterruptEnabled = psConfig->ui32Config & AM_HAL_WDT_ENABLE_INTERRUPT; in am_hal_wdt_init() 102 ui32ConfigVal = psConfig->ui32Config & ~(WDT_CFG_INTVAL_Msk | WDT_CFG_RESVAL_Msk); in am_hal_wdt_init() 150 if ( !(psConfig->ui32Config & WDT_CFG_CLKSEL_Msk) ) in am_hal_wdt_init()
|
| D | am_hal_mspi.c | 1357 uint32_t ui32Config = 0; in am_hal_mspi_device_configure() local 1385 ui32Config |= _VAL2FLD(MSPI_CFG_CPOL, 0) | in am_hal_mspi_device_configure() 1389 ui32Config |= _VAL2FLD(MSPI_CFG_CPOL, 1) | in am_hal_mspi_device_configure() 1393 ui32Config |= _VAL2FLD(MSPI_CFG_CPOL, 0) | in am_hal_mspi_device_configure() 1397 ui32Config |= _VAL2FLD(MSPI_CFG_CPOL, 1) | in am_hal_mspi_device_configure() 1405 ui32Config |= _VAL2FLD(MSPI_CFG_TURNAROUND, pConfig->ui8TurnAround); in am_hal_mspi_device_configure() 1410 ui32Config |= _VAL2FLD(MSPI_CFG_ASIZE, pConfig->eAddrCfg); in am_hal_mspi_device_configure() 1415 ui32Config |= _VAL2FLD(MSPI_CFG_ISIZE, pConfig->eInstrCfg); in am_hal_mspi_device_configure() 1420 MSPIn(ui32Module)->CFG = ui32Config; in am_hal_mspi_device_configure() 1451 ui32Config = 0; in am_hal_mspi_device_configure() [all …]
|
| D | am_hal_wdt.h | 120 uint32_t ui32Config; member
|
| /hal_ambiq-latest/mcu/apollo4p/hal/ |
| D | am_hal_adc.c | 438 uint32_t ui32Config; in am_hal_adc_configure() local 453 ui32Config = 0; in am_hal_adc_configure() 463 ui32Config |= _VAL2FLD(ADC_CFG_CLKSEL, psConfig->eClock); in am_hal_adc_configure() 468 ui32Config |= _VAL2FLD(ADC_CFG_RPTTRIGSEL, psConfig->eRepeatTrigger); in am_hal_adc_configure() 473 ui32Config |= _VAL2FLD(ADC_CFG_TRIGPOL, psConfig->ePolarity); in am_hal_adc_configure() 478 ui32Config |= _VAL2FLD(ADC_CFG_TRIGSEL, psConfig->eTrigger); in am_hal_adc_configure() 483 ui32Config |= _VAL2FLD(ADC_CFG_DFIFORDEN, 1); in am_hal_adc_configure() 488 ui32Config |= _VAL2FLD(ADC_CFG_CKMODE, psConfig->eClockMode); in am_hal_adc_configure() 493 ui32Config |= _VAL2FLD(ADC_CFG_LPMODE, psConfig->ePowerMode); in am_hal_adc_configure() 498 ui32Config |= _VAL2FLD(ADC_CFG_RPTEN, psConfig->eRepeat); in am_hal_adc_configure() [all …]
|
| D | am_hal_audadc.c | 341 uint32_t ui32Config; in am_hal_audadc_configure() local 355 ui32Config = 0; in am_hal_audadc_configure() 360 ui32Config |= _VAL2FLD(AUDADC_CFG_CLKSEL, psConfig->eClock); in am_hal_audadc_configure() 380 ui32Config |= _VAL2FLD(AUDADC_CFG_RPTTRIGSEL, psConfig->eRepeatTrigger); in am_hal_audadc_configure() 385 ui32Config |= _VAL2FLD(AUDADC_CFG_TRIGPOL, psConfig->ePolarity); in am_hal_audadc_configure() 390 ui32Config |= _VAL2FLD(AUDADC_CFG_TRIGSEL, psConfig->eTrigger); in am_hal_audadc_configure() 395 ui32Config |= _VAL2FLD(AUDADC_CFG_SAMPMODE, psConfig->eSampMode); in am_hal_audadc_configure() 400 ui32Config |= _VAL2FLD(AUDADC_CFG_DFIFORDEN, 1); in am_hal_audadc_configure() 405 ui32Config |= _VAL2FLD(AUDADC_CFG_CKMODE, psConfig->eClockMode); in am_hal_audadc_configure() 410 ui32Config |= _VAL2FLD(AUDADC_CFG_LPMODE, psConfig->ePowerMode); in am_hal_audadc_configure() [all …]
|
| /hal_ambiq-latest/mcu/apollo4p/hal/mcu/ |
| D | am_hal_mspi.c | 1412 uint32_t ui32Config = 0; in am_hal_mspi_device_configure() local 1436 ui32Config = 0; in am_hal_mspi_device_configure() 1441 ui32Config |= _VAL2FLD(MSPI0_DEV0CFG_ASIZE0, pConfig->eAddrCfg); in am_hal_mspi_device_configure() 1446 ui32Config |= _VAL2FLD(MSPI0_DEV0CFG_ISIZE0, pConfig->eInstrCfg); in am_hal_mspi_device_configure() 1451 ui32Config |= _VAL2FLD(MSPI0_DEV0CFG_TURNAROUND0, pConfig->ui8TurnAround); in am_hal_mspi_device_configure() 1459 ui32Config |= _VAL2FLD(MSPI0_DEV0CFG_CPOL0, 0) | in am_hal_mspi_device_configure() 1463 ui32Config |= _VAL2FLD(MSPI0_DEV0CFG_CPOL0, 1) | in am_hal_mspi_device_configure() 1467 ui32Config |= _VAL2FLD(MSPI0_DEV0CFG_CPOL0, 0) | in am_hal_mspi_device_configure() 1471 ui32Config |= _VAL2FLD(MSPI0_DEV0CFG_CPOL0, 1) | in am_hal_mspi_device_configure() 1479 ui32Config |= _VAL2FLD(MSPI0_DEV0CFG_CLKDIV0, pConfig->eClockFreq); in am_hal_mspi_device_configure() [all …]
|