| | |
| | | extern struct UART_CFG_T test_uart_cfg; |
| | | extern struct ADC_CFG_T usr_adc_cfg; |
| | | extern volatile int32_t m_EUART_DMA_RXPtr; |
| | | extern struct PWM_CFG_T usr_pwm_cfg; |
| | | void board_clock_run(void) |
| | | { |
| | | // default load cap |
| | |
| | | } |
| | | void LED_output_init(void) |
| | | { |
| | | //LEDgpio控制 |
| | | io_pin_mux_set(WS2812_PIN, IO_FUNC0); |
| | | gpio_pin_set_dir(WS2812_PIN , GPIO_DIR_OUT, 0); |
| | | io_pull_set(WS2812_PIN,IO_HIGH_Z,IO_PULL_UP_NONE);//3 |
| | | // //LEDgpio控制 |
| | | // io_pin_mux_set(BOARD_LED_1, IO_FUNC0); |
| | | // gpio_pin_set_dir(BOARD_LED_1 , GPIO_DIR_OUT, 0); |
| | | //// io_pull_set(WS2812_PIN,IO_HIGH_Z,IO_PULL_UP_NONE);//3 |
| | | // //LED |
| | | io_pin_mux_set(IO_PIN_7, IO_FUNC0); |
| | | gpio_pin_set_dir( IO_PIN_7, GPIO_DIR_OUT, 0); |
| | | io_pull_set(IO_PIN_7 , IO_PULL_DOWN, IO_PULL_UP_LEVEL4); |
| | | |
| | | } |
| | | void board_configure(void) |
| | |
| | | uart_open(UART_ID1, &test_uart_cfg); |
| | | AIR780EUartInit(); |
| | | adc_open(&usr_adc_cfg); |
| | | |
| | | pwm_open(&usr_pwm_cfg); |
| | | m_EUART_DMA_RXPtr = 0;//清空上次缓存器避免重复发 |
| | | #if defined(UCI_INTF_PORT) |
| | | uci_tl_resume(); |