Go Down

Topic: DuinOS: small and simple rtos (Read 51 times) previous topic - next topic

juliandasilva

Hi, regarding the onewire, please remember that currently, the delaymicroseconds does not work fine with DuinOS. That's the main problem, but I think you may use the CRITICAL_SECTIONS, and test. If it works, it's possible to make a "thread safe OneWire library". Sorry, but we currently haven't got onewire hardware to test.

Regards and thanks,
Julián
http://robotgroup.com.ar

Chumbud

I can tell you it is a RAM issue causing the ATmega168 not to be able to use serial output.  As a test, changing configTOTAL_HEAP_SIZE in FreeRTOSConfig.h to 500 allowed it to work.

juliandasilva

Good! So I think it must be the default heap size when using the 168. Annotated for the v0.2 version too.

gwen

#48
Nov 22, 2009, 07:47 pm Last Edit: Nov 22, 2009, 08:10 pm by gwen Reason: 1
Hi Julian,
   found the taskENTER_CRITICAL/portENTER_CRITICAL and the exit macros grepping through the source but unclear about how to include into my test program.
A simple #include <DuinOS/task.h> doesnt seem to be found..

unsure of the correct path here(I am on OSX)


   gwen

Chumbud

You just need #include "DuinOS.h", that header will include task.h.  I'm also on OS X.


Go Up