diff --git a/include/stdint.h b/include/stdint.h index 5f8f077..8430c46 100644 --- a/include/stdint.h +++ b/include/stdint.h @@ -25,6 +25,7 @@ typedef __UINT64_TYPE__ uint64_t; /** Unsigned size specifier. */ typedef __SIZE_TYPE__ size_t; +typedef __SIZE_TYPE__ uintptr_t; /** Signed size specifier (negative sizes mean error codes). */ typedef __PTRDIFF_TYPE__ ssize_t; typedef __PTRDIFF_TYPE__ ptrdiff_t; diff --git a/include/toolchain.h b/include/toolchain.h index 76b7730..b4f2dac 100644 --- a/include/toolchain.h +++ b/include/toolchain.h @@ -46,6 +46,9 @@ #define __section(name) __attribute__((section(#name))) #endif /* __section */ +/** Place a variable in program memory rather than into RAM. */ +#define __rodata __section(.rodata#) + /* * Copyright (c) 2020 Felix Kopp *