mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-05-29 08:29:03 -04:00
44 lines
1.3 KiB
C
44 lines
1.3 KiB
C
/***********************************************************************/
|
|
/* */
|
|
/* FILE :RTOSDemo.c */
|
|
/* DATE :Wed, Aug 25, 2010 */
|
|
/* DESCRIPTION :Main Program */
|
|
/* CPU TYPE :Other */
|
|
/* */
|
|
/* This file is generated by KPIT GNU Project Generator. */
|
|
/* */
|
|
/***********************************************************************/
|
|
|
|
|
|
|
|
#include "iodefine.h"
|
|
|
|
#ifdef CPPAPP
|
|
//Initialize global constructors
|
|
extern "C" void __main()
|
|
{
|
|
static int initialized;
|
|
if (! initialized)
|
|
{
|
|
typedef void (*pfunc) ();
|
|
extern pfunc __ctors[];
|
|
extern pfunc __ctors_end[];
|
|
pfunc *p;
|
|
|
|
initialized = 1;
|
|
for (p = __ctors_end; p > __ctors; )
|
|
(*--p) ();
|
|
|
|
}
|
|
}
|
|
#endif
|
|
|
|
int main(void)
|
|
{
|
|
// TODO: add application code here
|
|
|
|
while (1) {
|
|
}
|
|
return 0;
|
|
}
|