Tool/software: TI C/C++ Compiler
Hi all,
What's the clean way to access hardware registers from the CLA? When using the HWREG Macro, the compiler throws an "invalid type conversion" warning.
Is it safe to use this?
#define HWREG_CLA(x) (*((volatile uint32_t *)((uint16_t)(x))))
This fixes the compiler error since the CLA has 16 bit address space (and pointers).
Best Regards
Falk