2016-09-23 21:21:48 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Linaro Limited.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-09-23 21:21:48 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INC_BOARD_H
|
|
|
|
#define __INC_BOARD_H
|
|
|
|
|
|
|
|
#include <soc.h>
|
|
|
|
|
2017-01-21 01:01:43 +08:00
|
|
|
/* 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
|
|
|
|
|
2016-09-23 21:21:48 +08:00
|
|
|
#endif /* __INC_BOARD_H */
|