Skip to content

Commit 2291644

Browse files
Merge pull request #5162 from NXPmicro/Support_LPC54618
Change LPC54608 to LPC546XX to include support for LPC54608/18/28
2 parents c60194f + 880f106 commit 2291644

File tree

114 files changed

+184
-144
lines changed

Some content is hidden

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

114 files changed

+184
-144
lines changed

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC54608/TARGET_LPCXpresso/clock_config.c renamed to targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/TARGET_LPCXpresso/clock_config.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@
4545
/* TEXT BELOW IS USED AS SETTING FOR THE CLOCKS TOOL *****************************
4646
!!ClocksProfile
4747
product: Clocks v1.0
48-
processor: LPC54608J512
49-
package_id: LPC54608J512ET180
48+
processor: LPC54618J512
49+
package_id: LPC54618J512ET180
5050
mcu_data: ksdk2_0
5151
processor_version: 0.0.0
52-
board: LPCXpresso54608
52+
board: LPCXpresso54618
5353
* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR THE CLOCKS TOOL **/
5454

5555
#include "fsl_power.h"

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC54608/device/LPC54608.h renamed to targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/device/LPC54618.h

Lines changed: 50 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
** ###################################################################
3-
** Processors: LPC54608J512BD208
4-
** LPC54608J512ET180
3+
** Processors: LPC54618J512BD208
4+
** LPC54618J512ET180
55
**
66
** Compilers: Keil ARM C/C++ Compiler
77
** GNU C Compiler
@@ -13,7 +13,7 @@
1313
** Build: b170214
1414
**
1515
** Abstract:
16-
** CMSIS Peripheral Access Layer for LPC54608
16+
** CMSIS Peripheral Access Layer for LPC54618
1717
**
1818
** Copyright 1997-2016 Freescale Semiconductor, Inc.
1919
** Copyright 2016-2017 NXP
@@ -56,16 +56,16 @@
5656
*/
5757

5858
/*!
59-
* @file LPC54608.h
59+
* @file LPC54618.h
6060
* @version 1.1
6161
* @date 2016-11-25
62-
* @brief CMSIS Peripheral Access Layer for LPC54608
62+
* @brief CMSIS Peripheral Access Layer for LPC54618
6363
*
64-
* CMSIS Peripheral Access Layer for LPC54608
64+
* CMSIS Peripheral Access Layer for LPC54618
6565
*/
6666

67-
#ifndef _LPC54608_H_
68-
#define _LPC54608_H_ /**< Symbol preventing repeated inclusion */
67+
#ifndef _LPC54618_H_
68+
#define _LPC54618_H_ /**< Symbol preventing repeated inclusion */
6969

7070
/** Memory map major version (memory maps with equal major version number are
7171
* compatible) */
@@ -181,7 +181,7 @@ typedef enum IRQn {
181181
#define __FPU_PRESENT 1 /**< Defines if an FPU is present or not */
182182

183183
#include "core_cm4.h" /* Core Peripheral Access Layer */
184-
#include "system_LPC54608.h" /* Device specific configuration file */
184+
#include "system_LPC54618.h" /* Device specific configuration file */
185185

186186
/*!
187187
* @}
@@ -713,7 +713,8 @@ typedef struct {
713713

714714
/** CAN - Register Layout Typedef */
715715
typedef struct {
716-
uint8_t RESERVED_0[16];
716+
uint8_t RESERVED_0[12];
717+
__IO uint32_t DBTP; /**< Data Bit Timing Prescaler Register, offset: 0xC */
717718
__IO uint32_t TEST; /**< Test Register, offset: 0x10 */
718719
uint8_t RESERVED_1[4];
719720
__IO uint32_t CCCR; /**< CC Control Register, offset: 0x18 */
@@ -779,6 +780,23 @@ typedef struct {
779780
* @{
780781
*/
781782

783+
/*! @name DBTP - Data Bit Timing Prescaler Register */
784+
#define CAN_DBTP_DSJW_MASK (0xFU)
785+
#define CAN_DBTP_DSJW_SHIFT (0U)
786+
#define CAN_DBTP_DSJW(x) (((uint32_t)(((uint32_t)(x)) << CAN_DBTP_DSJW_SHIFT)) & CAN_DBTP_DSJW_MASK)
787+
#define CAN_DBTP_DTSEG2_MASK (0xF0U)
788+
#define CAN_DBTP_DTSEG2_SHIFT (4U)
789+
#define CAN_DBTP_DTSEG2(x) (((uint32_t)(((uint32_t)(x)) << CAN_DBTP_DTSEG2_SHIFT)) & CAN_DBTP_DTSEG2_MASK)
790+
#define CAN_DBTP_DTSEG1_MASK (0x1F00U)
791+
#define CAN_DBTP_DTSEG1_SHIFT (8U)
792+
#define CAN_DBTP_DTSEG1(x) (((uint32_t)(((uint32_t)(x)) << CAN_DBTP_DTSEG1_SHIFT)) & CAN_DBTP_DTSEG1_MASK)
793+
#define CAN_DBTP_DBRP_MASK (0x1F0000U)
794+
#define CAN_DBTP_DBRP_SHIFT (16U)
795+
#define CAN_DBTP_DBRP(x) (((uint32_t)(((uint32_t)(x)) << CAN_DBTP_DBRP_SHIFT)) & CAN_DBTP_DBRP_MASK)
796+
#define CAN_DBTP_TDC_MASK (0x800000U)
797+
#define CAN_DBTP_TDC_SHIFT (23U)
798+
#define CAN_DBTP_TDC(x) (((uint32_t)(((uint32_t)(x)) << CAN_DBTP_TDC_SHIFT)) & CAN_DBTP_TDC_MASK)
799+
782800
/*! @name TEST - Test Register */
783801
#define CAN_TEST_LBCK_MASK (0x10U)
784802
#define CAN_TEST_LBCK_SHIFT (4U)
@@ -815,6 +833,12 @@ typedef struct {
815833
#define CAN_CCCR_TEST_MASK (0x80U)
816834
#define CAN_CCCR_TEST_SHIFT (7U)
817835
#define CAN_CCCR_TEST(x) (((uint32_t)(((uint32_t)(x)) << CAN_CCCR_TEST_SHIFT)) & CAN_CCCR_TEST_MASK)
836+
#define CAN_CCCR_FDOE_MASK (0x100U)
837+
#define CAN_CCCR_FDOE_SHIFT (8U)
838+
#define CAN_CCCR_FDOE(x) (((uint32_t)(((uint32_t)(x)) << CAN_CCCR_FDOE_SHIFT)) & CAN_CCCR_FDOE_MASK)
839+
#define CAN_CCCR_BRSE_MASK (0x200U)
840+
#define CAN_CCCR_BRSE_SHIFT (9U)
841+
#define CAN_CCCR_BRSE(x) (((uint32_t)(((uint32_t)(x)) << CAN_CCCR_BRSE_SHIFT)) & CAN_CCCR_BRSE_MASK)
818842
#define CAN_CCCR_PXHD_MASK (0x1000U)
819843
#define CAN_CCCR_PXHD_SHIFT (12U)
820844
#define CAN_CCCR_PXHD(x) (((uint32_t)(((uint32_t)(x)) << CAN_CCCR_PXHD_SHIFT)) & CAN_CCCR_PXHD_MASK)
@@ -824,6 +848,9 @@ typedef struct {
824848
#define CAN_CCCR_TXP_MASK (0x4000U)
825849
#define CAN_CCCR_TXP_SHIFT (14U)
826850
#define CAN_CCCR_TXP(x) (((uint32_t)(((uint32_t)(x)) << CAN_CCCR_TXP_SHIFT)) & CAN_CCCR_TXP_MASK)
851+
#define CAN_CCCR_NISO_MASK (0x8000U)
852+
#define CAN_CCCR_NISO_SHIFT (15U)
853+
#define CAN_CCCR_NISO(x) (((uint32_t)(((uint32_t)(x)) << CAN_CCCR_NISO_SHIFT)) & CAN_CCCR_NISO_MASK)
827854

828855
/*! @name NBTP - Nominal Bit Timing and Prescaler Register */
829856
#define CAN_NBTP_NTSEG2_MASK (0x7FU)
@@ -898,6 +925,18 @@ typedef struct {
898925
#define CAN_PSR_BO_MASK (0x80U)
899926
#define CAN_PSR_BO_SHIFT (7U)
900927
#define CAN_PSR_BO(x) (((uint32_t)(((uint32_t)(x)) << CAN_PSR_BO_SHIFT)) & CAN_PSR_BO_MASK)
928+
#define CAN_PSR_DLEC_MASK (0x700U)
929+
#define CAN_PSR_DLEC_SHIFT (8U)
930+
#define CAN_PSR_DLEC(x) (((uint32_t)(((uint32_t)(x)) << CAN_PSR_DLEC_SHIFT)) & CAN_PSR_DLEC_MASK)
931+
#define CAN_PSR_RESI_MASK (0x800U)
932+
#define CAN_PSR_RESI_SHIFT (11U)
933+
#define CAN_PSR_RESI(x) (((uint32_t)(((uint32_t)(x)) << CAN_PSR_RESI_SHIFT)) & CAN_PSR_RESI_MASK)
934+
#define CAN_PSR_RBRS_MASK (0x1000U)
935+
#define CAN_PSR_RBRS_SHIFT (12U)
936+
#define CAN_PSR_RBRS(x) (((uint32_t)(((uint32_t)(x)) << CAN_PSR_RBRS_SHIFT)) & CAN_PSR_RBRS_MASK)
937+
#define CAN_PSR_RFDF_MASK (0x2000U)
938+
#define CAN_PSR_RFDF_SHIFT (13U)
939+
#define CAN_PSR_RFDF(x) (((uint32_t)(((uint32_t)(x)) << CAN_PSR_RFDF_SHIFT)) & CAN_PSR_RFDF_MASK)
901940
#define CAN_PSR_PXE_MASK (0x4000U)
902941
#define CAN_PSR_PXE_SHIFT (14U)
903942
#define CAN_PSR_PXE(x) (((uint32_t)(((uint32_t)(x)) << CAN_PSR_PXE_SHIFT)) & CAN_PSR_PXE_MASK)
@@ -12367,5 +12406,5 @@ typedef struct {
1236712406
*/ /* end of group SDK_Compatibility_Symbols */
1236812407

1236912408

12370-
#endif /* _LPC54608_H_ */
12409+
#endif /* _LPC54618_H_ */
1237112410

0 commit comments

Comments
 (0)