You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
252 B

  1. #include "Debug.h"
  2. namespace debug {
  3. void waitForSerial() {
  4. while (!Serial);
  5. Serial.begin(115200);
  6. }
  7. int freeRam() {
  8. extern int __heap_start, *__brkval;
  9. int v;
  10. return (int)&v - (__brkval == 0 ? (int)&__heap_start : (int)__brkval);
  11. }
  12. }