FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [November 2008 Threads] freertos for pic30f6014APosted by savas takan on November 21, 2008 I am updating source code for freertos but I have some error,I don't understand why I got these error,please help me ( freerots wrote for p33FJ256GP710,I want to modify for p30f6014A ) problem is :
port.c: In function 'prvSetupTimerInterrupt': port.c:277: error: 'TCON_16BIT' has no member named 'TCKPS0' port.c:278: error: 'TCON_16BIT' has no member named 'TCKPS1'
funciton is :
/* * Setup a timer for a regular tick. */
static void prvSetupTimerInterrupt( void ) { const unsigned portLONG ulCompareMatch = ( configCPU_CLOCK_HZ / portTIMER_PRESCALE ) / configTICK_RATE_HZ;
/* Prescale of 8. */ T1CON = 0; TMR1 = 0;
PR1 = ( unsigned portSHORT ) ulCompareMatch;
/* Setup timer 1 interrupt priority. */ IPC0bits.T1IP = configKERNEL_INTERRUPT_PRIORITY;
/* Clear the interrupt as a starting condition. */ IFS0bits.T1IF = 0;
/* Enable the interrupt. */ IEC0bits.T1IE = 1;
/* Setup the prescale value. */ T1CONbits.TCKPS0 = 1; T1CONbits.TCKPS1 = 0;
/* Start the timer. */ T1CONbits.TON = 1; }
RE: freertos for pic30f6014APosted by MEdwards on November 21, 2008 You will have to look into the header files and data sheet for the p30f6014A to see what the differences are in the timer peripheral. You just need to set up the timer to generate the tick.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|