Skip to content

Commit 702cf49

Browse files
ccli8adbridge
authored andcommitted
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 fa53331 commit 702cf49

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
File renamed without changes.
File renamed without changes.

tools/build_travis.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@
127127
{ "target": "SAMD21G18A", "toolchains": "GCC_ARM", "libs": ["dsp", "fat"] },
128128
{ "target": "SAML21J18A", "toolchains": "GCC_ARM", "libs": ["dsp", "fat"] },
129129
{ "target": "DISCO_L476VG", "toolchains": "GCC_ARM", "libs": ["dsp", "rtos", "usb", "fat"] },
130+
131+
{ "target": "NUMAKER_PFM_NUC472", "toolchains": "GCC_ARM", "libs": ["dsp", "rtos", "usb", "fat"] },
132+
{ "target": "NUMAKER_PFM_M453", "toolchains": "GCC_ARM", "libs": ["dsp", "rtos", "usb", "fat"] },
130133
)
131134

132135
################################################################################
@@ -235,7 +238,23 @@
235238
"rtos" : ["RTOS_1", "RTOS_2", "RTOS_3"],
236239
"usb" : ["USB_1", "USB_2" ,"USB_3"],
237240
}
238-
}
241+
},
242+
{"target": "NUMAKER_PFM_NUC472",
243+
"toolchains": "GCC_ARM",
244+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
245+
"fat" : ["MBED_A12", "MBED_19", "PERF_1", "PERF_2", "PERF_3"],
246+
"rtos" : ["RTOS_1", "RTOS_2", "RTOS_3"],
247+
"usb" : ["USB_1", "USB_2" ,"USB_3"],
248+
}
249+
},
250+
{"target": "NUMAKER_PFM_M453",
251+
"toolchains": "GCC_ARM",
252+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
253+
"fat" : ["MBED_A12", "MBED_19", "PERF_1", "PERF_2", "PERF_3"],
254+
"rtos" : ["RTOS_1", "RTOS_2", "RTOS_3"],
255+
"usb" : ["USB_1", "USB_2" ,"USB_3"],
256+
}
257+
}
239258

240259
]
241260

tools/tests.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,7 @@
731731
"NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "NUCLEO_L432KC", "DISCO_L476VG", "NUCLEO_L476RG",
732732
"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",
733733
"EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
734+
"NUMAKER_PFM_NUC472", "NUMAKER_PFM_M453",
734735
"NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI", "DISCO_F769NI"],
735736
},
736737
{
@@ -746,6 +747,7 @@
746747
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE", "NUCLEO_F446RE", "NUCLEO_F103RB", "DISCO_F746NG",
747748
"NUCLEO_F446ZE", "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
748749
"EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
750+
"NUMAKER_PFM_NUC472", "NUMAKER_PFM_M453",
749751
"NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI", "DISCO_F769NI"],
750752
},
751753
{
@@ -762,6 +764,7 @@
762764
"NUCLEO_F103RB", "DISCO_F746NG",
763765
"NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
764766
"EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
767+
"NUMAKER_PFM_NUC472", "NUMAKER_PFM_M453",
765768
"NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI", "DISCO_F769NI"],
766769
},
767770
{
@@ -778,6 +781,7 @@
778781
"NUCLEO_F103RB", "DISCO_F746NG",
779782
"NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
780783
"EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
784+
"NUMAKER_PFM_NUC472", "NUMAKER_PFM_M453",
781785
"NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI", "DISCO_F769NI"],
782786
},
783787
{
@@ -793,6 +797,7 @@
793797
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE",
794798
"NUCLEO_F446RE", "NUCLEO_F446ZE", "NUCLEO_F103RB", "DISCO_F746NG", "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
795799
"EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
800+
"NUMAKER_PFM_NUC472", "NUMAKER_PFM_M453",
796801
"NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI", "DISCO_F769NI"],
797802
},
798803
{
@@ -808,6 +813,7 @@
808813
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE",
809814
"NUCLEO_F446RE", "NUCLEO_F446ZE", "NUCLEO_F103RB", "DISCO_F746NG", "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
810815
"EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
816+
"NUMAKER_PFM_NUC472", "NUMAKER_PFM_M453",
811817
"NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI", "DISCO_F769NI"],
812818
},
813819
{
@@ -824,6 +830,7 @@
824830
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE",
825831
"NUCLEO_F446RE", "NUCLEO_F446ZE", "NUCLEO_F103RB", "DISCO_F746NG", "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
826832
"EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
833+
"NUMAKER_PFM_NUC472", "NUMAKER_PFM_M453",
827834
"NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI", "DISCO_F769NI"],
828835
},
829836
{
@@ -839,6 +846,7 @@
839846
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE",
840847
"NUCLEO_F446RE", "NUCLEO_F446ZE", "NUCLEO_F103RB", "DISCO_F746NG", "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
841848
"EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
849+
"NUMAKER_PFM_NUC472", "NUMAKER_PFM_M453",
842850
"NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI", "DISCO_F769NI"],
843851
},
844852
{
@@ -849,6 +857,7 @@
849857
"peripherals": ["SD"],
850858
"mcu": ["LPC1768", "LPC11U24", "LPC812", "KL25Z", "HEXIWEAR",
851859
"KL05Z", "K64F", "K66F", "KL46Z", "RZ_A1H",
860+
"NUMAKER_PFM_NUC472", "NUMAKER_PFM_M453",
852861
"DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F429ZI", "NUCLEO_F411RE", "NUCLEO_F401RE", "NUCLEO_F410RB", "DISCO_F469NI", "NUCLEO_F207ZG"],
853862
},
854863

0 commit comments

Comments
 (0)