2016-04-22 05:47:09 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2015 Intel Corporation
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-04-22 05:47:09 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INC_BOARD_H
|
|
|
|
#define __INC_BOARD_H
|
|
|
|
|
2016-07-15 04:41:34 +08:00
|
|
|
#include <soc.h>
|
|
|
|
|
2017-02-26 02:38:07 +08:00
|
|
|
/* USER push button BUT */
|
|
|
|
#define USER_PB_GPIO_PORT "GPIOC"
|
|
|
|
#define USER_PB_GPIO_PIN 9
|
|
|
|
|
|
|
|
/* LED1 green LED */
|
|
|
|
#define LED1_GPIO_PORT "GPIOA"
|
|
|
|
#define LED1_GPIO_PIN 5
|
|
|
|
|
|
|
|
/* LED2 yellow LED */
|
|
|
|
#define LED2_GPIO_PORT "GPIOA"
|
|
|
|
#define LED2_GPIO_PIN 1
|
|
|
|
|
|
|
|
/* Define 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 LED1_GPIO_PORT
|
|
|
|
#define LED0_GPIO_PIN LED1_GPIO_PIN
|
|
|
|
|
2016-04-22 05:47:09 +08:00
|
|
|
#endif /* __INC_BOARD_H */
|