NHS31xx SW API
led_dft.h
1
/*
2
* Copyright 2014-2017 NXP
3
* This software is owned or controlled by NXP and may only be used strictly
4
* in accordance with the applicable license terms. By expressly accepting
5
* such terms or by downloading, installing, activating and/or otherwise using
6
* the software, you are agreeing that you have read, and that you agree to
7
* comply with and are bound by, such license terms. If you do not agree to
8
* be bound by the applicable license terms, then you may not retain, install,
9
* activate or otherwise use the software.
10
*/
11
20
#ifndef __LED_DFT_H_
21
#define __LED_DFT_H_
22
27
typedef
struct
LED_PROPERTIES_S {
28
uint8_t
port
;
29
uint8_t
pin
;
30
bool
polarity
;
32
IOCON_PIN_T
pio
;
33
}
LED_PROPERTIES_T
;
34
35
#if !LED_COUNT && !defined(LED_PROPERTIES)
36
#warning LED_COUNT is not defined or is 0. No LEDs can be driven now.
37
40
#define LED_COUNT 0
41
45
#define LED_PROPERTIES NULL
46
#elif LED_COUNT && defined(LED_PROPERTIES)
47
/* OK */
48
#else
49
#error Both LED_COUNT and LED_PROPERTIES must be both defined or undefined. Define LED_PROPERTIES as an array of
50
type
LED_PROPERTIES_T
and size
LED_COUNT
.
51
#endif
52
53
#endif
LED_PROPERTIES_T::port
uint8_t port
Definition:
led_dft.h:28
LED_PROPERTIES_T::pio
IOCON_PIN_T pio
Definition:
led_dft.h:32
LED_PROPERTIES_T::polarity
bool polarity
Definition:
led_dft.h:30
LED_PROPERTIES_T
Definition:
led_dft.h:27
LED_PROPERTIES_T::pin
uint8_t pin
Definition:
led_dft.h:29
LED_COUNT
#define LED_COUNT
Definition:
led_dft.h:40
IOCON_PIN_T
IOCON_PIN_T
Definition:
iocon_nss.h:94
sw
nss
mods
led
led_dft.h
Generated on Tue Oct 20 2020 08:17:10 for NHS31xx SW API by
1.8.14