2024-07-13 02:22:47 +00:00
|
|
|
|
#include <start.h>
|
2024-07-13 03:43:10 +00:00
|
|
|
|
#include "inc/Android.h"
|
2024-07-13 02:22:47 +00:00
|
|
|
|
|
2024-07-13 03:43:10 +00:00
|
|
|
|
#include "inc/Flash.h"
|
|
|
|
|
#include "inc/UART.h"
|
|
|
|
|
#include "inc/J5-0_USART3.h"
|
2024-07-13 02:22:47 +00:00
|
|
|
|
|
2024-07-13 03:43:10 +00:00
|
|
|
|
#include <inc/communication_protocol.h>
|
|
|
|
|
#include "inc/Rs485.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();
|
|
|
|
|
|
|
|
|
|
J5_0_485_Init();
|
|
|
|
|
// USARTx_SendStr(J5_0_USART, "This is a test data.\n");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD>̳߳<EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
void software_init()
|
|
|
|
|
{
|
|
|
|
|
Rs485_thread_Init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
void app_star()
|
|
|
|
|
{
|
|
|
|
|
hareware_init();
|
|
|
|
|
software_init();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|