79 lines
2.3 KiB
C
79 lines
2.3 KiB
C
/*
|
|
* Copyright (c) 2016 Nordic Semiconductor ASA.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef __INC_BOARD_H
|
|
#define __INC_BOARD_H
|
|
|
|
#include <soc.h>
|
|
|
|
/* Push button switch 0 (BTN_A) */
|
|
#define SW0_GPIO_PIN 17
|
|
#define SW0_GPIO_NAME CONFIG_GPIO_NRF5_P0_DEV_NAME
|
|
|
|
/* Push button switch 1 (BTN_B) */
|
|
#define SW1_GPIO_PIN 26
|
|
#define SW1_GPIO_NAME CONFIG_GPIO_NRF5_P0_DEV_NAME
|
|
|
|
/* Onboard GREEN LED Row 1 */
|
|
#define LED_ROW1_GPIO_PIN 13
|
|
#define LED_ROW1_GPIO_PORT CONFIG_GPIO_NRF5_P0_DEV_NAME
|
|
|
|
/* Onboard GREEN LED Row 2 */
|
|
#define LED_ROW2_GPIO_PIN 14
|
|
#define LED_ROW2_GPIO_PORT CONFIG_GPIO_NRF5_P0_DEV_NAME
|
|
|
|
/* Onboard GREEN LED Row 3 */
|
|
#define LED_ROW3_GPIO_PIN 15
|
|
#define LED_ROW3_GPIO_PORT CONFIG_GPIO_NRF5_P0_DEV_NAME
|
|
|
|
/* Onboard GREEN LED Column 1 */
|
|
#define LED_COL1_GPIO_PIN 4
|
|
#define LED_COL1_GPIO_PORT CONFIG_GPIO_NRF5_P0_DEV_NAME
|
|
|
|
/* Onboard GREEN LED Column 2 */
|
|
#define LED_COL2_GPIO_PIN 5
|
|
#define LED_COL2_GPIO_PORT CONFIG_GPIO_NRF5_P0_DEV_NAME
|
|
|
|
/* Onboard GREEN LED Column 3 */
|
|
#define LED_COL3_GPIO_PIN 6
|
|
#define LED_COL3_GPIO_PORT CONFIG_GPIO_NRF5_P0_DEV_NAME
|
|
|
|
/* Onboard GREEN LED Column 4 */
|
|
#define LED_COL4_GPIO_PIN 7
|
|
#define LED_COL4_GPIO_PORT CONFIG_GPIO_NRF5_P0_DEV_NAME
|
|
|
|
/* Onboard GREEN LED Column 5 */
|
|
#define LED_COL5_GPIO_PIN 8
|
|
#define LED_COL5_GPIO_PORT CONFIG_GPIO_NRF5_P0_DEV_NAME
|
|
|
|
/* Onboard GREEN LED Column 6 */
|
|
#define LED_COL6_GPIO_PIN 9
|
|
#define LED_COL6_GPIO_PORT CONFIG_GPIO_NRF5_P0_DEV_NAME
|
|
|
|
/* Onboard GREEN LED Column 7 */
|
|
#define LED_COL7_GPIO_PIN 10
|
|
#define LED_COL7_GPIO_PORT CONFIG_GPIO_NRF5_P0_DEV_NAME
|
|
|
|
/* Onboard GREEN LED Column 8 */
|
|
#define LED_COL8_GPIO_PIN 11
|
|
#define LED_COL8_GPIO_PORT CONFIG_GPIO_NRF5_P0_DEV_NAME
|
|
|
|
/* Onboard GREEN LED Column 9 */
|
|
#define LED_COL9_GPIO_PIN 12
|
|
#define LED_COL9_GPIO_PORT CONFIG_GPIO_NRF5_P0_DEV_NAME
|
|
|
|
#endif /* __INC_BOARD_H */
|