McHCK now working with UART.
- Lots of code cleanup for the intialization of all arm chips - Added more gcc flags to help with debugging linker and memory map - Fixed UART initialization for the smaller MCHCK mk20dx128 (different pin mux)
This commit is contained in:
parent
0365d517fe
commit
f9e1600b28
6 changed files with 429 additions and 367 deletions
9
main.c
9
main.c
|
@ -66,7 +66,7 @@ volatile uint8_t sendKeypresses = 0;
|
|||
// ----- Functions -----
|
||||
|
||||
// Initial Pin Setup, make sure they are sane
|
||||
inline void pinSetup(void)
|
||||
inline void pinSetup()
|
||||
{
|
||||
|
||||
// AVR
|
||||
|
@ -100,7 +100,7 @@ inline void pinSetup(void)
|
|||
}
|
||||
|
||||
|
||||
inline void usbTimerSetup(void)
|
||||
inline void usbTimerSetup()
|
||||
{
|
||||
// AVR
|
||||
#if defined(_at90usb162_) || defined(_atmega32u4_) || defined(_at90usb646_) || defined(_at90usb1286_)
|
||||
|
@ -134,8 +134,7 @@ inline void usbTimerSetup(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
|
||||
int main(void)
|
||||
int main()
|
||||
{
|
||||
// Configuring Pins
|
||||
pinSetup();
|
||||
|
@ -185,7 +184,7 @@ int main(void)
|
|||
#if defined(_at90usb162_) || defined(_atmega32u4_) || defined(_at90usb646_) || defined(_at90usb1286_) // AVR
|
||||
ISR( TIMER0_OVF_vect )
|
||||
#elif defined(_mk20dx128_) || defined(_mk20dx128vlf5_) || defined(_mk20dx256_) // ARM
|
||||
void pit0_isr(void)
|
||||
void pit0_isr()
|
||||
#endif
|
||||
{
|
||||
sendKeypressCounter++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue