Files
TencentOS-tiny/board/Nordic_NRF52840/BSP/Inc/main.h
2019-10-10 16:50:17 +08:00

41 lines
992 B
C

/* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use of the information. NO
* WARRANTY of ANY KIND is provided. This heading must NOT be removed from
* the file.
*
*/
#ifndef MAIN_H
#define MAIN_H
#include "tos.h"
#include "nrf_gpio.h"
#define LED_START 18
#define LED_0 18
#define LED_1 19
#define LED_2 20
#define LED_3 21
#define LED_4 22
#define LED_STOP 22
#define BUTTON_START 16
#define BUTTON_0 16
#define BUTTON_1 17
#define BUTTON_STOP 17
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP
// Board
#define RTS_PIN_NUMBER 5
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 7
#define RX_PIN_NUMBER 8
#define HWFC false
#endif