Skip to content

Commit 8c0948d

Browse files
committed
[NUC472/M453] Integrate with Travis CI
1. Add targets into build_travis.py and tests.py. 2. Add target SPI pins into SPI SD test samples. 3. Rename target TOOLCHAIN_GCC_ARM/retarget.c to avoid name collision of compiled retarget.o with platform/retargets.cpp.
1 parent 7f4881f commit 8c0948d

File tree

8 files changed

+53
-1
lines changed

8 files changed

+53
-1
lines changed

features/unsupported/tests/mbed/sd/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ SDFileSystem sd(P8_5, P8_6, P8_3, P8_4, "sd");
5555
#elif defined(TARGET_LPC11U37H_401)
5656
SDFileSystem sd(SDMOSI, SDMISO, SDSCLK, SDSSEL, "sd");
5757

58+
#elif defined(TARGET_NUMAKER_PFM_NUC472)
59+
SDFileSystem sd(PF_0, PD_15, PD_14, PD_13, "sd");
60+
61+
#elif defined(TARGET_NUMAKER_PFM_M453)
62+
SDFileSystem sd(PD_13, PD_14, PD_15, PD_12, "sd");
63+
5864
#else
5965
SDFileSystem sd(p11, p12, p13, p14, "sd");
6066
#endif

features/unsupported/tests/mbed/sd_perf_fatfs/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ SDFileSystem sd(D11, D12, D13, D10, "sd");
5353
#elif defined(TARGET_LPC11U37H_401)
5454
SDFileSystem sd(SDMOSI, SDMISO, SDSCLK, SDSSEL, "sd");
5555

56+
#elif defined(TARGET_NUMAKER_PFM_NUC472)
57+
SDFileSystem sd(PF_0, PD_15, PD_14, PD_13, "sd");
58+
59+
#elif defined(TARGET_NUMAKER_PFM_M453)
60+
SDFileSystem sd(PD_13, PD_14, PD_15, PD_12, "sd");
61+
5662
#else
5763
SDFileSystem sd(p11, p12, p13, p14, "sd");
5864
#endif

features/unsupported/tests/mbed/sd_perf_fhandle/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ SDFileSystem sd(D11, D12, D13, D10, "sd");
5353
#elif defined(TARGET_LPC11U37H_401)
5454
SDFileSystem sd(SDMOSI, SDMISO, SDSCLK, SDSSEL, "sd");
5555

56+
#elif defined(TARGET_NUMAKER_PFM_NUC472)
57+
SDFileSystem sd(PF_0, PD_15, PD_14, PD_13, "sd");
58+
59+
#elif defined(TARGET_NUMAKER_PFM_M453)
60+
SDFileSystem sd(PD_13, PD_14, PD_15, PD_12, "sd");
61+
5662
#else
5763
SDFileSystem sd(p11, p12, p13, p14, "sd");
5864
#endif

features/unsupported/tests/mbed/sd_perf_stdio/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ SDFileSystem sd(D11, D12, D13, D10, "sd");
5353
#elif defined(TARGET_LPC11U37H_401)
5454
SDFileSystem sd(SDMOSI, SDMISO, SDSCLK, SDSSEL, "sd");
5555

56+
#elif defined(TARGET_NUMAKER_PFM_NUC472)
57+
SDFileSystem sd(PF_0, PD_15, PD_14, PD_13, "sd");
58+
59+
#elif defined(TARGET_NUMAKER_PFM_M453)
60+
SDFileSystem sd(PD_13, PD_14, PD_15, PD_12, "sd");
61+
5662
#else
5763
SDFileSystem sd(p11, p12, p13, p14, "sd");
5864
#endif

tools/build_travis.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@
125125
{ "target": "SAMD21G18A", "toolchains": "GCC_ARM", "libs": ["dsp", "fat"] },
126126
{ "target": "SAML21J18A", "toolchains": "GCC_ARM", "libs": ["dsp", "fat"] },
127127
{ "target": "DISCO_L476VG", "toolchains": "GCC_ARM", "libs": ["dsp", "rtos", "usb", "fat"] },
128+
129+
{ "target": "NUMAKER_PFM_NUC472", "toolchains": "GCC_ARM", "libs": ["dsp", "rtos", "usb", "fat"] },
130+
{ "target": "NUMAKER_PFM_M453", "toolchains": "GCC_ARM", "libs": ["dsp", "rtos", "usb", "fat"] },
128131
)
129132

130133
################################################################################
@@ -233,7 +236,23 @@
233236
"rtos" : ["RTOS_1", "RTOS_2", "RTOS_3"],
234237
"usb" : ["USB_1", "USB_2" ,"USB_3"],
235238
}
236-
}
239+
},
240+
{"target": "NUMAKER_PFM_NUC472",
241+
"toolchains": "GCC_ARM",
242+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
243+
"fat" : ["MBED_A12", "MBED_19", "PERF_1", "PERF_2", "PERF_3"],
244+
"rtos" : ["RTOS_1", "RTOS_2", "RTOS_3"],
245+
"usb" : ["USB_1", "USB_2" ,"USB_3"],
246+
}
247+
},
248+
{"target": "NUMAKER_PFM_M453",
249+
"toolchains": "GCC_ARM",
250+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
251+
"fat" : ["MBED_A12", "MBED_19", "PERF_1", "PERF_2", "PERF_3"],
252+
"rtos" : ["RTOS_1", "RTOS_2", "RTOS_3"],
253+
"usb" : ["USB_1", "USB_2" ,"USB_3"],
254+
}
255+
}
237256

238257
]
239258

tools/tests.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,7 @@
730730
"NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "NUCLEO_L432KC", "DISCO_L476VG", "NUCLEO_L476RG",
731731
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303ZE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE", "NUCLEO_F446RE", "NUCLEO_F446ZE", "NUCLEO_F103RB", "DISCO_F746NG", "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
732732
"EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
733+
"NUMAKER_PFM_NUC472", "NUMAKER_PFM_M453",
733734
"NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI", "DISCO_F769NI"],
734735
},
735736
{
@@ -745,6 +746,7 @@
745746
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE", "NUCLEO_F446RE", "NUCLEO_F103RB", "DISCO_F746NG",
746747
"NUCLEO_F446ZE", "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
747748
"EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
749+
"NUMAKER_PFM_NUC472", "NUMAKER_PFM_M453",
748750
"NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI", "DISCO_F769NI"],
749751
},
750752
{
@@ -761,6 +763,7 @@
761763
"NUCLEO_F103RB", "DISCO_F746NG",
762764
"NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
763765
"EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
766+
"NUMAKER_PFM_NUC472", "NUMAKER_PFM_M453",
764767
"NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI", "DISCO_F769NI"],
765768
},
766769
{
@@ -777,6 +780,7 @@
777780
"NUCLEO_F103RB", "DISCO_F746NG",
778781
"NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
779782
"EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
783+
"NUMAKER_PFM_NUC472", "NUMAKER_PFM_M453",
780784
"NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI", "DISCO_F769NI"],
781785
},
782786
{
@@ -792,6 +796,7 @@
792796
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE",
793797
"NUCLEO_F446RE", "NUCLEO_F446ZE", "NUCLEO_F103RB", "DISCO_F746NG", "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
794798
"EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
799+
"NUMAKER_PFM_NUC472", "NUMAKER_PFM_M453",
795800
"NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI", "DISCO_F769NI"],
796801
},
797802
{
@@ -807,6 +812,7 @@
807812
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE",
808813
"NUCLEO_F446RE", "NUCLEO_F446ZE", "NUCLEO_F103RB", "DISCO_F746NG", "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
809814
"EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
815+
"NUMAKER_PFM_NUC472", "NUMAKER_PFM_M453",
810816
"NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI", "DISCO_F769NI"],
811817
},
812818
{
@@ -823,6 +829,7 @@
823829
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE",
824830
"NUCLEO_F446RE", "NUCLEO_F446ZE", "NUCLEO_F103RB", "DISCO_F746NG", "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
825831
"EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
832+
"NUMAKER_PFM_NUC472", "NUMAKER_PFM_M453",
826833
"NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI", "DISCO_F769NI"],
827834
},
828835
{
@@ -838,6 +845,7 @@
838845
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE",
839846
"NUCLEO_F446RE", "NUCLEO_F446ZE", "NUCLEO_F103RB", "DISCO_F746NG", "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
840847
"EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
848+
"NUMAKER_PFM_NUC472", "NUMAKER_PFM_M453",
841849
"NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI", "DISCO_F769NI"],
842850
},
843851
{
@@ -848,6 +856,7 @@
848856
"peripherals": ["SD"],
849857
"mcu": ["LPC1768", "LPC11U24", "LPC812", "KL25Z", "HEXIWEAR",
850858
"KL05Z", "K64F", "K66F", "KL46Z", "RZ_A1H",
859+
"NUMAKER_PFM_NUC472", "NUMAKER_PFM_M453",
851860
"DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F429ZI", "NUCLEO_F411RE", "NUCLEO_F401RE", "NUCLEO_F410RB", "DISCO_F469NI", "NUCLEO_F207ZG"],
852861
},
853862

0 commit comments

Comments
 (0)