pkernel programmer init
[pyfrprog.git] / MAIN.c
diff --git a/MAIN.c b/MAIN.c
index 37b9e1806fce2cf6651316b1f8372233623a330f..b5d776ef6fccb270f6bbf726591be8f9320cfc1d 100644 (file)
--- a/MAIN.c
+++ b/MAIN.c
@@ -12,7 +12,7 @@
 
  
 /*************************@INCLUDE_START************************/
-#include "mb91465kH.h"
+#include "mb91465k.h"
 #include "vectors.h"
 #include "RLT.h"
 #include "Flash.h"
@@ -56,14 +56,14 @@ void main(void)
 
        /*      Enable LEDs     */
        DDR14 = 0xFF;
-       PDR14 = 0x00;
+       PDR14 = 0xff;
 
        /*      Initialize Reload Timer Channel 0       */
        RLT_InitializeTimer(0, RLT_RUMMODE_RELOAD, RLT_CLOCKMODE_DIV32, RLT_TRIGGER_SOFTWARE, RLT_OUTOUTMODE_HIGHLEVEL);
-       RLT_SetReloadValue(0,0x1388);   // CLKP/32, 0.01s Interval => 0x1388 counts
-       RLT_EnableInterrupt(0);
+       RLT_SetReloadValue(0,0xfffe);
        RLT_TriggerTimer(0);
-                
+       RLT_EnableInterrupt(0, 1);
+
        /*      Initialize UART4        */
        InitUart4();
 
@@ -179,6 +179,8 @@ void main(void)
        {
                Puts4("\n********* FLASH Programming Demo done **********\n");
        }
+
+       RLT_EnableInterrupt(0, 0);
                                        
     while(1)                   /* endless loop */
     {