diff Lib/mk20dx.h @ 186:50702debf278

Initial MatrixARM implementation - Cleaned up Macro and USB callback naming - Added security jumper for automated reload (MCHCK based only) - Added additional LED position
author Jacob Alexander <haata@kiibohd.com>
date Fri, 01 Aug 2014 01:26:25 -0700
parents 3420e018ffbc
children 6ac92b8614c0
line wrap: on
line diff
--- a/Lib/mk20dx.h	Sun Jul 27 23:15:41 2014 -0700
+++ b/Lib/mk20dx.h	Fri Aug 01 01:26:25 2014 -0700
@@ -57,7 +57,6 @@
 #include <stdint.h>
 
 // chapter 11: Port control and interrupts (PORT)
-#define PORTA_PCR0              *(volatile uint32_t *)0x40049000 // Pin Control Register n
 #define PORT_PCR_ISF			(uint32_t)0x01000000		// Interrupt Status Flag
 #define PORT_PCR_IRQC(n)		(uint32_t)(((n) & 15) << 16)	// Interrupt Configuration
 #define PORT_PCR_IRQC_MASK		(uint32_t)0x000F0000
@@ -70,6 +69,7 @@
 #define PORT_PCR_SRE			(uint32_t)0x00000004		// Slew Rate Enable
 #define PORT_PCR_PE			(uint32_t)0x00000002		// Pull Enable
 #define PORT_PCR_PS			(uint32_t)0x00000001		// Pull Select
+#define PORTA_PCR0              *(volatile uint32_t *)0x40049000 // Pin Control Register n
 #define PORTA_PCR1              *(volatile uint32_t *)0x40049004 // Pin Control Register n
 #define PORTA_PCR2              *(volatile uint32_t *)0x40049008 // Pin Control Register n
 #define PORTA_PCR3              *(volatile uint32_t *)0x4004900C // Pin Control Register n