Commit 678a6e02 authored by Erwan Gouriou's avatar Erwan Gouriou Committed by Kumar Gala
Browse files

boards: stm32 remove led and button definitions from board.h



Since they are now generated from dts, remove these definitions

Signed-off-by: default avatarErwan Gouriou <erwan.gouriou@linaro.org>
parent 162b6e4b
Loading
Loading
Loading
Loading
+0 −20
Original line number Diff line number Diff line
@@ -9,24 +9,4 @@

#include <soc.h>

/* USER push button */
#define USER_PB_GPIO_PORT "GPIOA"
#define USER_PB_GPIO_PIN   2

/* LED 1 */
#define USR1_GPIO_PIN     2
#define USR1_GPIO_PORT    "GPIOB"

/* LED 0 */
#define USR0_GPIO_PIN     13
#define USR0_GPIO_PORT    "GPIOC"

/* Aliases to make the basic LED samples work */
#define SW0_GPIO_NAME     USER_PB_GPIO_PORT
#define SW0_GPIO_PIN      USER_PB_GPIO_PIN
#define LED0_GPIO_PIN     USR0_GPIO_PIN
#define LED0_GPIO_PORT    USR0_GPIO_PORT
#define LED1_GPIO_PIN     USR1_GPIO_PIN
#define LED1_GPIO_PORT    USR1_GPIO_PORT

#endif /* __INC_BOARD_H */
+0 −20
Original line number Diff line number Diff line
@@ -9,24 +9,4 @@

#include <soc.h>

/* Onboard USR1 GREEN LED */
#define USR1_GPIO_PIN     2
#define USR1_GPIO_PORT    "GPIOD"

/* Onboard USR2 GREEN LED */
#define USR2_GPIO_PIN     15
#define USR2_GPIO_PORT    "GPIOA"

/* Onboard BT BLUE LED */
#define BT_GPIO_PIN       5
#define BT_GPIO_PORT      "GPIOB"

/* Aliases to make the basic LED samples work */
#define LED0_GPIO_PIN     USR1_GPIO_PIN
#define LED0_GPIO_PORT    USR1_GPIO_PORT
#define LED1_GPIO_PIN     USR2_GPIO_PIN
#define LED1_GPIO_PORT    USR2_GPIO_PORT
#define LED2_GPIO_PIN     BT_GPIO_PIN
#define LED2_GPIO_PORT    BT_GPIO_PORT

#endif /* __INC_BOARD_H */
+0 −32
Original line number Diff line number Diff line
@@ -9,36 +9,4 @@

#include <soc.h>

/* USER push button */
#define USER_PB_GPIO_PORT "GPIOB"
#define USER_PB_GPIO_PIN   2

/* Onboard USR0 GREEN LED */
#define USR0_GPIO_PIN     12
#define USR0_GPIO_PORT    "GPIOB"

/* Onboard USR1 GREEN LED */
#define USR1_GPIO_PIN     13
#define USR1_GPIO_PORT    "GPIOB"

/* Onboard USR2 GREEN LED */
#define USR2_GPIO_PIN     14
#define USR2_GPIO_PORT    "GPIOB"

/* Onboard USR3 GREEN LED */
#define USR3_GPIO_PIN     15
#define USR3_GPIO_PORT    "GPIOB"

/* Aliases to make the basic LED samples work */
#define SW0_GPIO_NAME     USER_PB_GPIO_PORT
#define SW0_GPIO_PIN      USER_PB_GPIO_PIN
#define LED0_GPIO_PIN     USR0_GPIO_PIN
#define LED0_GPIO_PORT    USR0_GPIO_PORT
#define LED1_GPIO_PIN     USR1_GPIO_PIN
#define LED1_GPIO_PORT    USR1_GPIO_PORT
#define LED2_GPIO_PIN     USR2_GPIO_PIN
#define LED2_GPIO_PORT    USR2_GPIO_PORT
#define LED3_GPIO_PIN     USR3_GPIO_PIN
#define LED3_GPIO_PORT    USR3_GPIO_PORT

#endif /* __INC_BOARD_H */
+0 −29
Original line number Diff line number Diff line
@@ -9,33 +9,4 @@

#include <soc.h>

/* USER push button */
#define USER_PB_GPIO_PORT	"GPIOC"
#define USER_PB_GPIO_PIN	13

/* LD1 green LED */
#define LD1_GPIO_PORT	"GPIOA"
#define LD1_GPIO_PIN	5

/* LD2 green LED */
#define LD2_GPIO_PORT	"GPIOB"
#define LD2_GPIO_PIN	14

/* LD3 & LD4 are mounted on PC_9 */
/* PC_9 output: 1: LD2 off, LD3 on */
/* PC_9 output: 0: LD2 on, LD3 off */
/* PC_9 input: LD3 off, LD3 off */
/* LD3 yellow: Wifi activity */
#define LD3_GPIO_PORT	"GPIOC"
#define LD3_GPIO_PIN	9
/* LD4 blue: BT activity */
#define LD4_GPIO_PORT	"GPIOC"
#define LD4_GPIO_PIN	9

/* Create aliases to make the basic samples work */
#define SW0_GPIO_NAME	USER_PB_GPIO_PORT
#define SW0_GPIO_PIN	USER_PB_GPIO_PIN
#define LED0_GPIO_PORT	LD2_GPIO_PORT
#define LED0_GPIO_PIN	LD2_GPIO_PIN

#endif /* __INC_BOARD_H */
+0 −14
Original line number Diff line number Diff line
@@ -9,18 +9,4 @@

#include <soc.h>

/* USER push button */
#define USER_PB_GPIO_PORT	"GPIOC"
#define USER_PB_GPIO_PIN	13

/* LD2 green LED */
#define LD2_GPIO_PORT		"GPIOA"
#define LD2_GPIO_PIN		5

/* Create aliases to make the basic samples work */
#define SW0_GPIO_NAME		USER_PB_GPIO_PORT
#define SW0_GPIO_PIN		USER_PB_GPIO_PIN
#define LED0_GPIO_PORT		LD2_GPIO_PORT
#define LED0_GPIO_PIN		LD2_GPIO_PIN

#endif /* __INC_BOARD_H */
Loading