Search found 25 matches

by plyatov
Thu Apr 03, 2014 4:50 pm
Forum: General Support
Topic: Threads synchronization by events
Replies: 4
Views: 1391

Threads synchronization by events

Hello dear all! Please help me, how to make a milti-threaded system, where two of threads should be synchronized, while other threads should be not disturbed. I see 2 possible solutions (maybe I'm wrong): 1) Thread1 makes data filtering and send Event1 or Event2 (depends from data values) to Thread2...
by plyatov
Thu Mar 06, 2014 7:26 am
Forum: General Support
Topic: small delays how to in a proper way
Replies: 2
Views: 1099

Re: small delays how to in a proper way

Thank you Giovanni!
by plyatov
Fri Feb 28, 2014 7:04 am
Forum: General Support
Topic: small delays how to in a proper way
Replies: 2
Views: 1099

small delays how to in a proper way

Dear all, please recommend me a proper way for creation of small delays in a range from 60ns up to 1.6ms inside of the driver function. I need to make delays , but do not want to use a "busy-waiting" style. Use of chThdSleepMicroseconds(1) gives 1ms delay at least instead of 1us, so this i...
by plyatov
Tue Feb 25, 2014 6:34 pm
Forum: Development and Feedback
Topic: BaseSequentialStream interface for custom character driver
Replies: 2
Views: 1126

Re: BaseSequentialStream interface for custom character driv

Thank you Giovanni! It was helpful :-) My current implementation works well. Sources below can be useful for other newbies like me. Please look at sources and comment - what is wrong or can be done better. lcd.h: /* ChibiOS/RT - Copyright (C) 2006-2013 Giovanni Di Sirio Licensed under the Apache Lic...
by plyatov
Tue Feb 25, 2014 12:43 pm
Forum: Development and Feedback
Topic: BaseSequentialStream interface for custom character driver
Replies: 2
Views: 1126

BaseSequentialStream interface for custom character driver

Dear all, Please suggest how to implement BaseSequentialStream interface for my custom LCD driver, which have very simple output function like below: void lcd_putc(char data) { // here is stuff whcih writes character onto the LCD } This function synchronously writes character into the LCD. I just ne...

Go to advanced search