| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- /*
- * hlx.c
- *
- * Created on: 2025年8月22日
- * Author: 龙三郎
- */
- #include "tr_usb0_host_driver.h"
- #include "tr_timer_driver.h"
- #include "tr_led.h"
- #include "tr_queue.h"
- #include "uart.h"
- #include "uartStdio.h"
- #include "soc_C6748.h"
- void HlxInit(void)
- {
- TimerInit(); // 定时器
- LedInit(); // Led初始化
- Usb0HostInit(); // usb初始化
- dataforwardInit(); // 数据转发模块初始化
- // UARTStdioInit(); // uart2初始化
- }
- void HlxMain(void)
- {
- LedFlashingMain();
- Usb0HostMain(); // usb模块主流程
- dataforwardMain(); // 数据转发主流程
- // uart2获取数据
- // while(UARTCharsAvail(SOC_UART_2_REGS))
- // {
- // // 读下一个字符
- // unsigned char ucChar = UARTGetc();
- // enqueueFromUart(ucChar);
- // UARTPutc(ucChar);
- // }
- }
|