From 261436d22bc93338e08e67956a47142e3b0d5086 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 31 Aug 2015 10:29:39 +0100 Subject: working copy of sdks dfu bootloader --- bsp/pca10028.h | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 bsp/pca10028.h (limited to 'bsp/pca10028.h') diff --git a/bsp/pca10028.h b/bsp/pca10028.h new file mode 100644 index 0000000..bb2fa52 --- /dev/null +++ b/bsp/pca10028.h @@ -0,0 +1,113 @@ +/* Copyright (c) 2014 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 PCA10028_H +#define PCA10028_H + +// LEDs definitions for PCA10028 +#define LEDS_NUMBER 4 + +#define LED_START 21 +#define LED_1 21 +#define LED_2 22 +#define LED_3 23 +#define LED_4 24 +#define LED_STOP 24 + +#define LEDS_LIST { LED_1, LED_2, LED_3, LED_4 } + +#define BSP_LED_0 LED_1 +#define BSP_LED_1 LED_2 +#define BSP_LED_2 LED_3 +#define BSP_LED_3 LED_4 + +#define BSP_LED_0_MASK (1<