Search found 6 matches

by xiaomin
Tue Oct 30, 2018 8:38 pm
Forum: ChibiOS/RT
Topic: To clear event(s) of another thread
Replies: 3
Views: 2273

To clear event(s) of another thread

chibi RT provides API to clear event in current task with chEvtGetAndClearEvents(eventmask_t). Now what I need is to clear event(s) of another thread. Suppose I know the thread reference, it seems I can just lock and directly manipulate thd->epending &= ~event. But is it safe? Shall I check thre...
by xiaomin
Thu Oct 18, 2018 7:37 pm
Forum: Bug Reports
Topic: Confusing document about wa size when creating thread Topic is solved
Replies: 1
Views: 1572

Confusing document about wa size when creating thread Topic is solved

file: chdynamic.c; function: chThdCreateFromHeap file: chthreads.c; function: chThdCreateStatic When creating static thread, the stack size is defined in THD_WORKING_AREA macro (chthreads.h). Apparently the size here is stack size. static THD_WORKING_AREA(xxx_thd_wa, 1000 ); chThdCreateStatic (xxx_t...
by xiaomin
Tue Aug 22, 2017 6:45 pm
Forum: General Support
Topic: Problem installing board generator
Replies: 2
Views: 1916

Re: Problem installing board generator

Oh, I am playing with Neon right now. Got it. Thanks!
by xiaomin
Mon Aug 21, 2017 5:50 pm
Forum: General Support
Topic: Problem installing board generator
Replies: 2
Views: 1916

Problem installing board generator

Hi, experts, I need a little help on board generator plug-in installation. I use board generator on ChibiStudio on Windows with no problem. Now I move to Linux. I followed an instruction I found by google to install chibi plug-in for eclipse, shows as below. 1. Open eclipse, go Help, install new sof...
by xiaomin
Fri Aug 18, 2017 7:23 pm
Forum: General Support
Topic: OSAL way to wait for an event?
Replies: 2
Views: 1723

Re: OSAL way to wait for an event?

Thanks.
by xiaomin
Fri Aug 18, 2017 5:23 pm
Forum: General Support
Topic: OSAL way to wait for an event?
Replies: 2
Views: 1723

OSAL way to wait for an event?

I really like all the hal uses osal way to handle all things, so hal can work on "any" os platform. Like in uart / can hal driver, hal_lld will use osalEventBroadcastFlagsI to broadcast an event when an isr fires. I also want to write my application in osal way so it can be also easily mov...

Go to advanced search