File tree Expand file tree Collapse file tree 24 files changed +48
-96
lines changed
mzero/Bootloader_D21/src/ASF/sam0/utils/cmsis/samd21/include
sofia/Bootloader_D21_Sofia_V2.1/src/ASF/sam0/utils/cmsis/samd21/include Expand file tree Collapse file tree 24 files changed +48
-96
lines changed Original file line number Diff line number Diff line change @@ -218,10 +218,8 @@ void I2S_Handler ( void );
218
218
* \brief Configuration of the Cortex-M0+ Processor and Core Peripherals
219
219
*/
220
220
221
- #if defined(LITTLE_ENDIAN ) && (LITTLE_ENDIAN != 1 )
222
- #error "Little Endian is already defined, but to different value than expected?!"
223
- #else
224
- #define LITTLE_ENDIAN 1
221
+ #if !defined(LITTLE_ENDIAN ) || (LITTLE_ENDIAN != 1 )
222
+ #error "Little Endian is not already defined, or defined to a value other than 1?!"
225
223
#endif
226
224
#define __CM0PLUS_REV 1 /*!< Core revision r0p1 */
227
225
#define __MPU_PRESENT 0 /*!< MPU present or not */
Original file line number Diff line number Diff line change @@ -218,10 +218,8 @@ void I2S_Handler ( void );
218
218
* \brief Configuration of the Cortex-M0+ Processor and Core Peripherals
219
219
*/
220
220
221
- #if defined(LITTLE_ENDIAN ) && (LITTLE_ENDIAN != 1 )
222
- #error "Little Endian is already defined, but to different value than expected?!"
223
- #else
224
- #define LITTLE_ENDIAN 1
221
+ #if !defined(LITTLE_ENDIAN ) || (LITTLE_ENDIAN != 1 )
222
+ #error "Little Endian is not already defined, or defined to a value other than 1?!"
225
223
#endif
226
224
#define __CM0PLUS_REV 1 /*!< Core revision r0p1 */
227
225
#define __MPU_PRESENT 0 /*!< MPU present or not */
Original file line number Diff line number Diff line change @@ -218,10 +218,8 @@ void I2S_Handler ( void );
218
218
* \brief Configuration of the Cortex-M0+ Processor and Core Peripherals
219
219
*/
220
220
221
- #if defined(LITTLE_ENDIAN ) && (LITTLE_ENDIAN != 1 )
222
- #error "Little Endian is already defined, but to different value than expected?!"
223
- #else
224
- #define LITTLE_ENDIAN 1
221
+ #if !defined(LITTLE_ENDIAN ) || (LITTLE_ENDIAN != 1 )
222
+ #error "Little Endian is not already defined, or defined to a value other than 1?!"
225
223
#endif
226
224
#define __CM0PLUS_REV 1 /*!< Core revision r0p1 */
227
225
#define __MPU_PRESENT 0 /*!< MPU present or not */
Original file line number Diff line number Diff line change @@ -218,10 +218,8 @@ void I2S_Handler ( void );
218
218
* \brief Configuration of the Cortex-M0+ Processor and Core Peripherals
219
219
*/
220
220
221
- #if defined(LITTLE_ENDIAN ) && (LITTLE_ENDIAN != 1 )
222
- #error "Little Endian is already defined, but to different value than expected?!"
223
- #else
224
- #define LITTLE_ENDIAN 1
221
+ #if !defined(LITTLE_ENDIAN ) || (LITTLE_ENDIAN != 1 )
222
+ #error "Little Endian is not already defined, or defined to a value other than 1?!"
225
223
#endif
226
224
#define __CM0PLUS_REV 1 /*!< Core revision r0p1 */
227
225
#define __MPU_PRESENT 0 /*!< MPU present or not */
Original file line number Diff line number Diff line change @@ -222,10 +222,8 @@ void I2S_Handler ( void );
222
222
* \brief Configuration of the Cortex-M0+ Processor and Core Peripherals
223
223
*/
224
224
225
- #if defined(LITTLE_ENDIAN ) && (LITTLE_ENDIAN != 1 )
226
- #error "Little Endian is already defined, but to different value than expected?!"
227
- #else
228
- #define LITTLE_ENDIAN 1
225
+ #if !defined(LITTLE_ENDIAN ) || (LITTLE_ENDIAN != 1 )
226
+ #error "Little Endian is not already defined, or defined to a value other than 1?!"
229
227
#endif
230
228
#define __CM0PLUS_REV 1 /*!< Core revision r0p1 */
231
229
#define __MPU_PRESENT 0 /*!< MPU present or not */
Original file line number Diff line number Diff line change @@ -222,10 +222,8 @@ void I2S_Handler ( void );
222
222
* \brief Configuration of the Cortex-M0+ Processor and Core Peripherals
223
223
*/
224
224
225
- #if defined(LITTLE_ENDIAN ) && (LITTLE_ENDIAN != 1 )
226
- #error "Little Endian is already defined, but to different value than expected?!"
227
- #else
228
- #define LITTLE_ENDIAN 1
225
+ #if !defined(LITTLE_ENDIAN ) || (LITTLE_ENDIAN != 1 )
226
+ #error "Little Endian is not already defined, or defined to a value other than 1?!"
229
227
#endif
230
228
#define __CM0PLUS_REV 1 /*!< Core revision r0p1 */
231
229
#define __MPU_PRESENT 0 /*!< MPU present or not */
Original file line number Diff line number Diff line change @@ -222,10 +222,8 @@ void I2S_Handler ( void );
222
222
* \brief Configuration of the Cortex-M0+ Processor and Core Peripherals
223
223
*/
224
224
225
- #if defined(LITTLE_ENDIAN ) && (LITTLE_ENDIAN != 1 )
226
- #error "Little Endian is already defined, but to different value than expected?!"
227
- #else
228
- #define LITTLE_ENDIAN 1
225
+ #if !defined(LITTLE_ENDIAN ) || (LITTLE_ENDIAN != 1 )
226
+ #error "Little Endian is not already defined, or defined to a value other than 1?!"
229
227
#endif
230
228
#define __CM0PLUS_REV 1 /*!< Core revision r0p1 */
231
229
#define __MPU_PRESENT 0 /*!< MPU present or not */
Original file line number Diff line number Diff line change @@ -222,10 +222,8 @@ void I2S_Handler ( void );
222
222
* \brief Configuration of the Cortex-M0+ Processor and Core Peripherals
223
223
*/
224
224
225
- #if defined(LITTLE_ENDIAN ) && (LITTLE_ENDIAN != 1 )
226
- #error "Little Endian is already defined, but to different value than expected?!"
227
- #else
228
- #define LITTLE_ENDIAN 1
225
+ #if !defined(LITTLE_ENDIAN ) || (LITTLE_ENDIAN != 1 )
226
+ #error "Little Endian is not already defined, or defined to a value other than 1?!"
229
227
#endif
230
228
#define __CM0PLUS_REV 1 /*!< Core revision r0p1 */
231
229
#define __MPU_PRESENT 0 /*!< MPU present or not */
Original file line number Diff line number Diff line change @@ -226,10 +226,8 @@ void I2S_Handler ( void );
226
226
* \brief Configuration of the Cortex-M0+ Processor and Core Peripherals
227
227
*/
228
228
229
- #if defined(LITTLE_ENDIAN ) && (LITTLE_ENDIAN != 1 )
230
- #error "Little Endian is already defined, but to different value than expected?!"
231
- #else
232
- #define LITTLE_ENDIAN 1
229
+ #if !defined(LITTLE_ENDIAN ) || (LITTLE_ENDIAN != 1 )
230
+ #error "Little Endian is not already defined, or defined to a value other than 1?!"
233
231
#endif
234
232
#define __CM0PLUS_REV 1 /*!< Core revision r0p1 */
235
233
#define __MPU_PRESENT 0 /*!< MPU present or not */
Original file line number Diff line number Diff line change @@ -226,10 +226,8 @@ void I2S_Handler ( void );
226
226
* \brief Configuration of the Cortex-M0+ Processor and Core Peripherals
227
227
*/
228
228
229
- #if defined(LITTLE_ENDIAN ) && (LITTLE_ENDIAN != 1 )
230
- #error "Little Endian is already defined, but to different value than expected?!"
231
- #else
232
- #define LITTLE_ENDIAN 1
229
+ #if !defined(LITTLE_ENDIAN ) || (LITTLE_ENDIAN != 1 )
230
+ #error "Little Endian is not already defined, or defined to a value other than 1?!"
233
231
#endif
234
232
#define __CM0PLUS_REV 1 /*!< Core revision r0p1 */
235
233
#define __MPU_PRESENT 0 /*!< MPU present or not */
You can’t perform that action at this time.
0 commit comments