Optimize for speed

pull/164/head
Emilio Monti 2014-02-11 17:07:29 +00:00
parent 0b9d9ff701
commit b213992ac0
3 changed files with 17 additions and 2 deletions

View File

@ -0,0 +1,10 @@
#include "mbed.h"
DigitalOut out(p5);
int main() {
while (true) {
out = 1;
out = 0;
}
}

View File

@ -422,7 +422,12 @@ TESTS = [
"source_dir": join(TEST_DIR, "mbed", "pwm_led"),
"dependencies": [MBED_LIBRARIES],
},
{
"id": "MBED_32", "description": "Pin toggling",
"source_dir": join(TEST_DIR, "mbed", "pin_toggling"),
"dependencies": [MBED_LIBRARIES],
},
# CMSIS RTOS tests
{
"id": "CMSIS_RTOS_1", "description": "Basic",

View File

@ -43,7 +43,7 @@ class ARM(mbedToolchain):
main_cc = join(ARM_BIN, "armcc")
common = ["-c",
"--cpu=%s" % cpu, "--gnu",
"-Ospace", "--split_sections", "--apcs=interwork",
"-O3", "-Otime", "--split_sections", "--apcs=interwork",
"--brief_diagnostics", "--restrict"
]