Update tests

pull/1/merge
Emilio Monti 2013-04-11 17:13:23 +01:00
parent c8913dc9d6
commit 49b28faba3
3 changed files with 23 additions and 6 deletions

View File

@ -0,0 +1,11 @@
#include "mbed.h"
DigitalOut led_blue(LED_BLUE);
int main (void) {
while (true) {
wait(1);
led_blue = !led_blue;
printf("Hello World!\n");
}
}

View File

@ -1,19 +1,19 @@
#include "mbed.h"
#ifdef TARGET_KL25Z
DigitalOut out(PTA1);
DigitalOut out(PTD4);
#else
DigitalOut out(p5);
#endif
DigitalOut myled(LED1);
DigitalOut led(LED1);
int main() {
printf("Hello World\n");
while (true) {
wait_us(10000);
wait_us(1000);
out = !out;
myled = !myled;
led = !led;
}
}

View File

@ -184,8 +184,8 @@ TESTS = [
"id": "MBED_4", "description": "MBED: Sleep",
"source_dir": join(TEST_DIR, "mbed", "sleep"),
"dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
"supported": LPC11U24_SUPPORT,
"duration": 30
"duration": 30,
"mcu": ["LPC1768", "LPC11U24"]
},
{
"id": "MBED_5", "description": "MBED: PWM",
@ -579,6 +579,12 @@ TESTS = [
"dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'MMA8451Q')],
"mcu": ["KL25Z"],
},
{
"id": "LPC812_1", "description": "LPC812: Blinky",
"source_dir": join(TEST_DIR, "lpc812", "blinky"),
"dependencies": [MBED_LIBRARIES],
"mcu": ["LPC812"],
},
{
"id": "EXAMPLE_1", "description": "/dev/null",
"source_dir": join(TEST_DIR, "mbed", "dev_null"),