Search found 374 matches

by faisal
Wed Nov 07, 2018 1:42 am
Forum: Small Change Requests
Topic: Separate path variables for *conf.h files Topic is solved
Replies: 4
Views: 2770

Separate path variables for *conf.h files Topic is solved

I'm currently integrating ChibiOS into another framework, and it is evident that I need separate configuration paths for where to find chconf.h, halconf.h, and mcuconf.h . It makes sense too from a Chibi product offering standpoint since the OS and HAL are separate modules. Currently the makefiles (...
by faisal
Wed Oct 31, 2018 6:48 am
Forum: ChibiOS/RT
Topic: To clear event(s) of another thread
Replies: 3
Views: 2273

Re: To clear event(s) of another thread

Giovanni wrote:Hi,

It would be safe if done in a critical zone, so use chSysLock/Unlock.

Giovanni


Wouldn't one also need to preform a reschedule before exiting the critical zone?
by faisal
Mon Oct 29, 2018 5:18 am
Forum: ChibiOS/HAL
Topic: Inconsistent location of HAL driver object declaration
Replies: 3
Views: 1808

Re: Inconsistent location of HAL driver object declaration

Giovanni wrote:It is being moved at top level in new drivers, old drivers will be updated but it is not high priority.

Giovanni


Cool, so the new standard is to have the definition in the top level header file, with platform specific structure members included as macros defined in the lld driver?
by faisal
Mon Oct 29, 2018 2:43 am
Forum: ChibiOS/HAL
Topic: Inconsistent location of HAL driver object declaration
Replies: 3
Views: 1808

Inconsistent location of HAL driver object declaration

The HAL driver object is defined in either in the top level hal_xxx.h file, or the hal_xxx_lld.h file depending on the driver. There should be one consistent pattern across all drivers.
by faisal
Mon Oct 22, 2018 8:56 pm
Forum: General Support
Topic: newlib port for chibios
Replies: 6
Views: 4234

Re: newlib port for chibios

Do you have an example for this? I am reluctant to support this kind of things because it would depend on the library (newlib) and how the library is compiled (reentrant or not). Giovanni Not sure if it should be part of standard ChibiOS distribution. Perhaps part of the optional syscalls, and have...
by faisal
Mon Oct 22, 2018 7:36 pm
Forum: General Support
Topic: newlib port for chibios
Replies: 6
Views: 4234

Re: newlib port for chibios

Hi, It is not something we control, the compiler maintainers have to decide this. Consider that supporting that "impure pointer" thing would slow down the system and a multithreaded lib is not necessarily useful for everybody and larger. Giovanni Going thru the exercise right now, it's no...
by faisal
Mon Oct 22, 2018 5:13 pm
Forum: Development and Feedback
Topic: Potential benefit of using stdatomic.h
Replies: 3
Views: 2900

Re: Potential benefit of using stdatomic.h

Thanks for the detailed reply!
by faisal
Thu Oct 18, 2018 10:46 pm
Forum: Development and Feedback
Topic: Additional Simulator Posix HAL LLD drivers
Replies: 10
Views: 7292

Re: Additional Simulator Posix HAL LLD drivers

Hi, It looks interesting, I cannot give it a try right now, too many things ongoing, I would appreciate some feedback about it. It would help to know how to try it. Giovanni It's pretty cool, we've been using it internally for a while now. So, it's battle tested code to some degree. CAN: Using sock...
by faisal
Fri Oct 12, 2018 12:52 pm
Forum: Bug Reports
Topic: Missing volatile keyword in documentation? Topic is solved
Replies: 8
Views: 3266

Re: Missing volatile keyword in documentation? Topic is solved

It is not a runtime barrier, it is a logical barrier for the compiler. That " : memory" tells the compiler that the asm instruction can change memory (even if it is not true), the compiler can no more assume that "n" is unchanged across the asm statement. Giovanni Cool, you just...
by faisal
Wed Oct 10, 2018 5:12 pm
Forum: Bug Reports
Topic: Missing volatile keyword in documentation? Topic is solved
Replies: 8
Views: 3266

Re: Missing volatile keyword in documentation? Topic is solved

Thanks for the example Giovanni. How does the compiler know it shouldn't cache n in a register after an msr instruction? I don't see any memory or data barrier instructions generated. This is the documentation of the MSR instruction I read: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc...

Go to advanced search