blob: 27b230e675b5faf9bef9cceb6e069d073aedd389 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/*
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2017-5-30 Bernard the first version
*/
#include <rthw.h>
#include <rtthread.h>
int main(int argc, char** argv)
{
const char *oem;
#ifdef RT_USING_SMART
oem = "Smart";
#else
oem = "Thread";
#endif
rt_ubase_t level = rt_hw_interrupt_disable();
rt_kprintf("Hi, this is RT-%s!!\n", oem);
rt_hw_interrupt_enable(level);
return 0;
}
|