Make sure function prototype signatures match, and put typedefs into

separate header file
This commit is contained in:
twinaphex 2020-07-12 13:58:17 +02:00 committed by kub
parent 35984c2198
commit 182b8d01f9
3 changed files with 41 additions and 34 deletions

16
pico/pico_types.h Normal file
View file

@ -0,0 +1,16 @@
#ifndef PICO_TYPES
#define PICO_TYPES
#include <stdint.h>
#ifndef UTYPES_DEFINED
typedef uint8_t u8;
typedef int8_t s8;
typedef uint16_t u16;
typedef int16_t s16;
typedef uint32_t u32;
typedef int32_t s32;
#endif
typedef uintptr_t uptr; /* unsigned pointer-sized int */
#endif