-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Open
Labels
Architecture: SAMApplies only to the SAM microcontrollers (Due)Applies only to the SAM microcontrollers (Due)Architecture: SAMDApplies only to the SAMD microcontrollers (Zero, etc.)Applies only to the SAMD microcontrollers (Zero, etc.)Component: CoreRelated to the code for the standard Arduino APIRelated to the code for the standard Arduino APIfeature requestA request to make an enhancement (not a bug fix)A request to make an enhancement (not a bug fix)
Description
AVR arduinos define RAMSTART and RAMEND, Due defines IRAM0_SIZE and IRAM0_ADDR, and Zero defines HMCRAMC0_SIZE and HMCRAM0_ADDR. (All via the Atmel include files...)
For the sake of sketches that want to run on all platforms, and want to modify their memory consumption based on how much memory is available (ie in buffers; similar to the way that HarwareSerial sizes the ISR buffers), it would be nice to have common symbols that would allow a programmer to determine memory size. (probably RAMSTART and RAMEND, since they're already in use. I had to dig to find the SAM symbols.)
Metadata
Metadata
Assignees
Labels
Architecture: SAMApplies only to the SAM microcontrollers (Due)Applies only to the SAM microcontrollers (Due)Architecture: SAMDApplies only to the SAMD microcontrollers (Zero, etc.)Applies only to the SAMD microcontrollers (Zero, etc.)Component: CoreRelated to the code for the standard Arduino APIRelated to the code for the standard Arduino APIfeature requestA request to make an enhancement (not a bug fix)A request to make an enhancement (not a bug fix)