48 lines
422 B
C
48 lines
422 B
C
|
#include <start.h>
|
|||
|
|
|||
|
|
|||
|
/*
|
|||
|
* Ӳ<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();
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|