Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

Is valid to modify the port file?

Posted by Marcelo Adrian Lorenzati Sanz on May 26, 2008
Is valid for FreeRtoS project to modify the port.c file?

I'm using at the moment the PIC18F port.
I'm asking that because I have developments that needs a different SW/HW config and the provided for the port assumes that I need to use Serial communication and the CCP1 for Tick generation.
If I want to use as example Timer 0 for Tick generation and no serial com (e.g.:maybe I need the pins for other stuff) is licit to modify it? or there's a way to get around it?

Best Regards.

RE: Is valid to modify the port file?

Posted by Richard on May 26, 2008
You have the source code so you can do as you wish. Ideally the port layer would remain untouched, but this is not always realistic. You could make prvSetupTimerInterrupt() a callback function into the application so the application decides how the tick is to be generated.

Regards.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS