Remove duplicate sydefs.h confusion.
This commit is contained in:
parent
7ec64c04ad
commit
f38fb4c148
|
@ -39,20 +39,12 @@
|
||||||
#ifndef _SYSDEFS_H_
|
#ifndef _SYSDEFS_H_
|
||||||
#define _SYSDEFS_H_
|
#define _SYSDEFS_H_
|
||||||
|
|
||||||
|
#include "../sysdefs.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
// Stay compatible with ugly "windows" style
|
|
||||||
#define BOOL bool
|
|
||||||
#define TRUE true
|
|
||||||
#define FALSE false
|
|
||||||
|
|
||||||
typedef volatile uint8_t REG8;
|
|
||||||
typedef volatile uint16_t REG16;
|
|
||||||
typedef volatile uint32_t REG32;
|
|
||||||
typedef unsigned char byte_t;
|
|
||||||
|
|
||||||
#define pREG8 (REG8 *)
|
#define pREG8 (REG8 *)
|
||||||
#define pREG16 (REG16 *)
|
#define pREG16 (REG16 *)
|
||||||
#define pREG32 (REG32 *)
|
#define pREG32 (REG32 *)
|
||||||
|
|
|
@ -36,10 +36,10 @@
|
||||||
*/
|
*/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
|
|
||||||
#ifndef _SYSDEFS_H_
|
#ifndef _GLOBAL_SYSDEFS_H_
|
||||||
#define _SYSDEFS_H_
|
#define _GLOBAL_SYSDEFS_H_
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
@ -53,18 +53,9 @@ typedef volatile uint16_t REG16;
|
||||||
typedef volatile uint32_t REG32;
|
typedef volatile uint32_t REG32;
|
||||||
typedef unsigned char byte_t;
|
typedef unsigned char byte_t;
|
||||||
|
|
||||||
#define pREG8 (REG8 *)
|
|
||||||
#define pREG16 (REG16 *)
|
|
||||||
#define pREG32 (REG32 *)
|
|
||||||
|
|
||||||
#ifndef NULL
|
|
||||||
#define NULL ((void *) 0)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Save some space
|
// Save some space
|
||||||
#ifndef SIMULATOR
|
#ifndef SIMULATOR
|
||||||
#define memcpy memmove
|
#define memcpy memmove
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue