diff options
author | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-03-25 11:47:59 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-03-25 11:47:59 +0100 |
commit | dc6c6c49bf334cc2aaa6a948ec815a07626b7a70 (patch) | |
tree | dd5e0c73cd408e9879747a3ce32e1d9db70b33f0 /Source/portable/SDCC/PIC18/port.c | |
parent | bbdc1ffe544681c076dafc23f0956d4ca84a97ee (diff) | |
download | freertos-dc6c6c49bf334cc2aaa6a948ec815a07626b7a70.tar.gz freertos-dc6c6c49bf334cc2aaa6a948ec815a07626b7a70.tar.bz2 freertos-dc6c6c49bf334cc2aaa6a948ec815a07626b7a70.tar.xz |
Start begining more FreeRTOS coding style compatible
Diffstat (limited to 'Source/portable/SDCC/PIC18/port.c')
-rw-r--r-- | Source/portable/SDCC/PIC18/port.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Source/portable/SDCC/PIC18/port.c b/Source/portable/SDCC/PIC18/port.c index 86c41127..1e363831 100644 --- a/Source/portable/SDCC/PIC18/port.c +++ b/Source/portable/SDCC/PIC18/port.c @@ -75,19 +75,11 @@ static void prvSetupTimerInterrupt(void); /* * Reload Value of timer0 when a tick occures. - * The configuration of timer0 done in prvSetupTimerInterrupt, gives users the - * possibility to be able to choose configTICK_RATE_HZ in the range - * [minHz;maxHz] - * minHz=configCPU_CLOCK_HZ/(portTIMER_FOSC_SCALE*65536) (76Hz values in FreeRTOSConfig.h) - * maxHz=configCPU_CLOCK_HZ/portTIMER_FOSC_SCALE (5MHz with values in FreeRTOSConfig.h) - * When MR0ReloadValue=0 (65536 increments) configTICK_RATE_HZ=76Hz (with respect to values in FreeRTOSConfig.h) - * When MR0ReloadValue=65535 (1 increment) configTICK_RATE_HZ=5MHz (with respect to values in FreeRTOSConfig.h) - * This implies the bellow linear relation between configTICK_RATE_HZ and TMR0ReloadValue - * TMR0ReloadValue=65536 - configCPU_CLOCK_HZ/(portTIMER_FOSC_SCALE*configTICK_RATE_HZ) + * The configuration of timer0 done in prvSetupTimerInterrupt,implies the bellow relation + * between configTICK_RATE_HZ and TMR0ReloadValue. */ const unsigned portSHORT TMR0ReloadValue=(65536 - configCPU_CLOCK_HZ/(configTICK_RATE_HZ*portTIMER_FOSC_SCALE)); - /* * ISR placed on the high priority vector. */ |