#ifndef _MKL26Z4_H_
#define _MKL26Z4_H_ /**< Symbol preventing repeated inclusion */
+#include <stdint.h>
+
/** Memory map major version (memory maps with equal major version number are
* compatible) */
#define MCU_MEM_MAP_VERSION 0x0100U
#define __NVIC_PRIO_BITS 2 /**< Number of priority bits implemented in the NVIC */
#define __Vendor_SysTickConfig 0 /**< Vendor specific implementation of SysTickConfig is defined */
-#include "core_cm0plus.h" /* Core Peripheral Access Layer */
-#include "system_MKL26Z4.h" /* Device specific configuration file */
+static inline
+uint32_t __get_PRIMASK (void)
+{
+ uint32_t result;
+
+ asm volatile ("MRS %0, primask" : "=r" (result) :: "memory");
+ return(result);
+}
+
+static inline
+void __set_PRIMASK (uint32_t priMask)
+{
+ asm volatile ("MSR primask, %0" : : "r" (priMask) : "memory");
+}
/*!
* @}
#error Not supported compiler type
#endif
+#ifndef __I
+# define __I volatile
+#endif
+
+#ifndef __O
+# define __O volatile
+#endif
+
+#ifndef __IO
+# define __IO volatile
+#endif
+
/* ----------------------------------------------------------------------------
-- ADC Peripheral Access Layer
---------------------------------------------------------------------------- */