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.

24 lines
411 B

4 years ago
#include "TeensyDebug.h"
//
// Either set debugging to O0 or mark the function
// as DEBUGRUN. If you don't do this, the optimizer will
// inline the function and you won't be able to set a
// breakpoint.
//
4 years ago
#pragma GCC optimize ("O0")
volatile int mark = 0;
4 years ago
void test_function() {
4 years ago
mark++;
4 years ago
}
void setup() {
}
void loop() {
test_function();
Serial.print("mark=");Serial.println(mark);
delay(1000);
}