Files
libretiny/boards/wr2/variant.h
2022-07-11 14:23:10 +02:00

36 lines
716 B
C

/* This file was auto-generated from wr2.json using boardgen */
#pragma once
#include <WVariant.h>
// clang-format off
// Pins
// ----
#define PINS_COUNT 8
#define NUM_DIGITAL_PINS 7
#define NUM_ANALOG_INPUTS 1
#define NUM_ANALOG_OUTPUTS 0
// Analog pins
// -----------
#define PIN_A1 7u // AD_2
#define A1 PIN_A1
// SPI Interfaces
// --------------
#define SPI_INTERFACES_COUNT 0
// Wire Interfaces
// ---------------
#define WIRE_INTERFACES_COUNT 1
#define PIN_WIRE1_SCL 3u // PA_18
#define PIN_WIRE1_SDA 4u // PA_23
// Serial ports
// ------------
#define SERIAL_INTERFACES_COUNT 1
#define PIN_SERIAL0_RX 3u // PA_18
#define PIN_SERIAL0_TX 4u // PA_23