1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #4946 from haukepetersen/add_boards_buttondefines

boards: added pin defines for user buttons
This commit is contained in:
Oleg Hahm 2016-03-09 23:14:53 +01:00
commit a2f8a3fdd4
10 changed files with 46 additions and 4 deletions

View File

@ -56,6 +56,11 @@ extern "C" {
#define LED_ORANGE_TOGGLE
/** @} */
/**
* @brief User button
*/
#define BTN_B1_PIN GPIO_PIN(PORT_C, 13)
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/

View File

@ -67,11 +67,9 @@ extern "C" {
/** @} */
/**
* @name Buttons
* @{
* @brief User button
*/
#define BUTTON_USER_GPIO GPIO_PIN(PORT_C, 13)
/** @} */
#define BTN_B1_PIN GPIO_PIN(PORT_C, 13)
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO

View File

@ -57,6 +57,11 @@ extern "C" {
#define LED_ORANGE_TOGGLE
/** @} */
/**
* @brief User button
*/
#define BTN_B1_PIN GPIO_PIN(PORT_C, 13)
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/

View File

@ -55,6 +55,11 @@ extern "C" {
#define LED_ORANGE_TOGGLE
/** @} */
/**
* @brief User button
*/
#define BTN_B1_PIN GPIO_PIN(PORT_C, 13)
/**
* @name xtimer tuning values
* @{

View File

@ -64,6 +64,10 @@ extern "C" {
#define LED_ORANGE_TOGGLE
/** @} */
/**
* @brief User button
*/
#define BTN_B1_PIN GPIO_PIN(PORT_C, 13)
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO

View File

@ -65,6 +65,11 @@ extern "C" {
#define LED_ORANGE_TOGGLE
/** @} */
/**
* @brief User button
*/
#define BTN_B1_PIN GPIO_PIN(PORT_C, 13)
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/

View File

@ -55,6 +55,11 @@ extern "C" {
#define LED_RED_TOGGLE /* not available */
/** @} */
/**
* @brief User button pin
*/
#define SW0_PIN GPIO_PIN(PA, 2)
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/

View File

@ -56,6 +56,11 @@ extern "C" {
#define LED_RED_TOGGLE LD4_TOGGLE
/** @} */
/**
* @brief User button
*/
#define BTN_B1_PIN GPIO_PIN(PORT_A, 0)
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/

View File

@ -79,6 +79,11 @@ extern "C" {
#define LED_RED_TOGGLE LD5_TOGGLE
/** @} */
/**
* @brief User button
*/
#define BTN_B1_PIN GPIO_PIN(PORT_A, 0)
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/

View File

@ -75,6 +75,11 @@ extern "C" {
#define LED_RED_TOGGLE LD5_TOGGLE
/** @} */
/**
* @brief User button
*/
#define BTN_B1_PIN GPIO_PIN(PORT_A, 0)
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/