remove regs union due to compiler issues

GP2X toolchains are padding the unions no matter what :(
This commit is contained in:
notaz 2013-10-12 00:40:40 +03:00
parent 9770f5316f
commit f47d0a2898
5 changed files with 144 additions and 160 deletions

View file

@ -12,22 +12,6 @@
#define int16 signed short
#define int32 signed int
typedef union
{
uint16 w;
struct
{
#if 1
uint8 l;
uint8 h;
#else
uint8 h;
uint8 l;
#endif
} byte;
} reg16_t;
#define READ_BYTE(BASE, ADDR) (BASE)[(ADDR)^1]
#define WRITE_BYTE(BASE, ADDR, VAL) (BASE)[(ADDR)^1] = (VAL)