Update boards/STM32_PRIMER2 for newer ChibiOS/RT

This commit is contained in:
NIIBE Yutaka
2013-02-18 16:32:21 +09:00
parent 605d8ef6c1
commit 38bbd38d14
4 changed files with 22 additions and 9 deletions

View File

@@ -37,6 +37,8 @@
#define GPIO_LED GPIOE_LEDR
#define IOPORT_LED GPIOE
/* NeuG settings for ADC2. */
/*
* Board identifier.
*/
@@ -91,6 +93,8 @@
/*
* Port A setup.
* Everything input with pull-up except:
* PA0 - Digital input with PullUp. AN0
* PA1 - Digital input with PullUp. AN1
* PA2 - Alternate output (USART2 TX).
* PA3 - Normal input (USART2 RX).
* PA8 - Input with pull-down (PBUTTON).
@@ -158,4 +162,14 @@
#define VAL_GPIOGODR 0xFFFFFFFF
#endif
#if !defined(_FROM_ASM_)
#ifdef __cplusplus
extern "C" {
#endif
void boardInit(void);
#ifdef __cplusplus
}
#endif
#endif /* _FROM_ASM_ */
#endif /* _BOARD_H_ */