| /bsp/rockchip/common/rk_hal/lib/hal/inc/ |
| A D | hal_pinctrl.h | 473 HAL_Status HAL_PINCTRL_IOFuncSelForCIF(eIOFUNC_SEL mode); 474 HAL_Status HAL_PINCTRL_IOFuncSelForEMMC(eIOFUNC_SEL mode); 476 HAL_Status HAL_PINCTRL_IOFuncSelForFSPI(eIOFUNC_SEL mode); 477 HAL_Status HAL_PINCTRL_IOFuncSelForLCDC(eIOFUNC_SEL mode); 482 HAL_Status HAL_PINCTRL_IOFuncSelForSDIO(eIOFUNC_SEL mode); 485 HAL_Status HAL_PINCTRL_IOFuncSelForCAN0(eIOFUNC_SEL mode); 486 HAL_Status HAL_PINCTRL_IOFuncSelForCAN1(eIOFUNC_SEL mode); 487 HAL_Status HAL_PINCTRL_IOFuncSelForCAN2(eIOFUNC_SEL mode); 488 HAL_Status HAL_PINCTRL_IOFuncSelForCAN3(eIOFUNC_SEL mode); 489 HAL_Status HAL_PINCTRL_IOFuncSelForCAN4(eIOFUNC_SEL mode); [all …]
|
| /bsp/stm32/stm32l475-atk-pandora/board/ports/audio/ |
| A D | drv_es8388.c | 85 if (mode == ES_MODE_ADC || mode == ES_MODE_DAC_ADC) in es8388_set_adc_dac_volume() 90 if (mode == ES_MODE_DAC || mode == ES_MODE_DAC_ADC) in es8388_set_adc_dac_volume() 160 if (mode == ES_MODE_LINE) in es8388_start() 180 if (mode == ES_MODE_ADC || mode == ES_MODE_DAC_ADC || mode == ES_MODE_LINE) in es8388_start() 184 if (mode == ES_MODE_DAC || mode == ES_MODE_DAC_ADC || mode == ES_MODE_LINE) in es8388_start() 196 if (mode == ES_MODE_LINE) in es8388_stop() 204 if (mode == ES_MODE_DAC || mode == ES_MODE_DAC_ADC) in es8388_stop() 210 if (mode == ES_MODE_ADC || mode == ES_MODE_DAC_ADC) in es8388_stop() 215 if (mode == ES_MODE_DAC_ADC) in es8388_stop() 230 if (mode == ES_MODE_ADC || mode == ES_MODE_DAC_ADC) in es8388_fmt_set() [all …]
|
| /bsp/amebaz/drivers/wlan/ |
| A D | drv_wlan.c | 41 if(wifi_on(mode) < 0) in rthw_wifi_start() 51 int mode; in rthw_wifi_connect() local 54 mode = rthw_wifi_mode_get(); in rthw_wifi_connect() 55 if ((mode != RTHW_MODE_STA) && (mode != RTHW_MODE_STA_AP)) in rthw_wifi_connect() 78 int mode; in rthw_wifi_connect_bssid() local 82 if ((mode != RTHW_MODE_STA) && (mode != RTHW_MODE_STA_AP)) in rthw_wifi_connect_bssid() 106 int mode = 0, timeout = 20; in rthw_wifi_ap_start() local 111 if (mode == RTHW_MODE_AP) in rthw_wifi_ap_start() 206 int mode = 0; in rthw_wifi_sta_disconnect() local 227 int mode = 0; in rthw_wifi_ap_disconnect() local [all …]
|
| /bsp/wch/risc-v/Libraries/ch56x_drivers/ |
| A D | ch56x_spi.c | 58 uint8_t mode; in _spi_pin_config() local 61 mode = config->mode & (RT_SPI_MASTER | RT_SPI_SLAVE | RT_SPI_3WIRE); in _spi_pin_config() 62 if (mode == RT_SPI_MASTER) in _spi_pin_config() 68 else if (mode == RT_SPI_SLAVE) in _spi_pin_config() 85 return mode; in _spi_pin_config() 94 uint8_t mode; in spi_configure() local 110 mode = config->mode & (RT_SPI_CPOL | RT_SPI_CPHA); in spi_configure() 111 if (mode == RT_SPI_MODE_0) in spi_configure() 131 mode = config->mode & (RT_SPI_MSB | RT_SPI_LSB); in spi_configure() 140 mode = config->mode & (RT_SPI_MASTER | RT_SPI_SLAVE); in spi_configure() [all …]
|
| /bsp/stm32/stm32f407-rt-spark/board/ports/audio/ |
| A D | drv_es8388.c | 85 if (mode == ES_MODE_ADC || mode == ES_MODE_DAC_ADC) in es8388_set_adc_dac_volume() 90 if (mode == ES_MODE_DAC || mode == ES_MODE_DAC_ADC) in es8388_set_adc_dac_volume() 163 if (mode == ES_MODE_LINE) in es8388_start() 183 if (mode == ES_MODE_ADC || mode == ES_MODE_DAC_ADC || mode == ES_MODE_LINE) in es8388_start() 187 if (mode == ES_MODE_DAC || mode == ES_MODE_DAC_ADC || mode == ES_MODE_LINE) in es8388_start() 199 if (mode == ES_MODE_LINE) in es8388_stop() 207 if (mode == ES_MODE_DAC || mode == ES_MODE_DAC_ADC) in es8388_stop() 213 if (mode == ES_MODE_ADC || mode == ES_MODE_DAC_ADC) in es8388_stop() 218 if (mode == ES_MODE_DAC_ADC) in es8388_stop() 233 if (mode == ES_MODE_ADC || mode == ES_MODE_DAC_ADC) in es8388_fmt_set() [all …]
|
| /bsp/apm32/libraries/Drivers/ |
| A D | drv_gpio.c | 208 gpioConfig.mode = GPIO_MODE_OUT_PP; in apm32_pin_mode() 211 if (mode == PIN_MODE_OUTPUT) in apm32_pin_mode() 216 else if (mode == PIN_MODE_INPUT) in apm32_pin_mode() 238 gpioConfig.mode = GPIO_MODE_OUT; in apm32_pin_mode() 242 if (mode == PIN_MODE_OUTPUT) in apm32_pin_mode() 248 else if (mode == PIN_MODE_INPUT) in apm32_pin_mode() 274 gpioConfig.mode = GPIO_MODE_OUT; in apm32_pin_mode() 279 if (mode == PIN_MODE_OUTPUT) in apm32_pin_mode() 285 else if (mode == PIN_MODE_INPUT) in apm32_pin_mode() 356 pin_irq_hdr_tab[irqindex].mode == mode && in apm32_pin_attach_irq() [all …]
|
| /bsp/asm9260t/platform/ |
| A D | uart.c | 36 rt_uint32_t mode = ASM_UART_LINECTRL_FEN; in Hw_UartConfig() local 41 mode |= ASM_UART_LINECTRL_WLEN8; in Hw_UartConfig() 44 mode |= ASM_UART_LINECTRL_WLEN7; in Hw_UartConfig() 47 mode |= ASM_UART_LINECTRL_WLEN6; in Hw_UartConfig() 50 mode |= ASM_UART_LINECTRL_WLEN5; in Hw_UartConfig() 53 mode |= ASM_UART_LINECTRL_WLEN8; in Hw_UartConfig() 60 mode |= ASM_UART_LINECTRL_STP2; in Hw_UartConfig() 70 mode |= ASM_UART_LINECTRL_PEN; in Hw_UartConfig() 73 mode |= ASM_UART_LINECTRL_PEN | ASM_UART_LINECTRL_EPS; in Hw_UartConfig() 80 mode |= (((12000000 <<2 ) / baudRate) & UART_BAUD_DIVINT_MASK) << 10; in Hw_UartConfig() [all …]
|
| /bsp/apm32/apm32f107vc-evalboard/board/ |
| A D | board.c | 20 GPIO_ConfigStruct.mode = GPIO_MODE_AF_PP; in apm32_usart_init() 25 GPIO_ConfigStruct.mode = GPIO_MODE_IN_FLOATING; in apm32_usart_init() 34 GPIO_ConfigStruct.mode = GPIO_MODE_AF_PP; in apm32_usart_init() 48 GPIO_ConfigStruct.mode = GPIO_MODE_AF_PP; in apm32_usart_init() 64 GPIO_ConfigStruct.mode = GPIO_MODE_AF_PP; in apm32_usart_init() 92 gpioConfig.mode = GPIO_MODE_AF_PP; in apm32_msp_spi_init() 102 gpioConfig.mode = GPIO_MODE_IN_FLOATING; in apm32_msp_spi_init() 123 gpio_config.mode = GPIO_MODE_AF_PP; in apm32_msp_timer_init() 242 GPIO_ConfigStruct.mode = GPIO_MODE_AF_PP; in apm32_msp_eth_init() 254 GPIO_ConfigStruct.mode = GPIO_MODE_OUT_PP; in apm32_msp_eth_init() [all …]
|
| /bsp/mm32/libraries/MM32F3270_HAL/MM32F3270_HAL_Driver/Src/ |
| A D | hal_syscfg.c | 14 void SYSCFG_SetBootMemMode(SYSCFG_BootMemMode_Type mode) in SYSCFG_SetBootMemMode() argument 17 | SYSCFG_CFGR_MEMMODE(mode); in SYSCFG_SetBootMemMode() 23 | SYSCFG_CFGR_FCODATAEN(mode); in SYSCFG_SetFSMCPinUseMode() 26 void SYSCFG_SetFSMCMode(SYSCFG_FSMCMode_Type mode) in SYSCFG_SetFSMCMode() argument 29 | SYSCFG_CFGR_MODESEL(mode); in SYSCFG_SetFSMCMode() 56 void SYSCFG_SetI2C0PortMode(SYSCFG_I2CPortMode_Type mode) in SYSCFG_SetI2C0PortMode() argument 59 | SYSCFG_CFGR2_I2C1MODESEL(mode); in SYSCFG_SetI2C0PortMode() 62 void SYSCFG_SetI2C1PortMode(SYSCFG_I2CPortMode_Type mode) in SYSCFG_SetI2C1PortMode() argument 65 | SYSCFG_CFGR2_I2C2MODESEL(mode); in SYSCFG_SetI2C1PortMode() 71 | SYSCFG_CFGR2_MIIRMIISEL(mode); in SYSCFG_SetENETPortMode() [all …]
|
| /bsp/efm32/ |
| A D | drv_adc.c | 215 rt_uint8_t mode, in efm32_adc_cfg_dma() argument 231 switch (mode & ADC_MASK_MODE) in efm32_adc_cfg_dma() 287 rt_uint8_t mode, in efm32_adc_on_dma() argument 292 switch (mode & ADC_MASK_MODE) in efm32_adc_on_dma() 397 switch (control->mode) in rt_adc_control() 404 control->mode, in rt_adc_control() 417 control->mode, in rt_adc_control() 466 switch (control->mode) in rt_adc_control() 492 adc->mode |= control->mode; in rt_adc_control() 524 switch (control->mode) in rt_adc_control() [all …]
|
| /bsp/allwinner/libraries/sunxi-hal/hal/source/sound/component/aw-alsa-lib/ |
| A D | pcm_config.c | 37 snd_pcm_stream_t stream, int mode); 39 snd_pcm_stream_t stream, int mode); 41 snd_pcm_stream_t stream, int mode); 43 snd_pcm_stream_t stream, int mode); 45 snd_pcm_stream_t stream, int mode); 47 snd_pcm_stream_t stream, int mode); 49 snd_pcm_stream_t stream, int mode); 51 snd_pcm_stream_t stream, int mode); 53 snd_pcm_stream_t stream, int mode); 55 snd_pcm_stream_t stream, int mode); [all …]
|
| /bsp/renesas/rzt2m_rsk/board/ |
| A D | Kconfig | 160 bool "SPI mode" 163 bool "I2C mode" 166 bool "UART mode" 191 bool "SPI mode" 194 bool "I2C mode" 222 bool "SPI mode" 225 bool "I2C mode" 253 bool "SPI mode" 256 bool "I2C mode" 284 bool "SPI mode" [all …]
|
| /bsp/renesas/ra6m3-ek/board/ |
| A D | Kconfig | 209 bool "SPI mode" 212 bool "I2C mode" 215 bool "UART mode" 240 bool "SPI mode" 243 bool "I2C mode" 271 bool "SPI mode" 274 bool "I2C mode" 302 bool "SPI mode" 305 bool "I2C mode" 333 bool "SPI mode" [all …]
|
| /bsp/stm32/libraries/HAL_Drivers/nano/ |
| A D | drv_gpio.c | 18 void rt_pin_mode(rt_uint64_t pin, rt_uint8_t mode) in rt_pin_mode() argument 24 RT_ASSERT(mode == PIN_MODE_OUTPUT || mode == PIN_MODE_INPUT || in rt_pin_mode() 25 mode == PIN_MODE_INPUT_PULLUP || mode == PIN_MODE_INPUT_PULLDOWN || in rt_pin_mode() 26 mode == PIN_MODE_OUTPUT_OD); in rt_pin_mode() 74 if (mode == PIN_MODE_OUTPUT) in rt_pin_mode() 80 else if (mode == PIN_MODE_INPUT) in rt_pin_mode() 86 else if (mode == PIN_MODE_INPUT_PULLUP) in rt_pin_mode() 92 else if (mode == PIN_MODE_INPUT_PULLDOWN) in rt_pin_mode() 98 else if (mode == PIN_MODE_OUTPUT_OD) in rt_pin_mode()
|
| /bsp/ck802/libraries/common/sha/ |
| A D | ck_sha.c | 36 sha_mode_e mode; member 70 static int32_t sha_set_mode(sha_mode_e mode) in sha_set_mode() argument 72 sha_reg->SHA_CON = mode; in sha_set_mode() 131 …if (sha_priv->mode == SHA_MODE_1 || sha_priv->mode == SHA_MODE_224 || sha_priv->mode == SHA_MODE_2… in sha_get_data() 132 if (sha_priv->mode == SHA_MODE_1) { in sha_get_data() 288 switch (mode) { in csi_sha_config() 298 sha_priv->mode = mode; in csi_sha_config() 305 sha_set_mode(mode); in csi_sha_config() 364 if (sha_priv->mode < 4) { in csi_sha_update() 463 if (sha_priv->mode < 4) { in csi_sha_finish() [all …]
|
| /bsp/apollo2/board/ |
| A D | gpio.c | 21 void am_pin_mode(rt_device_t dev, rt_base_t pin, rt_uint8_t mode) in am_pin_mode() argument 23 if (mode == PIN_MODE_OUTPUT) in am_pin_mode() 28 else if (mode == PIN_MODE_INPUT) in am_pin_mode() 33 else if (mode == PIN_MODE_INPUT_PULLUP) in am_pin_mode() 38 else if (mode == PIN_MODE_INPUT_PULLDOWN) in am_pin_mode() 93 rt_uint8_t mode, void (*hdr)(void *args), void *args) in am_pin_attach_irq() argument 103 am_pin_irq_hdr_tab[irqindex].mode == mode && in am_pin_attach_irq() 117 am_pin_irq_hdr_tab[irqindex].mode = mode; in am_pin_attach_irq() 139 am_pin_irq_hdr_tab[irqindex].mode = 0; in am_pin_dettach_irq() 158 if (am_pin_irq_hdr_tab[irqindex].mode == PIN_IRQ_MODE_RISING) in am_pin_irq_enable() [all …]
|
| /bsp/renesas/rzn2l_etherkit/board/ |
| A D | Kconfig | 148 bool "SPI mode" 151 bool "I2C mode" 154 bool "UART mode" 179 bool "SPI mode" 182 bool "I2C mode" 210 bool "SPI mode" 213 bool "I2C mode" 241 bool "SPI mode" 244 bool "I2C mode" 272 bool "SPI mode" [all …]
|
| /bsp/renesas/ra8m1-ek/board/ |
| A D | Kconfig | 124 bool "SPI mode" 127 bool "I2C mode" 130 bool "UART mode" 155 bool "SPI mode" 158 bool "I2C mode" 186 bool "SPI mode" 189 bool "I2C mode" 217 bool "SPI mode" 220 bool "I2C mode" 248 bool "SPI mode" [all …]
|
| /bsp/renesas/ebf_qi_min_6m5/board/ |
| A D | Kconfig | 161 bool "SPI mode" 164 bool "I2C mode" 167 bool "UART mode" 192 bool "SPI mode" 195 bool "I2C mode" 223 bool "SPI mode" 226 bool "I2C mode" 254 bool "SPI mode" 257 bool "I2C mode" 285 bool "SPI mode" [all …]
|
| /bsp/renesas/ra4m2-eco/board/ |
| A D | Kconfig | 248 bool "SPI mode" 251 bool "I2C mode" 279 bool "SPI mode" 282 bool "I2C mode" 310 bool "SPI mode" 313 bool "I2C mode" 341 bool "SPI mode" 344 bool "I2C mode" 372 bool "SPI mode" 375 bool "I2C mode" [all …]
|
| /bsp/renesas/ra2l1-cpk/board/ |
| A D | Kconfig | 325 bool "SPI mode" 328 bool "I2C mode" 356 bool "SPI mode" 359 bool "I2C mode" 387 bool "SPI mode" 390 bool "I2C mode" 418 bool "SPI mode" 421 bool "I2C mode" 449 bool "SPI mode" 452 bool "I2C mode" [all …]
|
| /bsp/samd21/sam_d2x_asflib/sam0/drivers/system/pinmux/ |
| A D | pinmux.h | 361 const enum system_pinmux_pin_sample mode); 410 const enum system_pinmux_pin_sample mode) in system_pinmux_pin_set_input_sample_mode() argument 415 if (mode == SYSTEM_PINMUX_PIN_SAMPLE_ONDEMAND) { in system_pinmux_pin_set_input_sample_mode() 450 const enum system_pinmux_pin_strength mode) in system_pinmux_pin_set_output_strength() argument 455 if (mode == SYSTEM_PINMUX_PIN_STRENGTH_HIGH) { in system_pinmux_pin_set_output_strength() 466 const enum system_pinmux_pin_strength mode); 496 const enum system_pinmux_pin_slew_rate mode) in system_pinmux_pin_set_output_slew_rate() argument 512 const enum system_pinmux_pin_slew_rate mode); 540 const enum system_pinmux_pin_drive mode) in system_pinmux_pin_set_output_drive() argument 545 if (mode == SYSTEM_PINMUX_PIN_DRIVE_OPEN_DRAIN) { in system_pinmux_pin_set_output_drive() [all …]
|
| /bsp/apm32/apm32e103ze-evalboard/board/ |
| A D | board.c | 20 GPIO_ConfigStruct.mode = GPIO_MODE_AF_PP; in apm32_usart_init() 25 GPIO_ConfigStruct.mode = GPIO_MODE_IN_PU; in apm32_usart_init() 34 GPIO_ConfigStruct.mode = GPIO_MODE_AF_PP; in apm32_usart_init() 39 GPIO_ConfigStruct.mode = GPIO_MODE_IN_PU; in apm32_usart_init() 64 gpio_config.mode = GPIO_MODE_AF_PP; in apm32_msp_timer_init() 103 gpioConfig.mode = GPIO_MODE_AF_PP; in apm32_msp_spi_init() 113 gpioConfig.mode = GPIO_MODE_IN_FLOATING; in apm32_msp_spi_init() 136 GPIO_InitStructure.mode = GPIO_MODE_AF_PP; in apm32_msp_sdio_init() 162 GPIO_InitStructure.mode = GPIO_MODE_AF_PP; in apm32_msp_can_init() 168 GPIO_InitStructure.mode = GPIO_MODE_IN_FLOATING; in apm32_msp_can_init() [all …]
|
| /bsp/apm32/apm32e103ze-tinyboard/board/ |
| A D | board.c | 20 GPIO_ConfigStruct.mode = GPIO_MODE_AF_PP; in apm32_usart_init() 25 GPIO_ConfigStruct.mode = GPIO_MODE_IN_PU; in apm32_usart_init() 34 GPIO_ConfigStruct.mode = GPIO_MODE_AF_PP; in apm32_usart_init() 39 GPIO_ConfigStruct.mode = GPIO_MODE_IN_PU; in apm32_usart_init() 64 gpio_config.mode = GPIO_MODE_AF_PP; in apm32_msp_timer_init() 103 gpioConfig.mode = GPIO_MODE_AF_PP; in apm32_msp_spi_init() 113 gpioConfig.mode = GPIO_MODE_IN_FLOATING; in apm32_msp_spi_init() 136 GPIO_InitStructure.mode = GPIO_MODE_AF_PP; in apm32_msp_sdio_init() 162 GPIO_InitStructure.mode = GPIO_MODE_AF_PP; in apm32_msp_can_init() 168 GPIO_InitStructure.mode = GPIO_MODE_IN_FLOATING; in apm32_msp_can_init() [all …]
|
| /bsp/nuvoton/libraries/m480/rtt_port/ |
| A D | drv_clk.c | 69 static void pm_sleep(struct rt_pm *pm, rt_uint8_t mode); 70 static void pm_run(struct rt_pm *pm, rt_uint8_t mode); 104 static void pm_sleep(struct rt_pm *pm, rt_uint8_t mode) in pm_sleep() argument 106 RT_ASSERT(mode < PM_SLEEP_MODE_MAX); in pm_sleep() 108 if ((mode == PM_SLEEP_MODE_NONE) || (mode == PM_SLEEP_MODE_IDLE)) in pm_sleep() 120 if ((mode == PM_SLEEP_MODE_SHUTDOWN) || (mode == PM_SLEEP_MODE_STANDBY)) in pm_sleep() 128 CLK_SetPowerDownMode(g_au32SleepingMode[mode]); in pm_sleep() 136 static void pm_run(struct rt_pm *pm, rt_uint8_t mode) in pm_run() argument 141 if (mode == prev_mode) in pm_run() 144 prev_mode = mode; in pm_run() [all …]
|