Difference between revisions of "Freertos posix Development"

From OpenCircuits
Jump to navigation Jump to search
(Created page with 'This wiki describes the development of freertos_posix - a POSIX wrapper for [http://www.freertos.org/ FreeRTOS]. The wrapper has been used for deploying the [[DsPIC30F 5011 Devel…')
 
Line 1: Line 1:
This wiki describes the development of freertos_posix - a POSIX wrapper for [http://www.freertos.org/ FreeRTOS]. The wrapper has been used for deploying the [[DsPIC30F 5011 Development Board dsPic33 development board]].
+
This wiki describes the development of freertos_posix - a POSIX wrapper for [http://www.freertos.org/ FreeRTOS]. The wrapper has been used for deploying the [[DsPIC30F 5011 Development Board | dsPic33 development board]].
 
 
==Source Code==
 
*Repository: http://chungyan5.no-ip.org/vc/?root=freertos_posix
 
 
 
  
 
==Architecture==
 
==Architecture==
Line 9: Line 5:
  
  
==POSIX Threads Scheduler==
+
==Source Code==
 +
*The most up-to-date development can be found at repository [http://chungyan5.no-ip.org/vc/?root=freertos_posix freertos_posix]
  
===FreeRTOS Task===
 
*to be added
 
  
 
+
==POSIX Threads Scheduler==
===Simon Tatham Coroutine Threads===
+
*The task scheduler is based on [http://www.freertos.org/ FreeRTOS] incorporating coroutine developed by [http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html Simon Tatham]. The scheduler API is wrapped by the [http://www.die.net/doc/linux/man/man2/ POSIX] Thread API.
*to be added
+
**e.g. pthread_create(), usleep(), etc.
  
  
 
==POSIX Driver Development==
 
==POSIX Driver Development==
 +
*Software drivers are developed to allow users at Application Level to use the hardware (e.g. ADC, DAC, UART, NVM etc) through the [http://www.die.net/doc/linux/man/man2/ POSIX] System call API.
 +
**e.g. open(), write(), read(), ioctl(), lseek(), etc.
 
*An example of how to develop drivers for Microchip dsPic33 devices can be found [[Programming Tips | here]]
 
*An example of how to develop drivers for Microchip dsPic33 devices can be found [[Programming Tips | here]]
  

Revision as of 00:50, 31 August 2009

This wiki describes the development of freertos_posix - a POSIX wrapper for FreeRTOS. The wrapper has been used for deploying the dsPic33 development board.

Architecture

  • Refer to software architecture from here


Source Code

  • The most up-to-date development can be found at repository freertos_posix


POSIX Threads Scheduler

  • The task scheduler is based on FreeRTOS incorporating coroutine developed by Simon Tatham. The scheduler API is wrapped by the POSIX Thread API.
    • e.g. pthread_create(), usleep(), etc.


POSIX Driver Development

  • Software drivers are developed to allow users at Application Level to use the hardware (e.g. ADC, DAC, UART, NVM etc) through the POSIX System call API.
    • e.g. open(), write(), read(), ioctl(), lseek(), etc.
  • An example of how to develop drivers for Microchip dsPic33 devices can be found here


Power Management

  • to be added