Added support for STM32w boards MB950 and MB951 revision B.

This commit is contained in:
Christian Taedcke 2013-10-19 16:58:54 +02:00
parent 6dd9f2c37a
commit ae6972426d
2 changed files with 42 additions and 0 deletions

View File

@ -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
};

View File

@ -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