]> rtime.felk.cvut.cz Git - sysless.git/blobdiff - arch/h8300/generic/bloader/bloader.c
It is 12 years after C99 standardization - switch to stdint.h and its types.
[sysless.git] / arch / h8300 / generic / bloader / bloader.c
index ec637c0a863b89da7ef7c7fb1715b46017e8ba5d..b9b8a4804940656805436de7eba88b114004fade 100644 (file)
@@ -1,5 +1,5 @@
 /* procesor H8S/2638 ver 1.1  */
-#include <types.h>
+#include <stdint.h>
 #include <cpu_def.h>
 #include <mcu_regs.h>
 //#include <periph/chmod_lcd.h>
@@ -136,11 +136,11 @@ void deb_led_blink() {
 
 int main()
 {
-  __u8 *p;
+  uint8_t *p;
 
   _setup_board(); /* Provided in bspbase library of each board */
 
-  p=(__u8*)&deb_wr_hex;
+  p=(uint8_t*)&deb_wr_hex;
   if(p>=IRAM_START) p=" IRAM";
 #ifdef SRAM_START
   else if(p>=SRAM_START) p=" SRAM";
@@ -148,7 +148,7 @@ int main()
 #ifdef XRAM_START
   else if(p>=XRAM_START) p=" XRAM";
 #endif
-  else if(p>(__u8*)0x4000l) p=" FLSHU";
+  else if(p>(uint8_t*)0x4000l) p=" FLSHU";
   else p=" FLSHB";