mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-09 01:02:48 +00:00
We should let drivers or board code include soc.h directly so we can keep board.h to local info for board specific code. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
31 lines
641 B
C
31 lines
641 B
C
/*
|
|
* Copyright (c) 2017 Linaro Limited
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef __INC_BOARD_H
|
|
#define __INC_BOARD_H
|
|
|
|
#if defined(CONFIG_GPIO_MMIO32)
|
|
|
|
/* USERLED0 */
|
|
#define LED0_GPIO_PORT FPGAIO_LED0_GPIO_NAME
|
|
#define LED0_GPIO_PIN FPGAIO_LED0_USERLED0
|
|
|
|
/* USERLED1 */
|
|
#define LED1_GPIO_PORT FPGAIO_LED0_GPIO_NAME
|
|
#define LED1_GPIO_PIN FPGAIO_LED0_USERLED1
|
|
|
|
/* USERPB0 */
|
|
#define SW0_GPIO_NAME FPGAIO_BUTTON_GPIO_NAME
|
|
#define SW0_GPIO_PIN FPGAIO_BUTTON_USERPB0
|
|
|
|
/* USERPB1 */
|
|
#define SW1_GPIO_NAME FPGAIO_BUTTON_GPIO_NAME
|
|
#define SW1_GPIO_PIN FPGAIO_BUTTON_USERPB1
|
|
|
|
#endif /* CONFIG_GPIO_MMIO32 */
|
|
|
|
#endif /* __INC_BOARD_H */
|