mirror of https://github.com/ARMmbed/mbed-os.git
[mbed][MTS_DRAGONFLY_F411RE] fix stdio uart decl, fix D3 pin decl, change blinky test main.cpp back to original
parent
546005a72c
commit
6d9d5961c5
|
@ -46,9 +46,9 @@ typedef enum {
|
||||||
UART_6 = (int)USART6_BASE
|
UART_6 = (int)USART6_BASE
|
||||||
} UARTName;
|
} UARTName;
|
||||||
|
|
||||||
#define STDIO_UART_TX PA_2
|
#define STDIO_UART_TX PB_6
|
||||||
#define STDIO_UART_RX PA_3
|
#define STDIO_UART_RX PB_7
|
||||||
#define STDIO_UART UART_2
|
#define STDIO_UART UART_1
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SPI_1 = (int)SPI1_BASE,
|
SPI_1 = (int)SPI1_BASE,
|
||||||
|
|
|
@ -133,7 +133,7 @@ typedef enum {
|
||||||
//vince orig D2 = PA_10,
|
//vince orig D2 = PA_10,
|
||||||
D2 = PB_12, //vince add
|
D2 = PB_12, //vince add
|
||||||
//vince orig D3 = PB_3,
|
//vince orig D3 = PB_3,
|
||||||
D3 = PB_10, //vince a dd
|
D3 = PB_15, //vince a dd
|
||||||
D4 = PA_8, //vince add
|
D4 = PA_8, //vince add
|
||||||
D5 = PA_7, //vince add
|
D5 = PA_7, //vince add
|
||||||
//vince orig D4 = PB_5,
|
//vince orig D4 = PB_5,
|
||||||
|
@ -154,10 +154,10 @@ typedef enum {
|
||||||
D15 = PB_8,
|
D15 = PB_8,
|
||||||
|
|
||||||
// Generic signals namings
|
// Generic signals namings
|
||||||
LED1 = PB_10, /* vince was PA_5 , next 3 lines below */
|
LED1 = D3, /* vince was PA_5 , next 3 lines below */
|
||||||
LED2 = PB_10,
|
LED2 = D3,
|
||||||
LED3 = PB_10,
|
LED3 = D3,
|
||||||
LED4 = PB_10,
|
LED4 = D3,
|
||||||
USER_BUTTON = PC_13,
|
USER_BUTTON = PC_13,
|
||||||
SERIAL_TX = PB_6, //vince orig PA_2
|
SERIAL_TX = PB_6, //vince orig PA_2
|
||||||
SERIAL_RX = PB_7, //vince orig PA_3
|
SERIAL_RX = PB_7, //vince orig PA_3
|
||||||
|
|
|
@ -4,11 +4,9 @@ DigitalOut myled(LED1);
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
while(1) {
|
while(1) {
|
||||||
// HAL_UART_Transmit(&huart1, " hello Rodney \n", 14, 5000);
|
myled = 1;
|
||||||
printf("\n Hello SAM!!!! \n");
|
wait(0.2);
|
||||||
// myled = 1;
|
myled = 0;
|
||||||
// wait(0.2);
|
wait(0.2);
|
||||||
// myled = 0;
|
|
||||||
// wait(0.2);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue