mirror of https://github.com/ARMmbed/mbed-os.git
parent
bbd9618d2f
commit
8d5d92fea8
|
@ -0,0 +1,19 @@
|
||||||
|
#include "mbed.h"
|
||||||
|
#include "test_env.h"
|
||||||
|
|
||||||
|
BusOut bus1(D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15);
|
||||||
|
BusOut bus2(A5, A4, A3, A2, A1, A0);
|
||||||
|
int i;
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
notify_start();
|
||||||
|
|
||||||
|
for (i=0; i<=65535; i++) {
|
||||||
|
bus1 = i;
|
||||||
|
bus2 = i;
|
||||||
|
wait(0.0001);
|
||||||
|
}
|
||||||
|
|
||||||
|
notify_completion(true);
|
||||||
|
}
|
|
@ -11,6 +11,10 @@ void led_blink(PinName led, float delay) {
|
||||||
while(1);
|
while(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void notify_start() {
|
||||||
|
printf("{{start}}" NL);
|
||||||
|
}
|
||||||
|
|
||||||
void notify_completion(bool success) {
|
void notify_completion(bool success) {
|
||||||
if (success) {
|
if (success) {
|
||||||
printf("{{success}}" NL);
|
printf("{{success}}" NL);
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
|
|
||||||
void led_blink(PinName led, float delay);
|
void led_blink(PinName led, float delay);
|
||||||
|
|
||||||
|
void notify_start();
|
||||||
|
|
||||||
void notify_completion(bool success);
|
void notify_completion(bool success);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -252,6 +252,13 @@ TESTS = [
|
||||||
"dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
|
"dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
|
||||||
"automated": False,
|
"automated": False,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "MBED_BUS", "description": "Blinky BUS",
|
||||||
|
"source_dir": join(TEST_DIR, "mbed", "bus"),
|
||||||
|
"dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
|
||||||
|
"automated": False,
|
||||||
|
"duration": 15,
|
||||||
|
},
|
||||||
|
|
||||||
# Size benchmarks
|
# Size benchmarks
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue