|
@@ -733,7 +733,7 @@ int Upgrade_UART(unsigned char uartfd,unsigned int Type,unsigned char TargetAddr
|
|
|
//================================================
|
|
|
// CANBUS update function
|
|
|
//================================================
|
|
|
-unsigned long GetTimeoutValue(struct timeval _sour_time)
|
|
|
+unsigned long getTimeoutValue(struct timeval _sour_time)
|
|
|
{
|
|
|
struct timeval _end_time;
|
|
|
gettimeofday(&_end_time, NULL);
|
|
@@ -761,7 +761,7 @@ int CAN_Download_REQ(int canfd,unsigned int Slave_Addr, unsigned int imageSize)
|
|
|
{
|
|
|
struct timeval timer;
|
|
|
gettimeofday(&timer, NULL);
|
|
|
- while (GetTimeoutValue(timer) < 5000000)
|
|
|
+ while (getTimeoutValue(timer) < 5000000)
|
|
|
{
|
|
|
struct can_frame frame;
|
|
|
int len;
|
|
@@ -798,7 +798,7 @@ int CAN_Start_BLK_Trans(int canfd,unsigned int Slave_Addr,unsigned int Block_No,
|
|
|
{
|
|
|
struct timeval timer;
|
|
|
gettimeofday(&timer, NULL);
|
|
|
- while (GetTimeoutValue(timer) < 1000000)
|
|
|
+ while (getTimeoutValue(timer) < 1000000)
|
|
|
{
|
|
|
struct can_frame frame;
|
|
|
int len;
|
|
@@ -852,7 +852,7 @@ int CAN_Download_FIN(int canfd,unsigned int Slave_Addr)
|
|
|
{
|
|
|
struct timeval timer;
|
|
|
gettimeofday(&timer, NULL);
|
|
|
- while (GetTimeoutValue(timer) < 1000000)
|
|
|
+ while (getTimeoutValue(timer) < 1000000)
|
|
|
{
|
|
|
struct can_frame frame;
|
|
|
int len;
|