Bluepill_Plantilla Es la plantilla base (mejorada) para soporte y compatibilidad en Mbed para la tarjeta "BluePill" basada en el procesador ARM M3 STM32F103C8T6
Dependencies: mbed
Diff: PinNames.h
- Revision:
- 2:ed30bbd12e22
- Parent:
- 0:9f7581d1af6f
--- a/PinNames.h Thu Sep 05 23:37:25 2019 +0000 +++ b/PinNames.h Fri Sep 06 19:35:20 2019 +0000 @@ -38,6 +38,51 @@ extern "C" { #endif +//UART to AMB8826 +#define TXD1 PA_9 +#define RXD1 PA_10 +#define CTS1 PA_11 +int baudRate = 115200; + +//UART to Silicon Labs CP210x +#define TXD2 PA_2 +#define RXD2 PA_3 + +//UART to FTDI +#define TXD3 PB_10 +#define RXD3 PB_11 + +//I2C +#define I2C1_SCL PB_6 +#define I2C1_SDA PB_7 + +#define I2C2_SCL PB_10 +#define I2C2_SDA PB_11 + +//SPI +#define SPI1_MOSI PA_7 +#define SPI1_MISO PA_6 +#define SPI1_SCLK PA_5 +#define SPI1_NSS1 PA_4 +#define SDsel PA_4 + +#define SPI2_MOSI PB_15 +#define SPI2_MISO PB_14 +#define SPI2_SCLK PB_13 +#define SPI2_NSS2 PB_12 + +//CAN +#define CAN1_RX PA_11 +#define CAN1_TX PA_12 + +//USB CDC +#define USB_POS PA_12 +#define USB_NEG PA_11 + +//ADC +#define Uin PA_1 +#define Ubatt PA_0 + typedef enum { // Not connected NC = (int)0xFFFFFFFF, @@ -139,13 +184,14 @@ USBRX = PA_11, CANRX = PB_8, CANTX = PB_9, - I2C_SCL = PB_8, - I2C_SDA = PB_9, + I2C_SCL = PB_6, + I2C_SDA = PB_7, SPI_MOSI = PA_7, SPI_MISO = PA_6, SPI_SCK = PA_5, - SPI_CS = PB_6, - PWM_OUT = PB_3 + SPI_CS = PA_4, + TRACE_SWO = PB_3, + SWO = PB_3 } PinName; #ifdef __cplusplus