Skip to content

Generic CPU status data #10089

Description

@olegart

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?

Metadata

Metadata

Assignees

Labels

Area: driversArea: Device driversDiscussion: RFCThe issue/PR is used as a discussion starting point about the item of the issue/PRState: staleState: The issue / PR has no activity for >185 daysType: new featureThe issue requests / The PR implemements a new feature for RIOT

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions