Skip to content

Commit a298e8a

Browse files
committed
1 parent 91b04b3 commit a298e8a

File tree

1,410 files changed

+309174
-186805
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,410 files changed

+309174
-186805
lines changed

sdk/devices/LPC51U68/Kconfig

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
# Copyright 2023 NXP
2+
# All rights reserved.
3+
#
4+
# SPDX-License-Identifier: BSD-3-Clause
5+
6+
config MCUX_USE_SOC_LPC51U68
7+
bool
8+
select MCUX_CPU_ARCH_ARM_CM0P
9+
if MCUX_USE_SOC_LPC51U68
10+
11+
# Part Number
12+
config MCUX_SOC_PART_LPC51U68
13+
bool
14+
15+
config MCUX_DEVICE
16+
default "LPC51U68"
17+
18+
config MCUX_DEVICE_ID
19+
default "LPC51U68" if MCUX_SOC_PART_LPC51U68
20+
21+
22+
# Select supported components
23+
config MCUX_USE_SOC_LPC51U68
24+
select MCUX_HAS_CMSIS_DSP_Include
25+
select MCUX_HAS_CMSIS_DSP_Source
26+
select MCUX_HAS_CMSIS_Device_API_OSTick
27+
select MCUX_HAS_CMSIS_Device_API_RTOS2
28+
select MCUX_HAS_CMSIS_Driver_Include_CAN
29+
select MCUX_HAS_CMSIS_Driver_Include_Ethernet
30+
select MCUX_HAS_CMSIS_Driver_Include_Ethernet_MAC
31+
select MCUX_HAS_CMSIS_Driver_Include_Ethernet_PHY
32+
select MCUX_HAS_CMSIS_Driver_Include_Flash
33+
select MCUX_HAS_CMSIS_Driver_Include_I2C
34+
select MCUX_HAS_CMSIS_Driver_Include_MCI
35+
select MCUX_HAS_CMSIS_Driver_Include_NAND
36+
select MCUX_HAS_CMSIS_Driver_Include_SAI
37+
select MCUX_HAS_CMSIS_Driver_Include_SPI
38+
select MCUX_HAS_CMSIS_Driver_Include_USART
39+
select MCUX_HAS_CMSIS_Driver_Include_USB_Device
40+
select MCUX_HAS_CMSIS_Driver_Include_USB_Host
41+
select MCUX_HAS_CMSIS_Driver_Include_WiFi
42+
select MCUX_HAS_CMSIS_Include_core_cm
43+
select MCUX_HAS_CMSIS_NN_Source
44+
select MCUX_HAS_CMSIS_RTOS2_NonSecure
45+
select MCUX_HAS_CMSIS_RTOS2_Secure
46+
select MCUX_HAS_component_ctimer_adapter
47+
select MCUX_HAS_component_flexcomm_i2c_adapter
48+
select MCUX_HAS_component_flexcomm_spi_adapter
49+
select MCUX_HAS_component_gint_adapter
50+
select MCUX_HAS_component_lists
51+
select MCUX_HAS_component_lpc_gpio_adapter
52+
select MCUX_HAS_component_mrt_adapter
53+
select MCUX_HAS_component_serial_manager
54+
select MCUX_HAS_component_serial_manager_spi
55+
select MCUX_HAS_component_serial_manager_uart
56+
select MCUX_HAS_component_usart_adapter
57+
select MCUX_HAS_component_usart_dma_adapter
58+
select MCUX_HAS_driver_cmsis_flexcomm_i2c
59+
select MCUX_HAS_driver_cmsis_flexcomm_spi
60+
select MCUX_HAS_driver_cmsis_flexcomm_usart
61+
select MCUX_HAS_driver_common
62+
select MCUX_HAS_driver_ctimer
63+
select MCUX_HAS_driver_flashiap
64+
select MCUX_HAS_driver_flexcomm
65+
select MCUX_HAS_driver_flexcomm_i2c
66+
select MCUX_HAS_driver_flexcomm_i2c_dma
67+
select MCUX_HAS_driver_flexcomm_i2c_freertos
68+
select MCUX_HAS_driver_flexcomm_i2s
69+
select MCUX_HAS_driver_flexcomm_i2s_dma
70+
select MCUX_HAS_driver_flexcomm_spi
71+
select MCUX_HAS_driver_flexcomm_spi_dma
72+
select MCUX_HAS_driver_flexcomm_spi_freertos
73+
select MCUX_HAS_driver_flexcomm_usart
74+
select MCUX_HAS_driver_flexcomm_usart_dma
75+
select MCUX_HAS_driver_flexcomm_usart_freertos
76+
select MCUX_HAS_driver_fmeas
77+
select MCUX_HAS_driver_gint
78+
select MCUX_HAS_driver_iap
79+
select MCUX_HAS_driver_inputmux
80+
select MCUX_HAS_driver_lpc_adc
81+
select MCUX_HAS_driver_lpc_crc
82+
select MCUX_HAS_driver_lpc_dma
83+
select MCUX_HAS_driver_lpc_gpio
84+
select MCUX_HAS_driver_lpc_iocon
85+
select MCUX_HAS_driver_lpc_rtc
86+
select MCUX_HAS_driver_mrt
87+
select MCUX_HAS_driver_pint
88+
select MCUX_HAS_driver_sctimer
89+
select MCUX_HAS_driver_utick
90+
select MCUX_HAS_driver_wwdt
91+
select MCUX_HAS_utilities_misc_utilities
92+
select MCUX_HAS_utility_assert
93+
select MCUX_HAS_utility_assert_lite
94+
select MCUX_HAS_utility_debug_console
95+
select MCUX_HAS_utility_debug_console_lite
96+
select MCUX_HAS_utility_notifier
97+
select MCUX_HAS_utility_shell
98+
select MCUX_HAS_utility_str
99+
100+
#### SOC specific dependency ####
101+
config MCUX_USE_RTE_Device
102+
bool
103+
select MCUX_USE_driver_lpc_dma
104+
105+
config MCUX_USE_component_serial_manager_uart
106+
bool
107+
select MCUX_USE_component_usart_adapter
108+
109+
config MCUX_USE_driver_flexcomm_i2c_dma
110+
bool
111+
select MCUX_USE_driver_lpc_dma
112+
113+
config MCUX_USE_driver_flexcomm_i2s_dma
114+
bool
115+
select MCUX_USE_driver_lpc_dma
116+
117+
config MCUX_USE_driver_flexcomm_spi_dma
118+
bool
119+
select MCUX_USE_driver_lpc_dma
120+
121+
config MCUX_USE_driver_flexcomm_usart_dma
122+
bool
123+
select MCUX_USE_driver_lpc_dma
124+
125+
config MCUX_USE_utility_debug_console_lite
126+
bool
127+
select MCUX_USE_component_usart_adapter
128+
129+
130+
#### SOC level drivers ####
131+
# device_LPC51U68_CMSIS
132+
config MCUX_USE_device_LPC51U68_CMSIS
133+
bool "Device LPC51U68_cmsis"
134+
select MCUX_USE_CMSIS_Include_core_cm
135+
help
136+
Device LPC51U68_cmsis
137+
138+
# device_LPC51U68_startup
139+
config MCUX_USE_device_LPC51U68_startup
140+
bool "Device LPC51U68_startup"
141+
help
142+
Device LPC51U68_startup
143+
144+
# device_LPC51U68_system
145+
config MCUX_USE_device_LPC51U68_system
146+
bool "Device LPC51U68_system"
147+
help
148+
Device LPC51U68_system
149+
150+
# driver_fro_calib
151+
config MCUX_USE_driver_fro_calib
152+
bool "Driver fro_calib"
153+
select MCUX_USE_driver_common
154+
help
155+
FRO calibration Lib
156+
157+
# driver_power
158+
config MCUX_USE_driver_power
159+
bool "power"
160+
select MCUX_USE_driver_common
161+
help
162+
Power driver
163+
164+
rsource "drivers/Kconfig"
165+
166+
endif # MCUX_USE_SOC_LPC51U68

sdk/devices/LPC51U68/LPC51U68_features.h

Lines changed: 48 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*
22
** ###################################################################
33
** Version: rev. 1.0, 2017-12-15
4-
** Build: b211029
4+
** Build: b220714
55
**
66
** Abstract:
77
** Chip specific module features.
88
**
99
** Copyright 2016 Freescale Semiconductor, Inc.
10-
** Copyright 2016-2021 NXP
10+
** Copyright 2016-2022 NXP
1111
** All rights reserved.
1212
**
1313
** SPDX-License-Identifier: BSD-3-Clause
@@ -77,7 +77,7 @@
7777
/* ADC module features */
7878

7979
/* @brief Do not has input select (register INSEL). */
80-
#define FSL_FEATURE_ADC_HAS_NO_INSEL (0)
80+
#define FSL_FEATURE_ADC_HAS_NO_INSEL (0)
8181
/* @brief Has ASYNMODE bitfile in CTRL reigster. */
8282
#define FSL_FEATURE_ADC_HAS_CTRL_ASYNMODE (1)
8383
/* @brief Has ASYNMODE bitfile in CTRL reigster. */
@@ -99,7 +99,18 @@
9999

100100
/* CTIMER module features */
101101

102-
/* No feature definitions */
102+
/* @brief CTIMER has no capture channel. */
103+
#define FSL_FEATURE_CTIMER_HAS_NO_INPUT_CAPTURE (0)
104+
/* @brief CTIMER has no capture 2 interrupt. */
105+
#define FSL_FEATURE_CTIMER_HAS_NO_IR_CR2INT (0)
106+
/* @brief CTIMER capture 3 interrupt. */
107+
#define FSL_FEATURE_CTIMER_HAS_IR_CR3INT (1)
108+
/* @brief Has CTIMER CCR_CAP2 (register bits CCR[CAP2RE][CAP2FE][CAP2I]. */
109+
#define FSL_FEATURE_CTIMER_HAS_NO_CCR_CAP2 (0)
110+
/* @brief Has CTIMER CCR_CAP3 (register bits CCR[CAP3RE][CAP3FE][CAP3I]). */
111+
#define FSL_FEATURE_CTIMER_HAS_CCR_CAP3 (1)
112+
/* @brief CTIMER Has register MSR */
113+
#define FSL_FEATURE_CTIMER_HAS_MSR (0)
103114

104115
/* DMA module features */
105116

@@ -113,57 +124,57 @@
113124
/* FLEXCOMM module features */
114125

115126
/* @brief FLEXCOMM0 USART INDEX 0 */
116-
#define FSL_FEATURE_FLEXCOMM0_USART_INDEX (0)
127+
#define FSL_FEATURE_FLEXCOMM0_USART_INDEX (0)
117128
/* @brief FLEXCOMM0 SPI INDEX 0 */
118-
#define FSL_FEATURE_FLEXCOMM0_SPI_INDEX (0)
129+
#define FSL_FEATURE_FLEXCOMM0_SPI_INDEX (0)
119130
/* @brief FLEXCOMM0 I2C INDEX 0 */
120-
#define FSL_FEATURE_FLEXCOMM0_I2C_INDEX (0)
131+
#define FSL_FEATURE_FLEXCOMM0_I2C_INDEX (0)
121132
/* @brief FLEXCOMM1 USART INDEX 1 */
122-
#define FSL_FEATURE_FLEXCOMM1_USART_INDEX (1)
133+
#define FSL_FEATURE_FLEXCOMM1_USART_INDEX (1)
123134
/* @brief FLEXCOMM1 SPI INDEX 1 */
124-
#define FSL_FEATURE_FLEXCOMM1_SPI_INDEX (1)
135+
#define FSL_FEATURE_FLEXCOMM1_SPI_INDEX (1)
125136
/* @brief FLEXCOMM1 I2C INDEX 1 */
126-
#define FSL_FEATURE_FLEXCOMM1_I2C_INDEX (1)
137+
#define FSL_FEATURE_FLEXCOMM1_I2C_INDEX (1)
127138
/* @brief FLEXCOMM2 USART INDEX 2 */
128-
#define FSL_FEATURE_FLEXCOMM2_USART_INDEX (2)
139+
#define FSL_FEATURE_FLEXCOMM2_USART_INDEX (2)
129140
/* @brief FLEXCOMM2 SPI INDEX 2 */
130-
#define FSL_FEATURE_FLEXCOMM2_SPI_INDEX (2)
141+
#define FSL_FEATURE_FLEXCOMM2_SPI_INDEX (2)
131142
/* @brief FLEXCOMM2 I2C INDEX 2 */
132-
#define FSL_FEATURE_FLEXCOMM2_I2C_INDEX (2)
143+
#define FSL_FEATURE_FLEXCOMM2_I2C_INDEX (2)
133144
/* @brief FLEXCOMM3 USART INDEX 3 */
134-
#define FSL_FEATURE_FLEXCOMM3_USART_INDEX (3)
145+
#define FSL_FEATURE_FLEXCOMM3_USART_INDEX (3)
135146
/* @brief FLEXCOMM3 SPI INDEX 3 */
136-
#define FSL_FEATURE_FLEXCOMM3_SPI_INDEX (3)
147+
#define FSL_FEATURE_FLEXCOMM3_SPI_INDEX (3)
137148
/* @brief FLEXCOMM3 I2C INDEX 3 */
138-
#define FSL_FEATURE_FLEXCOMM3_I2C_INDEX (3)
149+
#define FSL_FEATURE_FLEXCOMM3_I2C_INDEX (3)
139150
/* @brief FLEXCOMM4 USART INDEX 4 */
140-
#define FSL_FEATURE_FLEXCOMM4_USART_INDEX (4)
151+
#define FSL_FEATURE_FLEXCOMM4_USART_INDEX (4)
141152
/* @brief FLEXCOMM4 SPI INDEX 4 */
142-
#define FSL_FEATURE_FLEXCOMM4_SPI_INDEX (4)
153+
#define FSL_FEATURE_FLEXCOMM4_SPI_INDEX (4)
143154
/* @brief FLEXCOMM4 I2C INDEX 4 */
144-
#define FSL_FEATURE_FLEXCOMM4_I2C_INDEX (4)
155+
#define FSL_FEATURE_FLEXCOMM4_I2C_INDEX (4)
145156
/* @brief FLEXCOMM5 USART INDEX 5 */
146-
#define FSL_FEATURE_FLEXCOMM5_USART_INDEX (5)
157+
#define FSL_FEATURE_FLEXCOMM5_USART_INDEX (5)
147158
/* @brief FLEXCOMM5 SPI INDEX 5 */
148-
#define FSL_FEATURE_FLEXCOMM5_SPI_INDEX (5)
159+
#define FSL_FEATURE_FLEXCOMM5_SPI_INDEX (5)
149160
/* @brief FLEXCOMM5 I2C INDEX 5 */
150-
#define FSL_FEATURE_FLEXCOMM5_I2C_INDEX (5)
161+
#define FSL_FEATURE_FLEXCOMM5_I2C_INDEX (5)
151162
/* @brief FLEXCOMM6 USART INDEX 6 */
152-
#define FSL_FEATURE_FLEXCOMM6_USART_INDEX (6)
163+
#define FSL_FEATURE_FLEXCOMM6_USART_INDEX (6)
153164
/* @brief FLEXCOMM6 SPI INDEX 6 */
154-
#define FSL_FEATURE_FLEXCOMM6_SPI_INDEX (6)
165+
#define FSL_FEATURE_FLEXCOMM6_SPI_INDEX (6)
155166
/* @brief FLEXCOMM6 I2C INDEX 6 */
156-
#define FSL_FEATURE_FLEXCOMM6_I2C_INDEX (6)
167+
#define FSL_FEATURE_FLEXCOMM6_I2C_INDEX (6)
157168
/* @brief FLEXCOMM7 I2S INDEX 0 */
158-
#define FSL_FEATURE_FLEXCOMM6_I2S_INDEX (0)
169+
#define FSL_FEATURE_FLEXCOMM6_I2S_INDEX (0)
159170
/* @brief FLEXCOMM7 USART INDEX 7 */
160-
#define FSL_FEATURE_FLEXCOMM7_USART_INDEX (7)
171+
#define FSL_FEATURE_FLEXCOMM7_USART_INDEX (7)
161172
/* @brief FLEXCOMM7 SPI INDEX 7 */
162-
#define FSL_FEATURE_FLEXCOMM7_SPI_INDEX (7)
173+
#define FSL_FEATURE_FLEXCOMM7_SPI_INDEX (7)
163174
/* @brief FLEXCOMM7 I2C INDEX 7 */
164-
#define FSL_FEATURE_FLEXCOMM7_I2C_INDEX (7)
175+
#define FSL_FEATURE_FLEXCOMM7_I2C_INDEX (7)
165176
/* @brief FLEXCOMM7 I2S INDEX 1 */
166-
#define FSL_FEATURE_FLEXCOMM7_I2S_INDEX (1)
177+
#define FSL_FEATURE_FLEXCOMM7_I2S_INDEX (1)
167178
/* @brief I2S has DMIC interconnection */
168179
#define FSL_FEATURE_FLEXCOMM_INSTANCE_I2S_HAS_DMIC_INTERCONNECTIONn(x) (0)
169180

@@ -182,7 +193,7 @@
182193
/* MRT module features */
183194

184195
/* @brief number of channels. */
185-
#define FSL_FEATURE_MRT_NUMBER_OF_CHANNELS (4)
196+
#define FSL_FEATURE_MRT_NUMBER_OF_CHANNELS (4)
186197

187198
/* interrupt module features */
188199

@@ -212,6 +223,11 @@
212223
/* @brief Number of outputs */
213224
#define FSL_FEATURE_SCT_NUMBER_OF_OUTPUTS (8)
214225

226+
/* SPI module features */
227+
228+
/* @brief SSEL pin count. */
229+
#define FSL_FEATURE_SPI_SSEL_COUNT (4)
230+
215231
/* SYSCON module features */
216232

217233
/* @brief Pointer to ROM IAP entry functions */
@@ -249,3 +265,4 @@
249265
#define FSL_FEATURE_WWDT_HAS_NO_RESET (1)
250266

251267
#endif /* _LPC51U68_FEATURES_H_ */
268+

0 commit comments

Comments
 (0)