bccu_config.h
1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* Copyright (c) 2015-2016, Arkadiusz Materek (arekmat@poczta.fm)
*
* Licensed under GNU General Public License 3.0 or later.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#ifndef XMC_LAMP_CONFIG_H_
#define XMC_LAMP_CONFIG_H_
#include <xmc_bccu.h>
#include <xmc_gpio.h>
// remove unused pins
#define XMC_BCCU_CH0_PIN P0_4
#define XMC_BCCU_CH0_PIN_MODE XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1
#define XMC_BCCU_CH1_PIN P0_5
#define XMC_BCCU_CH1_PIN_MODE XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1
#define XMC_BCCU_CH2_PIN P0_6
#define XMC_BCCU_CH2_PIN_MODE XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1
#define XMC_BCCU_CH3_PIN P0_7
#define XMC_BCCU_CH3_PIN_MODE XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1
#define XMC_BCCU_CH4_PIN P0_8
#define XMC_BCCU_CH4_PIN_MODE XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1
#define XMC_BCCU_CH5_PIN P0_9
#define XMC_BCCU_CH5_PIN_MODE XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1
#define XMC_BCCU_CH6_PIN P0_10
#define XMC_BCCU_CH6_PIN_MODE XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1
#define XMC_BCCU_CH7_PIN P0_11
#define XMC_BCCU_CH7_PIN_MODE XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1
#define XMC_BCCU_CH8_PIN P0_1
#define XMC_BCCU_CH8_PIN_MODE XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT6
#ifdef __cplusplus
extern "C" {
#endif
extern const XMC_BCCU_GLOBAL_CONFIG_t kBCCUGlobalConfig;
extern const XMC_BCCU_DIM_CONFIG_t kBCCUDimmingConfig;
extern const XMC_BCCU_CH_CONFIG_t kLampBCCUChannelConfig;
#ifdef __cplusplus
} // extern "C"
#endif
#endif // XMC_LAMP_CONFIG_H_