Mercurial > louis > kiibohd-controller
comparison main.c @ 341:66eccdd9ced5
Code cleanup
- Changing header file ifndef define to pragma once's
- Removed duplicate output_com.h's
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Sun, 14 Jun 2015 13:56:56 -0700 |
parents | e8841d3c6db5 |
children | b29c291ad130 |
comparison
equal
deleted
inserted
replaced
340:e8841d3c6db5 | 341:66eccdd9ced5 |
---|---|
38 | 38 |
39 // ----- Functions ----- | 39 // ----- Functions ----- |
40 | 40 |
41 int main() | 41 int main() |
42 { | 42 { |
43 /* | |
44 GPIOA_PDDR |= (1<<5); | |
45 // Setup pin - A5 - See Lib/pin_map.mchck for more details on pins | |
46 PORTA_PCR5 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1); | |
47 while( 1 ) | |
48 { | |
49 GPIOA_PTOR |= (1<<5); | |
50 for (uint32_t d = 0; d < 720000; d++ ); | |
51 } | |
52 */ | |
53 | |
54 // AVR - Teensy Set Clock speed to 16 MHz | 43 // AVR - Teensy Set Clock speed to 16 MHz |
55 #if defined(_at90usb162_) || defined(_atmega32u4_) || defined(_at90usb646_) || defined(_at90usb1286_) | 44 #if defined(_at90usb162_) || defined(_atmega32u4_) || defined(_at90usb646_) || defined(_at90usb1286_) |
56 CLKPR = 0x80; | 45 CLKPR = 0x80; |
57 CLKPR = 0x00; | 46 CLKPR = 0x00; |
58 #endif | 47 #endif |