mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-23 05:08:45 +00:00
[feat][rt-thread] add rt-thread component and msh demo
This commit is contained in:
parent
e45eecfab7
commit
b0e709d9d6
78 changed files with 27297 additions and 0 deletions
32
components/rt-thread/include/rtlibc.h
Normal file
32
components/rt-thread/include/rtlibc.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Copyright (c) 2006-2021, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2017-01-21 Bernard the first version
|
||||
*/
|
||||
|
||||
#ifndef RTLIBC_H__
|
||||
#define RTLIBC_H__
|
||||
|
||||
/* definitions for libc if toolchain has no these definitions */
|
||||
#include "libc/libc_stat.h"
|
||||
#include "libc/libc_fcntl.h"
|
||||
#include "libc/libc_dirent.h"
|
||||
|
||||
#ifndef RT_USING_LIBC
|
||||
#if defined(__ARMCC_VERSION) || defined(__IAR_SYSTEMS_ICC__)
|
||||
typedef signed long off_t;
|
||||
typedef int mode_t;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__MINGW32__) || defined(_WIN32)
|
||||
typedef signed long off_t;
|
||||
typedef int mode_t;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue