From 1ab68a8ec87da20d07f61049496fdebed68d4597 Mon Sep 17 00:00:00 2001 From: Richard Meadows Date: Thu, 14 Jan 2016 20:32:30 +0000 Subject: [PATCH] Add hw config options for v0.987 hardware --- firmware/inc/hw_config.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/firmware/inc/hw_config.h b/firmware/inc/hw_config.h index 73751d2..5523d94 100644 --- a/firmware/inc/hw_config.h +++ b/firmware/inc/hw_config.h @@ -30,6 +30,7 @@ #include "adc/adc.h" #define V0986 +#define V0987 /* * Convenience definitions for available GPIO modules @@ -120,8 +121,12 @@ * I2C Bus */ #define I2C_SERCOM (SercomI2cm*)SERCOM1 +#ifdef V0987 +#define I2C_SERCOM_SDA_PIN PIN_PA27 +#else #define I2C_SERCOM_SDA_PIN PIN_PA00 #define I2C_SERCOM_SDA_PINMUX PINMUX_PA00D_SERCOM1_PAD0 +#endif #define I2C_SERCOM_SCL_PIN PIN_PA01 #define I2C_SERCOM_SCL_PINMUX PINMUX_PA01D_SERCOM1_PAD1 @@ -206,8 +211,12 @@ * LF Clock */ #define USE_LFTIMER 0 +#ifdef V0987 +#define LFTIMER_XOSC32K +#else #define LFTIMER_GCLKIO_0_PIN PIN_PA27 #define LFTIMER_GCLKIO_0_PINMUX PINMUX_PA27H_GCLK_IO0 +#endif /** * HF Clock