aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/AVR/atmega_pins.h
diff options
context:
space:
mode:
authorutzig <utzig@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-06-27 15:09:06 +0000
committerutzig <utzig@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-06-27 15:09:06 +0000
commit1076c100ced4eb5b378c50754d1d83eaef37d334 (patch)
tree07e004e6af282bee602bdc63987667dd3bece278 /os/hal/platforms/AVR/atmega_pins.h
parent1a100c442a84fd82ac3836b0baa1667580ab9d67 (diff)
downloadChibiOS-1076c100ced4eb5b378c50754d1d83eaef37d334.tar.gz
ChibiOS-1076c100ced4eb5b378c50754d1d83eaef37d334.tar.bz2
ChibiOS-1076c100ced4eb5b378c50754d1d83eaef37d334.zip
Fixes style of AVR HAL
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5900 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/AVR/atmega_pins.h')
-rw-r--r--os/hal/platforms/AVR/atmega_pins.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/os/hal/platforms/AVR/atmega_pins.h b/os/hal/platforms/AVR/atmega_pins.h
index bf2479b34..498d16cbb 100644
--- a/os/hal/platforms/AVR/atmega_pins.h
+++ b/os/hal/platforms/AVR/atmega_pins.h
@@ -1,19 +1,19 @@
-
-#include <avr/io.h>
#ifndef ATMEGA_PINS_H
#define ATMEGA_PINS_H
+#include <avr/io.h>
+
#if defined(__AVR_ATmega644__) || defined(__AVR_ATmega644P__)
#define PINADC PINA
#define PORTADC PORTA
#define DDRADC DDRA
- #define PIN_SPI1 PINB
- #define PORT_SPI1 PORTB
- #define DDR_SPI1 DDRB
+ #define PIN_SPI1 PINB
+ #define PORT_SPI1 PORTB
+ #define DDR_SPI1 DDRB
#define SPI1_SS 4
- #define SPI1_SCK 7
- #define SPI1_MOSI 5
- #define SPI1_MISO 6
+ #define SPI1_SCK 7
+ #define SPI1_MOSI 5
+ #define SPI1_MISO 6
#elif defined(__AVR_ATmega328P__)
#define PINADC PINC
@@ -27,7 +27,7 @@
#define SPI1_MOSI 3
#define SPI1_MISO 4
- #elif defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega128__)
+ #elif defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega128__)
#define PINADC PINF
#define PORTADC PORTF
#define DDRADC DDRF
@@ -39,7 +39,7 @@
#define SPI1_MOSI 2
#define SPI1_MISO 3
#else
- #warning "Device not supported by ADC or SPI driver"
+ #warning "Device not supported by ADC or SPI driver"
#endif
#endif