From 00f0f13e12d3a110cc7807215c49fe3cfdf77565 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 7 Sep 2015 11:53:40 +0100 Subject: fish --- bootloader/bsp/pca10028.h | 113 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 bootloader/bsp/pca10028.h (limited to 'bootloader/bsp/pca10028.h') diff --git a/bootloader/bsp/pca10028.h b/bootloader/bsp/pca10028.h new file mode 100644 index 0000000..bb2fa52 --- /dev/null +++ b/bootloader/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<