mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-02-23 18:45:27 -05:00
Create starting point for GNURX RX62N HEW project.
This commit is contained in:
parent
8c5b77635e
commit
1ee62d835d
17 changed files with 2657 additions and 0 deletions
43
Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/main.c
Normal file
43
Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/main.c
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
/***********************************************************************/
|
||||
/* */
|
||||
/* 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue