Initial MatrixARM implementation
- Cleaned up Macro and USB callback naming - Added security jumper for automated reload (MCHCK based only) - Added additional LED position
This commit is contained in:
parent
c1f8a2c545
commit
d6345c307f
16 changed files with 706 additions and 54 deletions
|
@ -53,11 +53,19 @@ inline void init_errorLED()
|
|||
// MCHCK
|
||||
#elif defined(_mk20dx128vlf5_)
|
||||
|
||||
/* Actual MCHCK
|
||||
// Enable pin
|
||||
GPIOB_PDDR |= (1<<16);
|
||||
|
||||
// Setup pin - B16 - See Lib/pin_map.mchck for more details on pins
|
||||
PORTB_PCR16 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
|
||||
*/
|
||||
// Kiibohd MCHCK Variant
|
||||
// Enable pin
|
||||
GPIOA_PDDR |= (1<<19);
|
||||
|
||||
// Setup pin - A19 - See Lib/pin_map.mchck for more details on pins
|
||||
PORTA_PCR19 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
|
||||
|
||||
#endif
|
||||
}
|
||||
|
@ -92,6 +100,7 @@ inline void errorLED( uint8_t on )
|
|||
// MCHCK
|
||||
#elif defined(_mk20dx128vlf5_)
|
||||
|
||||
/* Actual MCHCK
|
||||
// Error LED On (B16)
|
||||
if ( on ) {
|
||||
GPIOB_PSOR |= (1<<16);
|
||||
|
@ -100,6 +109,16 @@ inline void errorLED( uint8_t on )
|
|||
else {
|
||||
GPIOB_PCOR |= (1<<16);
|
||||
}
|
||||
*/
|
||||
// Kiibohd MCHCK Variant
|
||||
// Error LED On (A19)
|
||||
if ( on ) {
|
||||
GPIOA_PSOR |= (1<<19);
|
||||
}
|
||||
// Error LED Off
|
||||
else {
|
||||
GPIOA_PCOR |= (1<<19);
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue