forked from xuos/xiuos
APP_Framework/Framework/:update the transform layer about rt-thread.
This commit is contained in:
parent
65d7a2b1a0
commit
8b82b0cb65
|
@ -195,3 +195,12 @@ void PrivFree(void *pointer)
|
|||
free(pointer);
|
||||
}
|
||||
|
||||
/*********************kernel**********************/
|
||||
void PrivTaskenterCritical()
|
||||
{
|
||||
rt_enter_critical();
|
||||
}
|
||||
void PrivTaskexitCritical()
|
||||
{
|
||||
rt_exit_critical();
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
#include <dfs_posix.h>
|
||||
#include <dfs.h>
|
||||
#include<sys/ioctl.h>
|
||||
#include <sys/select.h>
|
||||
#ifdef RT_USING_POSIX_TERMIOS
|
||||
#include <posix_termios.h>
|
||||
#endif
|
||||
|
@ -60,7 +61,7 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef signed char bool;
|
||||
typedef signed char int8;
|
||||
typedef signed short int16;
|
||||
typedef signed int int32;
|
||||
|
@ -77,7 +78,7 @@ typedef unsigned long long uint64;
|
|||
#endif
|
||||
|
||||
#define OPE_INT 0x0000
|
||||
#define OPE_CFG 0x0001
|
||||
#define OPE_CFG 0x0001
|
||||
|
||||
#define NAME_NUM_MAX 32
|
||||
|
||||
|
@ -96,6 +97,9 @@ typedef unsigned long long uint64;
|
|||
#define SERIAL_RB_BUFSZ 128
|
||||
#endif
|
||||
|
||||
#define TRUE (1)
|
||||
#define FALSE (0)
|
||||
|
||||
struct PinDevIrq
|
||||
{
|
||||
int irq_mode;//< RISING/FALLING/HIGH/LOW
|
||||
|
@ -197,6 +201,13 @@ void *PrivCalloc(size_t count, size_t size);
|
|||
void PrivFree(void *pointer);
|
||||
|
||||
|
||||
|
||||
/*********************kernel**********************/
|
||||
void PrivTaskenterCritical();
|
||||
void PrivTaskexitCritical();
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue