Fixed IAR embedded workbench atmega168 project by allocating more CSTACK space. Simplified the iar/gcc compatibility.

This commit is contained in:
skarg
2008-03-25 22:14:38 +00:00
parent a174b9bf59
commit 919f4b67bd
6 changed files with 115 additions and 23 deletions
-6
View File
@@ -71,13 +71,7 @@ void Timer_Initialize(
/* Timer interupt */
/* note: Global interupts must be enabled - sei() */
/* Timer Overflowed! Increment the time. */
#if defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ASM__)
#pragma vector=TIMER0_OVF_vect
__interrupt void myTIMER0_OVF_vect(
)
#else
ISR(TIMER0_OVF_vect)
#endif
{
/* Set the counter for the next interrupt */
TCNT0 = TIMER_COUNT;