Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 885342c

Browse filesBrowse files
committed
[Arduino.h] add some #error assert comments
1 parent 6426fc9 commit 885342c
Copy full SHA for 885342c

File tree

Expand file treeCollapse file tree

1 file changed

+14
-8
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+14
-8
lines changed

‎core/Arduino.h

Copy file name to clipboardExpand all lines: core/Arduino.h
+14-8Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,26 @@
6363

6464
#ifdef __cplusplus
6565
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 */
7267

7368
#ifndef RTDUINO_TINY_MODE
7469
#include "pins_arduino.h"
7570
#endif /* RTDUINO_TINY_MODE */
7671

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
7881
#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 */
8086

8187
/**
8288
* @defgroup Bits and Bytes

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.