/* This file is generated by e2studio. */
/* */
/***********************************************************************/
- \r
- \r
- \r
\r
-#ifdef __cplusplus\r
-extern "C" {\r
-#endif\r
-extern void HardwareSetup(void);\r
-#ifdef __cplusplus\r
-}\r
-#endif\r
+/* Scheduler include files. */
+#include "FreeRTOS.h"
+
+/* Hardware includes. */
+#include "port_iodefine.h"
+\r
void HardwareSetup(void)\r
{\r
-\r
-} \r
+unsigned char ucResetFlag = RESF;
+
+ portDISABLE_INTERRUPTS();
+
+ /* Set fMX */
+ CMC = 0x00;
+ MSTOP = 1U;
+
+ /* Set fMAIN */
+ MCM0 = 0U;
+
+ /* Set fSUB */
+ XTSTOP = 1U;
+ OSMC = 0x10;
+
+ /* Set fCLK */
+ CSS = 0U;
+
+ /* Set fIH */
+ HIOSTOP = 0U;
+
+ /* LED port initialization. */
+ LED_INIT();
+}\r