From ae6972426dbdfef28f45c319e15142c4bb9673d8 Mon Sep 17 00:00:00 2001 From: Christian Taedcke Date: Sat, 19 Oct 2013 16:58:54 +0200 Subject: [PATCH] Added support for STM32w boards MB950 and MB951 revision B. --- platform/mbxxx/board.c | 26 ++++++++++++++++++++++++++ platform/mbxxx/board.h | 16 ++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/platform/mbxxx/board.c b/platform/mbxxx/board.c index 277a377c5..eb98c3e17 100644 --- a/platform/mbxxx/board.c +++ b/platform/mbxxx/board.c @@ -57,7 +57,9 @@ * - MB954 B * - MB954 C * - MB950 A +* - MB950 B * - MB951 A +* - MB951 B * - IDZ401V1 */ /*---------------------------------------------------------------------------*/ @@ -318,6 +320,17 @@ const BoardResourcesType MB950A = { &stlm20PA4noDiv, }; +const BoardResourcesType MB950B = { + "MB950 B", + (BOARD_HAS_MEMS | BOARD_HAS_TEMP_SENSOR | BOARD_HAS_STM32F), + BUTTONS_MB950B, + LEDS_MB950B, + &ioMB950A, + &infraRedLedMB851A, + &memsSensor, + &stlm20PA4noDiv, +}; + const BoardResourcesType MB951A = { "MB951 A", (BOARD_HAS_STM32F), @@ -329,6 +342,17 @@ const BoardResourcesType MB951A = { NULL, }; +const BoardResourcesType MB951B = { + "MB951 B", + (BOARD_HAS_STM32F), + BUTTONS_MB951B, + LEDS_MB951B, + &ioMB951A, + NULL, + NULL, + NULL, +}; + const BoardResourcesType IDZ401V1 = { "IDZ401V1", (BOARD_HAS_STM32F), @@ -349,7 +373,9 @@ static const BoardResourcesType *boardList [] = { &MB954B, &MB954C, &MB950A, + &MB950B, &MB951A, + &MB951B, &IDZ401V1 }; diff --git a/platform/mbxxx/board.h b/platform/mbxxx/board.h index 9c83ecd6b..c13303ff8 100644 --- a/platform/mbxxx/board.h +++ b/platform/mbxxx/board.h @@ -100,10 +100,18 @@ char boardName[16]; * \brief Define the number of LEDs in the specific board revision */ #define LEDS_MB950A 2 +/** + * \brief Define the number of LEDs in the specific board revision + */ +#define LEDS_MB950B 2 /** * \brief Define the number of LEDs in the specific board revision */ #define LEDS_MB951A 2 +/** + * \brief Define the number of LEDs in the specific board revision + */ +#define LEDS_MB951B 2 @@ -152,10 +160,18 @@ char boardName[16]; * \brief Define the number of user buttons in the specific board revision */ #define BUTTONS_MB950A 5 +/** + * \brief Define the number of user buttons in the specific board revision + */ +#define BUTTONS_MB950B 5 /** * \brief Define the number of user buttons in the specific board revision */ #define BUTTONS_MB951A 1 +/** + * \brief Define the number of user buttons in the specific board revision + */ +#define BUTTONS_MB951B 1