gateway/User/start.c

57 lines
677 B
C
Raw Normal View History

2024-07-13 02:22:47 +00:00
#include <start.h>
#include "inc/Android.h"
2024-07-13 03:43:10 +00:00
#include "inc/Flash.h"
#include "inc/UART.h"
2024-07-13 02:22:47 +00:00
2024-07-13 03:43:10 +00:00
#include <inc/communication_protocol.h>
2024-07-15 09:22:55 +00:00
#include <inc/thread.h>
#include "inc/uart_dev.h"
2024-07-17 01:40:41 +00:00
#include "inc/thread_communication.h"
2024-07-13 02:22:47 +00:00
/*
* Ӳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*
*
*/
void hareware_init()
{
android_PowerCtrl_Init();
android_PowerCtrl_Open();
// SPI_Flash_TEST();
// USARTx_SendStr(J5_0_USART, "This is a test data.\n");
}
/*
* <EFBFBD>̳߳<EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*
*
*/
void software_init()
{
uart_dev_init();
2024-07-17 01:40:41 +00:00
Send_mq_Init();
Recv_thread_Init();
Send_thread_Init();
2024-08-05 02:36:17 +00:00
while (1);
2024-07-13 02:22:47 +00:00
}
/*
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*
*
*/
void app_star()
{
hareware_init();
software_init();
}