Use auto-generated hardware/structs/ headers (based off SVD) SVD errors fixed.
This commit is contained in:
@ -73,6 +73,13 @@ typedef volatile uint8_t io_wo_8;
|
||||
typedef volatile uint8_t *const ioptr;
|
||||
typedef ioptr const const_ioptr;
|
||||
|
||||
// A non-functional (empty) helper macro to help IDEs follow links from the autogenerated
|
||||
// hardware struct headers in hardware/structs/xxx.h to the raw register definitions
|
||||
// in hardware/regs/xxx.h. A preprocessor define such as TIMER_TIMEHW_OFFSET (a timer register offset)
|
||||
// is not generally clickable (in an IDE) if placed in a C comment, so _REG_(TIMER_TIMEHW_OFFSET) is
|
||||
// included outside of a comment instead
|
||||
#define _REG_(x)
|
||||
|
||||
// Helper method used by hw_alias macros to optionally check input validity
|
||||
static __force_inline uint32_t hw_alias_check_addr(volatile void *addr) {
|
||||
uint32_t rc = (uintptr_t)addr;
|
||||
|
Reference in New Issue
Block a user