1
1
/*
2
2
** ###################################################################
3
- ** Processors: LPC54608J512BD208
4
- ** LPC54608J512ET180
3
+ ** Processors: LPC54618J512BD208
4
+ ** LPC54618J512ET180
5
5
**
6
6
** Compilers: Keil ARM C/C++ Compiler
7
7
** GNU C Compiler
13
13
** Build: b170214
14
14
**
15
15
** Abstract:
16
- ** CMSIS Peripheral Access Layer for LPC54608
16
+ ** CMSIS Peripheral Access Layer for LPC54618
17
17
**
18
18
** Copyright 1997-2016 Freescale Semiconductor, Inc.
19
19
** Copyright 2016-2017 NXP
56
56
*/
57
57
58
58
/*!
59
- * @file LPC54608 .h
59
+ * @file LPC54618 .h
60
60
* @version 1.1
61
61
* @date 2016-11-25
62
- * @brief CMSIS Peripheral Access Layer for LPC54608
62
+ * @brief CMSIS Peripheral Access Layer for LPC54618
63
63
*
64
- * CMSIS Peripheral Access Layer for LPC54608
64
+ * CMSIS Peripheral Access Layer for LPC54618
65
65
*/
66
66
67
- #ifndef _LPC54608_H_
68
- #define _LPC54608_H_ /**< Symbol preventing repeated inclusion */
67
+ #ifndef _LPC54618_H_
68
+ #define _LPC54618_H_ /**< Symbol preventing repeated inclusion */
69
69
70
70
/** Memory map major version (memory maps with equal major version number are
71
71
* compatible) */
@@ -181,7 +181,7 @@ typedef enum IRQn {
181
181
#define __FPU_PRESENT 1 /**< Defines if an FPU is present or not */
182
182
183
183
#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 */
185
185
186
186
/*!
187
187
* @}
@@ -713,7 +713,8 @@ typedef struct {
713
713
714
714
/** CAN - Register Layout Typedef */
715
715
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 */
717
718
__IO uint32_t TEST; /**< Test Register, offset: 0x10 */
718
719
uint8_t RESERVED_1[4];
719
720
__IO uint32_t CCCR; /**< CC Control Register, offset: 0x18 */
@@ -779,6 +780,23 @@ typedef struct {
779
780
* @{
780
781
*/
781
782
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
+
782
800
/*! @name TEST - Test Register */
783
801
#define CAN_TEST_LBCK_MASK (0x10U)
784
802
#define CAN_TEST_LBCK_SHIFT (4U)
@@ -815,6 +833,12 @@ typedef struct {
815
833
#define CAN_CCCR_TEST_MASK (0x80U)
816
834
#define CAN_CCCR_TEST_SHIFT (7U)
817
835
#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)
818
842
#define CAN_CCCR_PXHD_MASK (0x1000U)
819
843
#define CAN_CCCR_PXHD_SHIFT (12U)
820
844
#define CAN_CCCR_PXHD(x) (((uint32_t)(((uint32_t)(x)) << CAN_CCCR_PXHD_SHIFT)) & CAN_CCCR_PXHD_MASK)
@@ -824,6 +848,9 @@ typedef struct {
824
848
#define CAN_CCCR_TXP_MASK (0x4000U)
825
849
#define CAN_CCCR_TXP_SHIFT (14U)
826
850
#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)
827
854
828
855
/*! @name NBTP - Nominal Bit Timing and Prescaler Register */
829
856
#define CAN_NBTP_NTSEG2_MASK (0x7FU)
@@ -898,6 +925,18 @@ typedef struct {
898
925
#define CAN_PSR_BO_MASK (0x80U)
899
926
#define CAN_PSR_BO_SHIFT (7U)
900
927
#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)
901
940
#define CAN_PSR_PXE_MASK (0x4000U)
902
941
#define CAN_PSR_PXE_SHIFT (14U)
903
942
#define CAN_PSR_PXE(x) (((uint32_t)(((uint32_t)(x)) << CAN_PSR_PXE_SHIFT)) & CAN_PSR_PXE_MASK)
@@ -12367,5 +12406,5 @@ typedef struct {
12367
12406
*/ /* end of group SDK_Compatibility_Symbols */
12368
12407
12369
12408
12370
- #endif /* _LPC54608_H_ */
12409
+ #endif /* _LPC54618_H_ */
12371
12410
0 commit comments