aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/AVR/hal_lld.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/hal_lld.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/hal_lld.h')
-rw-r--r--os/hal/platforms/AVR/hal_lld.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/os/hal/platforms/AVR/hal_lld.h b/os/hal/platforms/AVR/hal_lld.h
index d2dae48bd..1dfb5edc9 100644
--- a/os/hal/platforms/AVR/hal_lld.h
+++ b/os/hal/platforms/AVR/hal_lld.h
@@ -50,13 +50,13 @@
/* Work out what the timer interrupt is called on this MCU */
#ifdef TIMER0_COMPA_vect
- #define AVR_TIMER_VECT TIMER0_COMPA_vect
+ #define AVR_TIMER_VECT TIMER0_COMPA_vect
#elif defined(TIMER_COMPA_vect)
- #define AVR_TIMER_VECT TIMER_COMPA_vect
+ #define AVR_TIMER_VECT TIMER_COMPA_vect
#elif defined(TIMER0_COMP_vect)
- #define AVR_TIMER_VECT TIMER0_COMP_vect
+ #define AVR_TIMER_VECT TIMER0_COMP_vect
#else
- #error "Cannot find interrupt vector name for timer"
+ #error "Cannot find interrupt vector name for timer"
#endif
/*===========================================================================*/
@@ -83,12 +83,12 @@
#error "Frequency too low for timer, please set CH_FREQUENCY to a higher value"
#endif
-#define AVR_TIMER_COUNTER F_CPU / CH_FREQUENCY / AVR_TIMER_PRESCALER
+#define AVR_TIMER_COUNTER (F_CPU / CH_FREQUENCY / AVR_TIMER_PRESCALER)
/* Test if CH_FREQUENCY can be matched exactly using this timer */
#define F_CPU_ (AVR_TIMER_COUNTER * AVR_TIMER_PRESCALER * CH_FREQUENCY)
#if (F_CPU_ != F_CPU)
- #warning "CH_FREQUENCY cannot be generated exactly using timer"
+ #warning "CH_FREQUENCY cannot be generated exactly using timer"
#endif
#undef F_CPU_