From 463c7d20f05a23139ea2ecc308e72840ab76d5aa Mon Sep 17 00:00:00 2001 From: jeromecoutant Date: Wed, 10 Aug 2016 15:09:00 +0200 Subject: [PATCH 1/2] Create MBED_A28 test in the common list MBED_A28 test is the same as MBED_A27 test. This is a CAN loopback test without any peripheral or wire. It can then be added in the common list. --- tools/tests.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/tests.py b/tools/tests.py index c429b3be058..4223bb0ee8a 100644 --- a/tools/tests.py +++ b/tools/tests.py @@ -327,6 +327,18 @@ "DISCO_F469NI", "DISCO_F429ZI", "NUCLEO_F103RB", "NUCLEO_F746ZG", "DISCO_F746NG", "DISCO_L476VG", "NUCLEO_L476RG", "NUCLEO_L432KC"] }, + { + "id": "MBED_A28", "description": "CAN loopback test", + "source_dir": join(TEST_DIR, "mbed", "can_loopback"), + "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB], + "automated": True, + "duration": 20, + "mcu": ["B96B_F446VE", + "NUCLEO_F091RC", "NUCLEO_F072RB", "NUCLEO_F042K6", "NUCLEO_F334R8", "NUCLEO_F207ZG", + "NUCLEO_F303RE", "NUCLEO_F303K8", "NUCLEO_F302R8", "NUCLEO_F446RE","NUCLEO_F446ZE", + "DISCO_F469NI", "DISCO_F429ZI", "NUCLEO_F103RB", "NUCLEO_F746ZG", + "DISCO_F746NG", "DISCO_L476VG", "NUCLEO_L476RG", "NUCLEO_L432KC"] + }, { "id": "MBED_BLINKY", "description": "Blinky", "source_dir": join(TEST_DIR, "mbed", "blinky"), From 9525a5a469fa8a02fb489287325eb27439c3e590 Mon Sep 17 00:00:00 2001 From: jeromecoutant Date: Thu, 11 Aug 2016 09:41:16 +0200 Subject: [PATCH 2/2] CAN loopback test: correct some NUCLEO pin --- libraries/tests/mbed/can_loopback/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/tests/mbed/can_loopback/main.cpp b/libraries/tests/mbed/can_loopback/main.cpp index 8d0126dfb9a..8e7935fd37e 100644 --- a/libraries/tests/mbed/can_loopback/main.cpp +++ b/libraries/tests/mbed/can_loopback/main.cpp @@ -17,11 +17,13 @@ CAN can1(P5_9, P5_10); defined(TARGET_NUCLEO_F042K6) || defined(TARGET_NUCLEO_F334R8) || \ defined(TARGET_NUCLEO_F303RE) || defined(TARGET_NUCLEO_F303K8) || \ defined(TARGET_NUCLEO_F302R8) || defined(TARGET_NUCLEO_F446RE) || \ - defined(TARGET_DISCO_F429ZI) || defined(TARGET_NUCLEO_F103RB) || \ + defined(TARGET_DISCO_F429ZI) || \ defined(TARGET_NUCLEO_F746ZG) || defined(TARGET_DISCO_L476VG) || \ defined(TARGET_NUCLEO_L476RG) || defined(TARGET_NUCLEO_L432KC) CAN can1(PA_11, PA_12); #elif defined(TARGET_DISCO_F469NI) || defined(TARGET_DISCO_F746NG) || \ + defined(TARGET_NUCLEO_F446ZE) || \ + defined(TARGET_NUCLEO_F103RB) || \ defined(TARGET_NUCLEO_F207ZG) CAN can1(PB_8, PB_9); #endif