File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +14
-8
lines changed
Original file line number Diff line number Diff line change 63
63
64
64
#ifdef __cplusplus
65
65
extern " C" {
66
- #endif
67
-
68
- #if RT_VER_NUM < 0x50000
69
- #define rt_align (x ) ALIGN(x)
70
- #define rt_weak RT_WEAK
71
- #endif /* RT_VER_NUM < 0x50000 */
66
+ #endif /* __cplusplus */
72
67
73
68
#ifndef RTDUINO_TINY_MODE
74
69
#include " pins_arduino.h"
75
70
#endif /* RTDUINO_TINY_MODE */
76
71
77
- #if RT_VER_NUM < 0x40101
72
+ #ifdef RT_VER_NUM
73
+ #if RT_VER_NUM < 0x50000
74
+ #ifndef rt_align
75
+ #define rt_align (x ) ALIGN(x)
76
+ #endif /* rt_align */
77
+ #ifndef rt_weak
78
+ #define rt_weak RT_WEAK
79
+ #endif /* rt_weak */
80
+ #elif RT_VER_NUM < 0x40101
78
81
#error "The minimum version requirement of RT-Thread is 4.1.1"
79
- #endif /* RT_VER_NUM < 0x40101 */
82
+ #endif /* RT_VER_NUM < 0x50000 */
83
+ #else
84
+ #error "Please use RT-Thread Standard Version with software packages management system!"
85
+ #endif /* RT_VER_NUM */
80
86
81
87
/* *
82
88
* @defgroup Bits and Bytes
You can’t perform that action at this time.
0 commit comments