Gast
#712418
Kann jemand mit einer Anpassung von FreeRTOS an den ATMega644 helfen (d.h. die notwendigen Änderungen in der Datei port.c, aufbauend auf der Version für den ATMega32)? Bzgl. der Anpassung des Timer-Codes haber ich untenstehenden Vorschlag gefunden, aber das scheint nicht alles zu sein. Das Programm hängt. Der 644 soll einen Programm-Counter mit 3 Bytes haben? ------------------------------------------------------------------------ -------------- #define portFLAGS_INT_ENABLED ( ( portSTACK_TYPE ) 0x80 ) #define portCLEAR_COUNTER_ON_MATCH ( ( unsigned portCHAR ) 0x08 ) #define portPRESCALE_64 ( ( unsigned portCHAR ) 0x05 ) #define portCLOCK_PRESCALER ( ( unsigned portLONG ) 64 ) #define portCOMPARE_MATCH_A_INTERRUPT_ENABLE ( ( unsigned portCHAR ) 0x02 ) static void prvTimerInterrupt( void ) /* Enable the interrupt - this is okay as interrupt are currently globally disabled. */ ucLowByte = TIMSK1; ucLowByte |= portCOMPARE_MATCH_A_INTERRUPT_ENABLE; TIMSK1 = ucLowByte; ------------------------------------------------------------------------ --------------