OSDN Git Service

FX2/types.h: removed (use stdint.h instead)
authorPawel Jewstafjew <Pawel.Jewstafjew@gmail.com>
Mon, 6 Aug 2018 20:28:38 +0000 (21:28 +0100)
committerPawel Jewstafjew <Pawel.Jewstafjew@gmail.com>
Mon, 6 Aug 2018 20:28:38 +0000 (21:28 +0100)
FX2/FX2.h
FX2/types.h [deleted file]

index f7fb9bd..8c80be6 100644 (file)
--- a/FX2/FX2.h
+++ b/FX2/FX2.h
@@ -1,15 +1,12 @@
-
 // SFR definitions for Cypress EZ-USB family
 
-#ifndef _FX2_SFR
-#define _FX2_SFR
+#ifndef FX2_SFR_H
+#define FX2_SFR_H
 
 #include <mcs51/8051.h>
-#include "types.h"
 
 __sfr __at (0x92) MPAGE; // page selector for XData access
 
-
 __sfr __at (0x92) _XPAGE; // page selector for XData access
 
 // XDATA Register address
@@ -25,6 +22,8 @@ enum {
    SETUPDAT_A = 0xE6B8, // Setup Data
 };
 
+#include <stdint.h>
+
 __xdata __at( WAVEDATA_A ) volatile uint8_t WAVEDATA[0x80];
 __xdata __at( SETUPDAT_A ) volatile uint8_t SETUPDAT[8];
 
@@ -229,4 +228,4 @@ enum {
    WF_LF_NAB = 3u<<6, // nTermA AND TermB
 };
 
-#endif // _FX2_SFR
+#endif // FX2_SFR_H
diff --git a/FX2/types.h b/FX2/types.h
deleted file mode 100644 (file)
index a193282..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// int types for 8051
-
-#ifndef _TYPES_H
-#define _TYPES_H
-
-typedef unsigned char  uint8_t;
-typedef unsigned short uint16_t;
-
-// bool values
-enum { false = 0, true = !false };
-
-#endif // _TYPES_H