2018-05-20 04:53:34 +00:00
|
|
|
#ifndef types_h
|
|
|
|
#define types_h
|
|
|
|
|
|
|
|
#include <stddef.h>
|
2018-05-20 21:01:18 +00:00
|
|
|
#include <uspi/types.h>
|
2018-05-20 04:53:34 +00:00
|
|
|
#include "integer.h"
|
|
|
|
|
|
|
|
typedef unsigned long long u64;
|
|
|
|
|
|
|
|
typedef signed long long s64;
|
|
|
|
|
2018-07-26 01:34:59 +00:00
|
|
|
typedef enum {
|
2020-04-16 00:34:04 +00:00
|
|
|
LCD_UNKNOWN,
|
|
|
|
LCD_1306_128x64,
|
|
|
|
LCD_1306_128x32,
|
|
|
|
LCD_1106_128x64,
|
2018-07-26 01:34:59 +00:00
|
|
|
} LCD_MODEL;
|
2018-05-20 04:53:34 +00:00
|
|
|
|
2018-07-27 13:43:49 +00:00
|
|
|
typedef enum {
|
|
|
|
EXIT_UNKNOWN,
|
|
|
|
EXIT_RESET,
|
|
|
|
EXIT_CD,
|
2018-07-28 14:35:17 +00:00
|
|
|
EXIT_KEYBOARD,
|
|
|
|
EXIT_AUTOLOAD
|
2018-07-27 13:43:49 +00:00
|
|
|
} EXIT_TYPE;
|
|
|
|
|
2019-11-16 06:00:04 +00:00
|
|
|
#ifndef Max
|
|
|
|
#define Max(a,b) (((a) > (b)) ? (a) : (b))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef Min
|
|
|
|
#define Min(a,b) (((a) < (b)) ? (a) : (b))
|
|
|
|
#endif
|
|
|
|
|
2018-05-20 04:53:34 +00:00
|
|
|
#endif
|