Skip to content
Snippets Groups Projects
Commit a2f8a3fd authored by Oleg Hahm's avatar Oleg Hahm
Browse files

Merge pull request #4946 from haukepetersen/add_boards_buttondefines

boards: added pin defines for user buttons
parents 71b6221b ce2fdd78
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,11 @@ extern "C" { ...@@ -56,6 +56,11 @@ extern "C" {
#define LED_ORANGE_TOGGLE #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 * @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/ */
......
...@@ -67,11 +67,9 @@ extern "C" { ...@@ -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 * @brief Initialize board specific hardware, including clock, LEDs and std-IO
......
...@@ -57,6 +57,11 @@ extern "C" { ...@@ -57,6 +57,11 @@ extern "C" {
#define LED_ORANGE_TOGGLE #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 * @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/ */
......
...@@ -55,6 +55,11 @@ extern "C" { ...@@ -55,6 +55,11 @@ extern "C" {
#define LED_ORANGE_TOGGLE #define LED_ORANGE_TOGGLE
/** @} */ /** @} */
/**
* @brief User button
*/
#define BTN_B1_PIN GPIO_PIN(PORT_C, 13)
/** /**
* @name xtimer tuning values * @name xtimer tuning values
* @{ * @{
......
...@@ -64,6 +64,10 @@ extern "C" { ...@@ -64,6 +64,10 @@ extern "C" {
#define LED_ORANGE_TOGGLE #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 * @brief Initialize board specific hardware, including clock, LEDs and std-IO
......
...@@ -65,6 +65,11 @@ extern "C" { ...@@ -65,6 +65,11 @@ extern "C" {
#define LED_ORANGE_TOGGLE #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 * @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/ */
......
...@@ -55,6 +55,11 @@ extern "C" { ...@@ -55,6 +55,11 @@ extern "C" {
#define LED_RED_TOGGLE /* not available */ #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 * @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/ */
......
...@@ -56,6 +56,11 @@ extern "C" { ...@@ -56,6 +56,11 @@ extern "C" {
#define LED_RED_TOGGLE LD4_TOGGLE #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 * @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/ */
......
...@@ -79,6 +79,11 @@ extern "C" { ...@@ -79,6 +79,11 @@ extern "C" {
#define LED_RED_TOGGLE LD5_TOGGLE #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 * @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/ */
......
...@@ -75,6 +75,11 @@ extern "C" { ...@@ -75,6 +75,11 @@ extern "C" {
#define LED_RED_TOGGLE LD5_TOGGLE #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 * @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment