From 120a61eca7109f53fe7220ba5187b98473f25cb3 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Fri, 14 Feb 2025 04:07:40 +0100 Subject: [PATCH] Type aliases --- funconfig.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/funconfig.h b/funconfig.h index 998cf76..561ab22 100644 --- a/funconfig.h +++ b/funconfig.h @@ -1,7 +1,18 @@ +#include <stdint.h> + #ifndef _FUNCONFIG_H #define _FUNCONFIG_H -#define CH32V003 1 +#define CH32V003 1 + +#define NULL ((void *)0) + +typedef int8_t i8; +typedef uint8_t u8; +typedef int16_t i16; +typedef uint32_t u32; +typedef int32_t i32; +typedef int64_t i64; +typedef uint64_t u64; #endif -