-
// 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
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];
WF_LF_NAB = 3u<<6, // nTermA AND TermB
};
-#endif // _FX2_SFR
+#endif // FX2_SFR_H
+++ /dev/null
-// 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