#ifndef __TYPES_H__ #define __TYPES_H__ #include /** * Get the offset from the beginning of a struct. Useful for building * references to custom chip registers dynamically for copperlists. * * @see Custom */ #define offsetof(s, m) &((struct s *)0)->m typedef unsigned short color_t; typedef unsigned long uint32_t; typedef unsigned short uint16_t; typedef unsigned char uint8_t; typedef signed char int8_t; #endif