mirror of https://github.com/ARMmbed/mbed-os.git
[NUCLEO_F070RB] Update tests with this target
parent
3ec2247713
commit
e0e18f54d6
|
@ -21,8 +21,9 @@ AnalogIn in(A0);
|
|||
AnalogOut out(D12); //D12 is P0_12, the DAC output pin
|
||||
|
||||
// No DAC on these targets:
|
||||
//TARGET_NUCLEO_F103RB
|
||||
//TARGET_NUCLEO_F030R8
|
||||
//TARGET_NUCLEO_F070RB
|
||||
//TARGET_NUCLEO_F103RB
|
||||
//TARGET_NUCLEO_F401RE
|
||||
//TARGET_NUCLEO_F411RE
|
||||
#elif defined(TARGET_NUCLEO_F072RB) || \
|
||||
|
|
|
@ -11,6 +11,7 @@ DigitalOut out(D7);
|
|||
DigitalIn in(D2);
|
||||
|
||||
#elif defined(TARGET_NUCLEO_F030R8) || \
|
||||
defined(TARGET_NUCLEO_F070RB) || \
|
||||
defined(TARGET_NUCLEO_F072RB) || \
|
||||
defined(TARGET_NUCLEO_F091RC) || \
|
||||
defined(TARGET_NUCLEO_F103RB) || \
|
||||
|
|
|
@ -11,6 +11,7 @@ DigitalInOut d1(D2);
|
|||
DigitalInOut d2(D7);
|
||||
|
||||
#elif defined(TARGET_NUCLEO_F030R8) || \
|
||||
defined(TARGET_NUCLEO_F070RB) || \
|
||||
defined(TARGET_NUCLEO_F072RB) || \
|
||||
defined(TARGET_NUCLEO_F091RC) || \
|
||||
defined(TARGET_NUCLEO_F103RB) || \
|
||||
|
|
|
@ -67,6 +67,7 @@ int main()
|
|||
//SDFileSystem sd(p20, p22, p25, p24, "sd");
|
||||
SDFileSystem sd(p12, p13, p15, p14, "sd");
|
||||
#elif defined(TARGET_NUCLEO_F030R8) || \
|
||||
defined(TARGET_NUCLEO_F070RB) || \
|
||||
defined(TARGET_NUCLEO_F072RB) || \
|
||||
defined(TARGET_NUCLEO_F091RC) || \
|
||||
defined(TARGET_NUCLEO_F103RB) || \
|
||||
|
|
|
@ -14,6 +14,7 @@ TMP102 temperature(p9, p10, 0x90);
|
|||
TMP102 temperature(p28, p27, 0x90);
|
||||
|
||||
#elif defined(TARGET_NUCLEO_F030R8) || \
|
||||
defined(TARGET_NUCLEO_F070RB) || \
|
||||
defined(TARGET_NUCLEO_F072RB) || \
|
||||
defined(TARGET_NUCLEO_F091RC) || \
|
||||
defined(TARGET_NUCLEO_F103RB) || \
|
||||
|
|
|
@ -46,6 +46,7 @@ I2C i2c(P0_23, P0_22);
|
|||
I2C i2c(SDA, SCL);
|
||||
|
||||
#elif defined(TARGET_NUCLEO_F030R8) || \
|
||||
defined(TARGET_NUCLEO_F070RB) || \
|
||||
defined(TARGET_NUCLEO_F072RB) || \
|
||||
defined(TARGET_NUCLEO_F091RC) || \
|
||||
defined(TARGET_NUCLEO_F103RB) || \
|
||||
|
|
|
@ -56,6 +56,7 @@ I2C i2c(P0_23, P0_22);
|
|||
I2C i2c(SDA, SCL);
|
||||
|
||||
#elif defined(TARGET_NUCLEO_F030R8) || \
|
||||
defined(TARGET_NUCLEO_F070RB) || \
|
||||
defined(TARGET_NUCLEO_F072RB) || \
|
||||
defined(TARGET_NUCLEO_F091RC) || \
|
||||
defined(TARGET_NUCLEO_F103RB) || \
|
||||
|
|
|
@ -36,6 +36,7 @@ void in_handler() {
|
|||
#define PIN_OUT (p12)
|
||||
|
||||
#elif defined(TARGET_NUCLEO_F030R8) || \
|
||||
defined(TARGET_NUCLEO_F070RB) || \
|
||||
defined(TARGET_NUCLEO_F072RB) || \
|
||||
defined(TARGET_NUCLEO_F091RC) || \
|
||||
defined(TARGET_NUCLEO_F103RB) || \
|
||||
|
|
|
@ -64,6 +64,7 @@
|
|||
#define PORT_2 Port0
|
||||
|
||||
#elif defined(TARGET_NUCLEO_F030R8) || \
|
||||
defined(TARGET_NUCLEO_F070RB) || \
|
||||
defined(TARGET_NUCLEO_F072RB) || \
|
||||
defined(TARGET_NUCLEO_F091RC) || \
|
||||
defined(TARGET_NUCLEO_F103RB) || \
|
||||
|
|
|
@ -64,6 +64,7 @@
|
|||
#define PORT_2 Port0
|
||||
|
||||
#elif defined(TARGET_NUCLEO_F030R8) || \
|
||||
defined(TARGET_NUCLEO_F070RB) || \
|
||||
defined(TARGET_NUCLEO_F072RB) || \
|
||||
defined(TARGET_NUCLEO_F091RC) || \
|
||||
defined(TARGET_NUCLEO_F103RB) || \
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#define TEST_LED D9
|
||||
|
||||
#elif defined(TARGET_NUCLEO_F030R8) || \
|
||||
defined(TARGET_NUCLEO_F070RB) || \
|
||||
defined(TARGET_NUCLEO_F072RB) || \
|
||||
defined(TARGET_NUCLEO_F091RC) || \
|
||||
defined(TARGET_NUCLEO_F103RB) || \
|
||||
|
|
|
@ -21,6 +21,7 @@ SDFileSystem sd(PTD2, PTD3, PTD1, PTC2, "sd");
|
|||
SDFileSystem sd(p12, p13, p15, p14, "sd");
|
||||
|
||||
#elif defined(TARGET_NUCLEO_F030R8) || \
|
||||
defined(TARGET_NUCLEO_F070RB) || \
|
||||
defined(TARGET_NUCLEO_F072RB) || \
|
||||
defined(TARGET_NUCLEO_F091RC) || \
|
||||
defined(TARGET_NUCLEO_F103RB) || \
|
||||
|
|
|
@ -23,6 +23,7 @@ SDFileSystem sd(PTD2, PTD3, PTD1, PTC2, "sd");
|
|||
SDFileSystem sd(p12, p13, p15, p14, "sd");
|
||||
|
||||
#elif defined(TARGET_NUCLEO_F030R8) || \
|
||||
defined(TARGET_NUCLEO_F070RB) || \
|
||||
defined(TARGET_NUCLEO_F072RB) || \
|
||||
defined(TARGET_NUCLEO_F091RC) || \
|
||||
defined(TARGET_NUCLEO_F103RB) || \
|
||||
|
|
|
@ -23,6 +23,7 @@ SDFileSystem sd(PTD2, PTD3, PTD1, PTC2, "sd");
|
|||
SDFileSystem sd(p12, p13, p15, p14, "sd");
|
||||
|
||||
#elif defined(TARGET_NUCLEO_F030R8) || \
|
||||
defined(TARGET_NUCLEO_F070RB) || \
|
||||
defined(TARGET_NUCLEO_F072RB) || \
|
||||
defined(TARGET_NUCLEO_F091RC) || \
|
||||
defined(TARGET_NUCLEO_F103RB) || \
|
||||
|
|
|
@ -23,6 +23,7 @@ SDFileSystem sd(PTD2, PTD3, PTD1, PTC2, "sd");
|
|||
SDFileSystem sd(p12, p13, p15, p14, "sd");
|
||||
|
||||
#elif defined(TARGET_NUCLEO_F030R8) || \
|
||||
defined(TARGET_NUCLEO_F070RB) || \
|
||||
defined(TARGET_NUCLEO_F072RB) || \
|
||||
defined(TARGET_NUCLEO_F091RC) || \
|
||||
defined(TARGET_NUCLEO_F103RB) || \
|
||||
|
|
Loading…
Reference in New Issue