Skip to content

Commit

Permalink
Merge pull request #18614 from benpicco/BTN0_PORT-purge
Browse files Browse the repository at this point in the history
boards: drop unused BTN0_PORT define
  • Loading branch information
dylad authored Sep 21, 2022
2 parents 3876f38 + f39e502 commit 4c1684f
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion boards/common/saml1x/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ extern "C" {
* @name SW0 (Button) pin definitions
* @{
*/
#define BTN0_PORT _PORT->Group[PA]
#define BTN0_PIN GPIO_PIN(PA, 27)
#define BTN0_MODE GPIO_IN_PU
/** @} */
Expand Down
1 change: 0 additions & 1 deletion boards/hamilton/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ extern "C" {
* @name Button pin definitions
* @{
*/
#define BTN0_PORT PORT->Group[0]
#define BTN0_PIN GPIO_PIN(0, 18)
#define BTN0_MODE GPIO_IN_PU
/** @} */
Expand Down
1 change: 0 additions & 1 deletion boards/pba-d-01-kw2x/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ extern "C"
* @name Macro for button S1/S2.
* @{
*/
#define BTN0_PORT PORTD
#define BTN0_PIN GPIO_PIN(PORT_D, 1)
#define BTN0_MODE GPIO_IN_PU
/** @} */
Expand Down
1 change: 0 additions & 1 deletion boards/samd10-xmini/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ extern "C" {
* @name SW0 (Button) pin definitions
* @{
*/
#define BTN0_PORT PORT->Group[PA]
#define BTN0_PIN GPIO_PIN(PA, 25)
#define BTN0_MODE GPIO_IN_PU
/** @} */
Expand Down
1 change: 0 additions & 1 deletion boards/samd20-xpro/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ extern "C" {
* @name SW0 (Button) pin definitions
* @{
*/
#define BTN0_PORT PORT->Group[PA]
#define BTN0_PIN GPIO_PIN(PA, 15)
#define BTN0_MODE GPIO_IN_PU
/** @} */
Expand Down
1 change: 0 additions & 1 deletion boards/samd21-xpro/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ extern "C" {
* @name SW0 (Button) pin definitions
* @{
*/
#define BTN0_PORT PORT->Group[PA]
#define BTN0_PIN GPIO_PIN(PA, 15)
#define BTN0_MODE GPIO_IN_PU
/** @} */
Expand Down
1 change: 0 additions & 1 deletion boards/same54-xpro/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ extern "C" {
* @name SW0 (Button) pin definitions
* @{
*/
#define BTN0_PORT PORT->Group[PB]
#define BTN0_PIN GPIO_PIN(PB, 31)
#define BTN0_MODE GPIO_IN_PU
/** @} */
Expand Down
1 change: 0 additions & 1 deletion boards/saml21-xpro/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ extern "C" {
* @name SW0 (Button) pin definitions
* @{
*/
#define BTN0_PORT PORT->Group[PA]
#define BTN0_PIN GPIO_PIN(PA, 2)
#define BTN0_MODE GPIO_IN_PU
/** @} */
Expand Down
1 change: 0 additions & 1 deletion boards/samr21-xpro/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ extern "C" {
* @name SW0 (Button) pin definitions
* @{
*/
#define BTN0_PORT PORT->Group[0]
#define BTN0_PIN GPIO_PIN(0, 28)
#define BTN0_MODE GPIO_IN_PU
/** @} */
Expand Down
1 change: 0 additions & 1 deletion boards/samr30-xpro/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ extern "C" {
* @name BTN0 (SW0 Button) pin definitions
* @{
*/
#define BTN0_PORT PORT->Group[0]
#define BTN0_PIN GPIO_PIN(PA, 28)
#define BTN0_MODE GPIO_IN_PU
/** @} */
Expand Down
1 change: 0 additions & 1 deletion boards/samr34-xpro/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ extern "C" {
* @name BTN0 (SW0 Button) pin definitions
* @{
*/
#define BTN0_PORT PORT->Group[0] /**< GPIO port */
#define BTN0_PIN GPIO_PIN(PA, 28) /**< GPIO pin */
#define BTN0_MODE GPIO_IN_PU /**< Pull Up GPIO */
/** @} */
Expand Down
1 change: 0 additions & 1 deletion boards/sensebox_samd21/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ extern "C" {
* @name SW0 (Button) pin definitions
* @{
*/
#define BTN0_PORT PORT->Group[PA]
#define BTN0_PIN GPIO_PIN(PA, 20)
#define BTN0_MODE GPIO_IN_PU
/** @} */
Expand Down
1 change: 0 additions & 1 deletion boards/stm32l0538-disco/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ extern "C" {
* @{
*/
#define BTN0_PIN GPIO_PIN(PORT_A, 0)
#define BTN0_PORT GPIOA
#define BTN0_MODE GPIO_IN
/** @} */

Expand Down

0 comments on commit 4c1684f

Please # to comment.