Skip to content

analog_loop tests update for STM32 #3024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 27, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions features/unsupported/tests/mbed/analog/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ AnalogOut out(PTE30);
AnalogIn in(A0);
AnalogOut out(D12); //D12 is P0_12, the DAC output pin

// no pin to access DAC on these targets:
//TARGET_DISCO_F746NG
// No DAC on these targets:
//TARGET_NUCLEO_F030R8
//TARGET_NUCLEO_F070RB
Expand All @@ -40,32 +42,42 @@ AnalogOut out(D12); //D12 is P0_12, the DAC output pin
defined(TARGET_NUCLEO_F303RE) || \
defined(TARGET_NUCLEO_F334R8) || \
defined(TARGET_NUCLEO_F446RE) || \
defined(TARGET_NUCLEO_F446ZE) || \
defined(TARGET_NUCLEO_L053R8) || \
defined(TARGET_NUCLEO_L073RZ) || \
defined(TARGET_NUCLEO_L476RG) || \
defined(TARGET_NUCLEO_L152RE)
AnalogIn in(A0);
AnalogOut out(A2);

#elif defined(TARGET_NUCLEO_F746ZG)
#elif defined(TARGET_NUCLEO_F303K8)
AnalogIn in(A0);
AnalogOut out(PA_4);
AnalogOut out(A3);

#elif defined(TARGET_NUCLEO_F207ZG)
#elif defined(TARGET_NUCLEO_F207ZG) || \
defined(TARGET_NUCLEO_F746ZG) || \
defined(TARGET_NUCLEO_F303ZE) || \
defined(TARGET_NUCLEO_F410RB) || \
defined(TARGET_NUCLEO_F446ZE) || \
defined(TARGET_NUCLEO_F429ZI)
AnalogIn in(A0);
AnalogOut out(D13);

#elif defined(TARGET_ARCH_MAX)
AnalogIn in(PA_0);
AnalogOut out(PA_4);

#elif defined(TARGET_DISCO_L053C8) || \
defined(TARGET_DISCO_F334C8)
AnalogIn in(PA_1);
AnalogOut out(PA_4);

#elif defined(TARGET_DISCO_F407VG) || \
defined(TARGET_DISCO_F469NI)
AnalogIn in(PC_5);
AnalogOut out(PA_4);

#elif defined(TARGET_NUCLEO_F303ZE)
AnalogIn in(PC_5);
#elif defined(TARGET_DISCO_L476VG)
AnalogIn in(PA_0);
AnalogOut out(PA_5);

#elif defined(TARGET_DISCO_F429ZI)
Expand Down
7 changes: 5 additions & 2 deletions tools/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@

* analog_loop (AnalogIn, AnalogOut):
* Arduino headers: (A0 <-> A5)
* NUCLEO64: (A0 <-> A2)
* NUCLEO144: (A0 <-> D13)
* LPC1549: (A0 <-> D12)
* LPC1*: (p17 <-> p18 )
* KL25Z: (PTE30 <-> PTC2)
Expand Down Expand Up @@ -190,8 +192,9 @@
"mcu": ["LPC1768", "LPC2368", "LPC2460", "KL25Z", "K64F", "K66F", "K22F", "LPC4088", "LPC1549",
"NUCLEO_F072RB", "NUCLEO_F091RC", "NUCLEO_F302R8", "NUCLEO_F303K8", "NUCLEO_F303RE", "NUCLEO_F207ZG",
"NUCLEO_F334R8", "NUCLEO_F303ZE", "NUCLEO_L053R8", "NUCLEO_L073RZ", "NUCLEO_L152RE",
"NUCLEO_F410RB", "NUCLEO_F411RE", "NUCLEO_F446RE", "NUCLEO_F446ZE",
"DISCO_F407VG", "DISCO_F746NG", "NUCLEO_F746ZG",
"NUCLEO_F410RB", "NUCLEO_F446RE", "NUCLEO_F446ZE", "NUCLEO_F429ZI",
"DISCO_F407VG", "NUCLEO_F746ZG", "NUCLEO_L476RG",
"DISCO_L053C8", "DISCO_F334C8", "DISCO_L476VG", "DISCO_F469NI", "DISCO_F429ZI",
"ARCH_MAX", "MAX32600MBED", "MOTE_L152RC", "B96B_F446VE"]
},
{
Expand Down