/***************************************************************/ /* */ /* PROJECT NAME : RX62N_0001 */ /* FILE : RX62N_0001.c */ /* DESCRIPTION : Main Program */ /* */ /* This file was generated by e2 studio. */ /* */ /***************************************************************/ #include "iodefine.h" #ifdef CPPAPP //Initialize global constructors extern 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) { unsigned int lp,lp1; PORT1.DDR.BIT.B5 = 1; // P1(5) is Output while(1) { // TODO: add application code here while(1){ for(lp=0;lp<1000;lp++) for(lp1=0;lp1<1000;lp1++); PORT1.DR.BIT.B5 = 0; // P1(5) is 0(LED ON) for(lp=0;lp<1000;lp++) for(lp1=0;lp1<1000;lp1++); PORT1.DR.BIT.B5 = 1; // P1(5) is 1(LED OFF) } } return 0; }