/hal_nxp-3.7.0/imx/drivers/ |
D | ecspi.c | 47 void ECSPI_Init(ECSPI_Type* base, const ecspi_init_config_t* initConfig) in ECSPI_Init() argument 56 ECSPI_CONREG_REG(base) |= ECSPI_CONREG_BURST_LENGTH(initConfig->burstLength) | in ECSPI_Init() 57 ECSPI_CONREG_CHANNEL_SELECT(initConfig->channelSelect); in ECSPI_Init() 58 ECSPI_CONREG_REG(base) |= initConfig->ecspiAutoStart ? ECSPI_CONREG_SMC_MASK : 0; in ECSPI_Init() 61 …ECSPI_CONFIGREG_REG(base) = ECSPI_CONFIGREG_SCLK_PHA(((initConfig->clockPhase) & 1) << (initConfig… in ECSPI_Init() 62 … ECSPI_CONFIGREG_SCLK_POL(((initConfig->clockPolarity) & 1) << (initConfig->channelSelect)); in ECSPI_Init() 65 if(initConfig->mode == ecspiMasterMode) in ECSPI_Init() 68 ECSPI_CONREG_REG(base) |= ECSPI_CONREG_CHANNEL_MODE(1 << (initConfig->channelSelect)); in ECSPI_Init() 69 ECSPI_SetBaudRate(base, initConfig->clockRate, initConfig->baudRate); in ECSPI_Init() 72 ECSPI_CONREG_REG(base) &= ~ECSPI_CONREG_CHANNEL_MODE(1 << (initConfig->channelSelect)); in ECSPI_Init()
|
D | gpt.c | 43 void GPT_Init(GPT_Type* base, const gpt_init_config_t* initConfig) in GPT_Init() argument 45 assert(initConfig); in GPT_Init() 51 base->CR = (initConfig->freeRun ? GPT_CR_FRR_MASK : 0) | in GPT_Init() 52 (initConfig->waitEnable ? GPT_CR_WAITEN_MASK : 0) | in GPT_Init() 53 (initConfig->stopEnable ? GPT_CR_STOPEN_MASK : 0) | in GPT_Init() 54 (initConfig->dozeEnable ? GPT_CR_DOZEEN_MASK : 0) | in GPT_Init() 55 (initConfig->dbgEnable ? GPT_CR_DBGEN_MASK : 0) | in GPT_Init() 56 (initConfig->enableMode ? GPT_CR_ENMOD_MASK : 0); in GPT_Init()
|
D | epit.c | 44 void EPIT_Init(EPIT_Type* base, const epit_init_config_t* initConfig) in EPIT_Init() argument 46 assert(initConfig); in EPIT_Init() 52 EPIT_CR_REG(base) = (initConfig->freeRun ? EPIT_CR_RLD_MASK : 0) | in EPIT_Init() 53 (initConfig->waitEnable ? EPIT_CR_WAITEN_MASK : 0) | in EPIT_Init() 54 (initConfig->stopEnable ? EPIT_CR_STOPEN_MASK : 0) | in EPIT_Init() 55 (initConfig->dbgEnable ? EPIT_CR_DBGEN_MASK : 0) | in EPIT_Init() 56 (initConfig->enableMode ? EPIT_CR_ENMOD_MASK : 0); in EPIT_Init()
|
D | uart_imx.c | 47 void UART_Init(UART_Type* base, const uart_init_config_t* initConfig) in UART_Init() argument 49 assert(initConfig); in UART_Init() 60 UART_UCR2_REG(base) |= (initConfig->wordLength | in UART_Init() 61 initConfig->stopBitNum | in UART_Init() 62 initConfig->parity | in UART_Init() 63 initConfig->direction | in UART_Init() 72 UART_SetBaudRate(base, initConfig->clockRate, initConfig->baudRate); in UART_Init()
|
D | wdog_imx.h | 83 static inline void WDOG_Init(WDOG_Type *base, const wdog_init_config_t *initConfig) in WDOG_Init() argument 85 base->WCR |= (initConfig->wdw ? WDOG_WCR_WDW_MASK : 0) | in WDOG_Init() 86 (initConfig->wdt ? WDOG_WCR_WDT_MASK : 0) | in WDOG_Init() 87 (initConfig->wdbg ? WDOG_WCR_WDBG_MASK : 0) | in WDOG_Init() 88 (initConfig->wdzst ? WDOG_WCR_WDZST_MASK : 0); in WDOG_Init()
|
D | i2c_imx.c | 60 void I2C_Init(I2C_Type* base, const i2c_init_config_t* initConfig) in I2C_Init() argument 62 assert(initConfig); in I2C_Init() 71 I2C_SetSlaveAddress(base, initConfig->slaveAddress); in I2C_Init() 74 I2C_SetBaudRate(base, initConfig->clockRate, initConfig->baudRate); in I2C_Init()
|
D | adc_imx6sx.c | 44 void ADC_Init(ADC_Type* base, const adc_init_config_t* initConfig) in ADC_Init() argument 46 assert(initConfig); in ADC_Init() 52 if (initConfig->averageNumber != adcAvgNumNone) in ADC_Init() 55 ADC_CFG_REG(base) |= ADC_CFG_AVGS(initConfig->averageNumber); in ADC_Init() 59 ADC_CFG_REG(base) |= ADC_CFG_MODE(initConfig->resolutionMode); in ADC_Init() 62 ADC_SetClockSource(base, initConfig->clockSource, initConfig->divideRatio); in ADC_Init()
|
D | gpio_imx.c | 47 void GPIO_Init(GPIO_Type* base, const gpio_init_config_t* initConfig) in GPIO_Init() argument 57 pin = initConfig->pin; in GPIO_Init() 60 if (initConfig->direction == gpioDigitalOutput) in GPIO_Init() 73 switch(initConfig->interruptMode) in GPIO_Init()
|
D | flexcan.c | 105 void FLEXCAN_Init(CAN_Type* base, const flexcan_init_config_t* initConfig) in FLEXCAN_Init() argument 107 assert(initConfig); in FLEXCAN_Init() 118 FLEXCAN_SetMaxMsgBufNum(base, initConfig->maxMsgBufNum); in FLEXCAN_Init() 121 FLEXCAN_SetTiming(base, &initConfig->timing); in FLEXCAN_Init() 124 FLEXCAN_SetOperatingMode(base, initConfig->operatingMode); in FLEXCAN_Init()
|
D | adc_imx7d.c | 47 void ADC_Init(ADC_Type* base, const adc_init_config_t* initConfig) in ADC_Init() argument 49 assert(initConfig); in ADC_Init() 55 ADC_SetSampleRate(base, initConfig->sampleRate); in ADC_Init() 58 if (initConfig->levelShifterEnable) in ADC_Init()
|
D | gpio_imx.h | 101 void GPIO_Init(GPIO_Type* base, const gpio_init_config_t* initConfig);
|
D | i2c_imx.h | 101 void I2C_Init(I2C_Type* base, const i2c_init_config_t* initConfig);
|
D | epit.h | 96 void EPIT_Init(EPIT_Type* base, const epit_init_config_t* initConfig);
|
D | adc_imx6sx.h | 165 void ADC_Init(ADC_Type* base, const adc_init_config_t* initConfig);
|
D | ecspi.h | 177 void ECSPI_Init(ECSPI_Type* base, const ecspi_init_config_t* initConfig);
|
D | gpt.h | 132 void GPT_Init(GPT_Type* base, const gpt_init_config_t* initConfig);
|
D | adc_imx7d.h | 161 void ADC_Init(ADC_Type* base, const adc_init_config_t* initConfig);
|
D | flexcan.h | 271 void FLEXCAN_Init(CAN_Type* base, const flexcan_init_config_t* initConfig);
|
D | uart_imx.h | 228 void UART_Init(UART_Type* base, const uart_init_config_t* initConfig);
|
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/gpt/ |
D | fsl_gpt.c | 58 void GPT_Init(GPT_Type *base, const gpt_config_t *initConfig) in GPT_Init() argument 60 assert(NULL != initConfig); in GPT_Init() 71 …(initConfig->enableFreeRun ? GPT_CR_FRR_MASK : 0UL) | (initConfig->enableRunInWait ? GPT_CR_WAITEN… in GPT_Init() 72 (initConfig->enableRunInStop ? GPT_CR_STOPEN_MASK : 0UL) | in GPT_Init() 73 (initConfig->enableRunInDoze ? GPT_CR_DOZEEN_MASK : 0UL) | in GPT_Init() 74 …(initConfig->enableRunInDbg ? GPT_CR_DBGEN_MASK : 0UL) | (initConfig->enableMode ? GPT_CR_ENMOD_MA… in GPT_Init() 76 GPT_SetClockSource(base, initConfig->clockSource); in GPT_Init() 77 GPT_SetClockDivider(base, initConfig->divider); in GPT_Init()
|
D | fsl_gpt.h | 131 void GPT_Init(GPT_Type *base, const gpt_config_t *initConfig);
|