1 /*
2 
3 Copyright (c) 2010 - 2025, Nordic Semiconductor ASA All rights reserved.
4 
5 SPDX-License-Identifier: BSD-3-Clause
6 
7 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions are met:
9 
10 1. Redistributions of source code must retain the above copyright notice, this
11    list of conditions and the following disclaimer.
12 
13 2. Redistributions in binary form must reproduce the above copyright
14    notice, this list of conditions and the following disclaimer in the
15    documentation and/or other materials provided with the distribution.
16 
17 3. Neither the name of Nordic Semiconductor ASA nor the names of its
18    contributors may be used to endorse or promote products derived from this
19    software without specific prior written permission.
20 
21 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE
24 ARE DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
25 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 POSSIBILITY OF SUCH DAMAGE.
32 
33 */
34 
35 #ifndef NRF52840_NAME_CHANGE_H
36 #define NRF52840_NAME_CHANGE_H
37 
38 /*lint ++flb "Enter library region */
39 
40 /* This file is given to prevent your SW from not compiling with the updates made to nrf52840.h and
41  * nrf52840_bitfields.h. The macros defined in this file were available previously. Do not use these
42  * macros on purpose. Use the ones defined in nrf52810.h and nrf52810_bitfields.h instead.
43  */
44 
45 /* IRQ */
46 /* Some IRQns have changed name. */
47 #ifndef POWER_CLOCK_IRQn
48     #define POWER_CLOCK_IRQn                                CLOCK_POWER_IRQn
49 #endif
50 #ifndef UARTE0_UART0_IRQn
51     #define UARTE0_UART0_IRQn                               UART0_UARTE0_IRQn
52 #endif
53 #ifndef SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn
54     #define SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn          SPI0_SPIM0_SPIS0_TWI0_TWIM0_TWIS0_IRQn
55 #endif
56 #ifndef SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQn
57     #define SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQn          SPI1_SPIM1_SPIS1_TWI1_TWIM1_TWIS1_IRQn
58 #endif
59 #ifndef CCM_AAR_IRQn
60     #define CCM_AAR_IRQn                                    AAR_CCM_IRQn
61 #endif
62 #ifndef SPIM2_SPIS2_SPI2_IRQn
63     #define SPIM2_SPIS2_SPI2_IRQn                           SPI2_SPIM2_SPIS2_IRQn
64 #endif
65 #ifndef SWI0_EGU0_IRQn
66     #define SWI0_EGU0_IRQn                                  EGU0_SWI0_IRQn
67 #endif
68 #ifndef SWI1_EGU1_IRQn
69     #define SWI1_EGU1_IRQn                                  EGU1_SWI1_IRQn
70 #endif
71 #ifndef SWI2_EGU2_IRQn
72     #define SWI2_EGU2_IRQn                                  EGU2_SWI2_IRQn
73 #endif
74 #ifndef SWI3_EGU3_IRQn
75     #define SWI3_EGU3_IRQn                                  EGU3_SWI3_IRQn
76 #endif
77 #ifndef SWI4_EGU4_IRQn
78     #define SWI4_EGU4_IRQn                                  EGU4_SWI4_IRQn
79 #endif
80 #ifndef SWI5_EGU5_IRQn
81     #define SWI5_EGU5_IRQn                                  EGU5_SWI5_IRQn
82 #endif
83 
84 /* Some IRQHandlers have changed name. */
85 #ifndef POWER_CLOCK_IRQHandler
86     #define POWER_CLOCK_IRQHandler                                CLOCK_POWER_IRQHandler
87 #endif
88 #ifndef UARTE0_UART0_IRQHandler
89     #define UARTE0_UART0_IRQHandler                               UART0_UARTE0_IRQHandler
90 #endif
91 #ifndef SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
92     #define SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler          SPI0_SPIM0_SPIS0_TWI0_TWIM0_TWIS0_IRQHandler
93 #endif
94 #ifndef SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
95     #define SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler          SPI1_SPIM1_SPIS1_TWI1_TWIM1_TWIS1_IRQHandler
96 #endif
97 #ifndef CCM_AAR_IRQHandler
98     #define CCM_AAR_IRQHandler                                    AAR_CCM_IRQHandler
99 #endif
100 #ifndef SPIM2_SPIS2_SPI2_IRQHandler
101     #define SPIM2_SPIS2_SPI2_IRQHandler                           SPI2_SPIM2_SPIS2_IRQHandler
102 #endif
103 #ifndef SWI0_EGU0_IRQHandler
104     #define SWI0_EGU0_IRQHandler                                  EGU0_SWI0_IRQHandler
105 #endif
106 #ifndef SWI1_EGU1_IRQHandler
107     #define SWI1_EGU1_IRQHandler                                  EGU1_SWI1_IRQHandler
108 #endif
109 #ifndef SWI2_EGU2_IRQHandler
110     #define SWI2_EGU2_IRQHandler                                  EGU2_SWI2_IRQHandler
111 #endif
112 #ifndef SWI3_EGU3_IRQHandler
113     #define SWI3_EGU3_IRQHandler                                  EGU3_SWI3_IRQHandler
114 #endif
115 #ifndef SWI4_EGU4_IRQHandler
116     #define SWI4_EGU4_IRQHandler                                  EGU4_SWI4_IRQHandler
117 #endif
118 #ifndef SWI5_EGU5_IRQHandler
119     #define SWI5_EGU5_IRQHandler                                  EGU5_SWI5_IRQHandler
120 #endif
121 
122 
123 /* CC_HOST_RGF */
124 /* Enumerated Value Debug was renamed to DebugEnable in register HOST_IOT. */
125 #define  CC_HOST_RGF_HOST_IOT_LCS_LCS_Debug  CC_HOST_RGF_HOST_IOT_LCS_LCS_DebugEnable
126 
127  /*lint --flb "Leave library region" */
128 
129 #endif /* NRF52840_NAME_CHANGE_H */
130