blob: 83dc4e6be3cd39323aaa29bd78aa517e4b5c2120 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <rtthread.h>
#if defined(__GNUC__)
int rtthread_startup(void);
static int start(void)
{
rtthread_startup();
return 0;
}
__attribute__((section(".init_array"))) typeof(start) *__init = start;
#endif
|