I'm thinking about some kind of global struct variable to hold various CPU-specific data:
- flash size (on Cortex-M can be calculated in runtime)
- RAM size (on Cortex-M can be calculated in runtime)
- EEPROM size (on Cortex-M can be calculated in runtime)
- CPU ID
- current CPU temperature
- current VDD voltage
- current VBAT voltage
- maybe something else?
As for now, all this data live in form of various functions, defines or isn't available at all (e.g. you can't really get precise STM32 VDD voltage using high-level API only)
Should be nice to have it all in one place, and more or less independent of specific CPU.
What do you think?
I'm thinking about some kind of global struct variable to hold various CPU-specific data:
As for now, all this data live in form of various functions, defines or isn't available at all (e.g. you can't really get precise STM32 VDD voltage using high-level API only)
Should be nice to have it all in one place, and more or less independent of specific CPU.
What do you think?