2015-11-20 21:37:13 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2015 Intel Corporation
|
|
|
|
*
|
|
|
|
* 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 __BOARD_H__
|
|
|
|
#define __BOARD_H__
|
|
|
|
|
|
|
|
#include <soc.h>
|
|
|
|
|
2016-10-02 10:58:05 +08:00
|
|
|
/* Push button switch 0 */
|
|
|
|
#define SW0_GPIO_PIN 4
|
2016-10-02 22:23:26 +08:00
|
|
|
#define SW0_GPIO_NAME CONFIG_GPIO_QMSI_1_NAME
|
2016-10-02 10:58:05 +08:00
|
|
|
|
|
|
|
/* Push button switch 1 */
|
|
|
|
#define SW1_GPIO_PIN 5
|
|
|
|
#define SW1_GPIO_NAME CONFIG_GPIO_QMSI_0_NAME
|
|
|
|
|
2016-10-15 21:09:24 +08:00
|
|
|
/* Onboard LED */
|
|
|
|
#define LED0_GPIO_PORT CONFIG_GPIO_QMSI_0_NAME
|
|
|
|
#define LED0_GPIO_PIN 25
|
|
|
|
|
2016-09-26 17:51:58 +08:00
|
|
|
#if defined(CONFIG_TI_CC2520_LEGACY) || \
|
|
|
|
defined(CONFIG_TI_CC2520) || \
|
|
|
|
defined(CONFIG_TI_CC2520_RAW)
|
2015-11-24 20:44:28 +08:00
|
|
|
|
|
|
|
/* GPIO numbers where the TI cc2520 chip is connected to */
|
2016-11-29 00:06:15 +08:00
|
|
|
#define CC2520_GPIO_VREG_EN 0 /* PIN ?, ATP_AON_INT0 (out) */
|
|
|
|
#define CC2520_GPIO_RESET 1 /* PIN ?, ATP_AON_INT1 (out) */
|
|
|
|
#define CC2520_GPIO_FIFO 4 /* PIN 4, GPIO4 (in) */
|
|
|
|
#define CC2520_GPIO_FIFOP 5 /* PIN 5, GPIO5 (in) */
|
|
|
|
#define CC2520_GPIO_CCA 6 /* PIN 6, GPIO6 (in) */
|
|
|
|
#define CC2520_GPIO_SFD 29 /* PIN 33, GPIO29 (in) */
|
2015-11-24 20:44:28 +08:00
|
|
|
|
2016-09-26 17:51:58 +08:00
|
|
|
#endif /* CONFIG_TI_CC2520_LEGACY || CONFIG_TI_CC2520 || CONFIG_TI_CC2520_RAW */
|
2015-11-24 20:44:28 +08:00
|
|
|
|
2016-06-01 19:20:02 +08:00
|
|
|
#if defined(CONFIG_USB)
|
|
|
|
/* GPIO driver name */
|
|
|
|
#define USB_GPIO_DRV_NAME CONFIG_GPIO_QMSI_0_NAME
|
|
|
|
/* GPIO pin for enabling VBUS */
|
|
|
|
#define USB_VUSB_EN_GPIO 28
|
|
|
|
#endif
|
|
|
|
|
2015-11-20 21:37:13 +08:00
|
|
|
#endif /* __BOARD_H__ */
|