52 lines
1.4 KiB
C
52 lines
1.4 KiB
C
/* This file was auto-generated from bw12.json using boardgen */
|
|
|
|
#pragma once
|
|
|
|
#include <WVariant.h>
|
|
|
|
// clang-format off
|
|
|
|
// Pins
|
|
// ----
|
|
#define PINS_COUNT 11
|
|
#define NUM_DIGITAL_PINS 11
|
|
#define NUM_ANALOG_INPUTS 1
|
|
#define NUM_ANALOG_OUTPUTS 0
|
|
|
|
// Analog pins
|
|
// -----------
|
|
#define PIN_A0 3u // PA_19
|
|
#define A0 PIN_A0
|
|
|
|
// SPI Interfaces
|
|
// --------------
|
|
#define SPI_INTERFACES_COUNT 2
|
|
#define PIN_SPI0_CS 3u // PA_19
|
|
#define PIN_SPI0_MISO 4u // PA_22
|
|
#define PIN_SPI0_MOSI 10u // PA_23
|
|
#define PIN_SPI0_SCK 9u // PA_18
|
|
#define PIN_SPI1_CS 3u // PA_19
|
|
#define PIN_SPI1_MISO 4u // PA_22
|
|
#define PIN_SPI1_MOSI 10u // PA_23
|
|
#define PIN_SPI1_SCK 9u // PA_18
|
|
|
|
// Wire Interfaces
|
|
// ---------------
|
|
#define WIRE_INTERFACES_COUNT 2
|
|
#define PIN_WIRE0_SCL_0 1u // PA_29
|
|
#define PIN_WIRE0_SCL_1 4u // PA_22
|
|
#define PIN_WIRE0_SDA_0 3u // PA_19
|
|
#define PIN_WIRE0_SDA_1 5u // PA_30
|
|
#define PIN_WIRE1_SCL 9u // PA_18
|
|
#define PIN_WIRE1_SDA 10u // PA_23
|
|
|
|
// Serial ports
|
|
// ------------
|
|
#define SERIAL_INTERFACES_COUNT 2
|
|
#define PIN_SERIAL0_CTS 3u // PA_19
|
|
#define PIN_SERIAL0_RTS 4u // PA_22
|
|
#define PIN_SERIAL0_RX 9u // PA_18
|
|
#define PIN_SERIAL0_TX 10u // PA_23
|
|
#define PIN_SERIAL2_RX 1u // PA_29
|
|
#define PIN_SERIAL2_TX 5u // PA_30
|