support webnet and add netdev for XiUOS(amend information about version and change name of function for POSIX standard)

This commit is contained in:
zhaoyun1215 2022-09-15 19:01:39 -07:00
parent 2c233ed1b7
commit 3e4254b3b2
9 changed files with 9 additions and 9 deletions

View File

@ -240,7 +240,7 @@ void PrivTaskexitCritical()
/*********************tick**********************/ /*********************tick**********************/
#ifdef APP_USING_WEBNET #ifdef APP_USING_WEBNET
int GetTick(){ int PriGetTick(){
return rt_tick_get()/RT_TICK_PER_SECOND; return rt_tick_get()/RT_TICK_PER_SECOND;
} }
#endif #endif

View File

@ -224,7 +224,7 @@ void PrivTaskexitCritical();
/*********************tick**********************/ /*********************tick**********************/
#ifdef APP_USING_WEBNET #ifdef APP_USING_WEBNET
int GetTick(); int PriGetTick();
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -220,6 +220,6 @@ int PrivMqueueReceive(mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned *msg_
} }
/*********************tick**********************/ /*********************tick**********************/
int GetTick(){ int PriGetTick(){
return CurrentTicksGain() / TICK_PER_SECOND; return CurrentTicksGain() / TICK_PER_SECOND;
} }

View File

@ -268,7 +268,7 @@ int PrivMqueueReceive(mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned *msg
/*********************tick**********************/ /*********************tick**********************/
int GetTick(); int PriGetTick();
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -11,7 +11,7 @@
/** /**
* @file inet.h * @file inet.h
* @brief using in webnet * @brief using in webnet
* @version 1.0 * @version 2.0
* @author AIIT XUOS Lab * @author AIIT XUOS Lab
* @date 2022-09-15 * @date 2022-09-15
*/ */

View File

@ -11,7 +11,7 @@
/** /**
* @file netdev.h * @file netdev.h
* @brief Structure and function declarations of device and ipaddr * @brief Structure and function declarations of device and ipaddr
* @version 1.0 * @version 2.0
* @author AIIT XUOS Lab * @author AIIT XUOS Lab
* @date 2022-09-15 * @date 2022-09-15
*/ */

View File

@ -11,7 +11,7 @@
/** /**
* @file netdev_ipaddr.h * @file netdev_ipaddr.h
* @brief Structure and function declarations of device and ipaddr * @brief Structure and function declarations of device and ipaddr
* @version 1.0 * @version 2.0
* @author AIIT XUOS Lab * @author AIIT XUOS Lab
* @date 2022-09-15 * @date 2022-09-15
*/ */

View File

@ -11,7 +11,7 @@
/** /**
* @file netdev.c * @file netdev.c
* @brief functions of getting device address * @brief functions of getting device address
* @version 1.0 * @version 2.0
* @author AIIT XUOS Lab * @author AIIT XUOS Lab
* @date 2022-09-15 * @date 2022-09-15
*/ */

View File

@ -11,7 +11,7 @@
/** /**
* @file netdev_ipaddr.c * @file netdev_ipaddr.c
* @brief functions of getting device address * @brief functions of getting device address
* @version 1.0 * @version 2.0
* @author AIIT XUOS Lab * @author AIIT XUOS Lab
* @date 2022-09-15 * @date 2022-09-15
*/ */