Search found 260 matches

by faisal
Sat Feb 23, 2019 7:28 pm
Forum: ChibiOS/RT
Topic: xQueueCreate equivalent
Replies: 10
Views: 1412

Re: xQueueCreate equivalent

Those are different, ObjFIFOs are meant to exchange fixed-size structures in a copy-less way. HAL I/O buffers are used in those situations where you have to read/write byte streams from one side and fetch/post buffers from the other side, it is more of a buffering system. Which is better depends on...
by faisal
Sat Feb 23, 2019 5:23 pm
Forum: ChibiOS/RT
Topic: xQueueCreate equivalent
Replies: 10
Views: 1412

Re: xQueueCreate equivalent

You can also use (abuse?) I/O Buffers Queues.

http://chibios.sourceforge.net/docs/19. ... e_r_s.html

It may even be faster than Object FIFOs. Any comments on the fastest block based queue implementation in ChibiOS Giovanni?
by faisal
Fri Feb 22, 2019 11:53 pm
Forum: Development and Feedback
Topic: [MAINTAINERS] Low Level Driver organization changes
Replies: 6
Views: 1061

Re: [MAINTAINERS] Low Level Driver organization changes

xFaisal, The change is not just that, now the xxxConfig and xxxDriver structures are defined in the upper layer, the LLD extra fields are exported by the LLD into a macro. This way, when there is a change affecting just the HLD, there is no need to rework all LLDs. xTheo, Look at the files under os...
by faisal
Fri Feb 22, 2019 10:07 pm
Forum: ChibiOS/RT
Topic: undefined reference to ST2MS and MS2ST
Replies: 21
Views: 2800

Re: undefined reference to ST2MS and MS2ST

Btw, if you're curious as to how to use the fmpp utility to generate the board.c/.h files from the command line - look at the example already provided in ChibiOS. All or most of the board files for the demos are generated by this tool: https://github.com/ChibiOS/ChibiOS/blob/master/os/hal/boards/gen...
by faisal
Fri Feb 22, 2019 9:45 pm
Forum: ChibiOS/RT
Topic: undefined reference to ST2MS and MS2ST
Replies: 21
Views: 2800

Re: undefined reference to ST2MS and MS2ST

Thank you for that information and saving me yet again when I use board files from 'os/hal/boards/ST_STM32F072B_DISCOVERY' if i just point BOARDSRC and BOARDINC to there we build fine however using our old files where we use PALConfig sample board file https://github.com/e11i0t23/qmk_firmware/tree/...
by faisal
Fri Feb 22, 2019 2:57 am
Forum: Development and Feedback
Topic: [MAINTAINERS] Low Level Driver organization changes
Replies: 6
Views: 1061

Re: [MAINTAINERS] Low Level Driver organization changes

Changed driver struct names in the upper layer driver. For example, in hal_dac.h: /** * @brief Type of a structure representing an DAC driver. */ typedef struct hal_dac_driver DACDriver; /** * @brief Type of a structure representing an DAC driver configuration. */ typedef struct hal_dac_config DACCo...
by faisal
Fri Feb 22, 2019 2:41 am
Forum: Small Change Requests
Topic: testhal: Separate portable parts of HAL structs from non-portable
Replies: 1
Views: 440

testhal: Separate portable parts of HAL structs from non-portable

In testhal, the various HAL peripheral configuration structures are continuously redefined in the portab.c/h files. The configuration structures should be defined in the actual application code (main.c in all the testhal applications I've seen ...), and the non-portable board specific parts of the s...
by faisal
Fri Feb 22, 2019 2:25 am
Forum: ChibiOS/RT
Topic: undefined reference to ST2MS and MS2ST
Replies: 21
Views: 2800

Re: undefined reference to ST2MS and MS2ST

Your QMKUSBDriverVMT struct inherits from BaseSequentialStream in hal_stream.h. That has been updated to add _base_object_methods (hal_objects.h) used for multiple inheritance. _base_object_methods just contains a size_t instance_offset; . So add a "(size_t)0" as the first element of your...
by faisal
Fri Feb 22, 2019 2:19 am
Forum: ChibiOS/RT
Topic: undefined reference to ST2MS and MS2ST
Replies: 21
Views: 2800

Re: undefined reference to ST2MS and MS2ST

Thank you again, you are all very supportive and really helping us to progress where our shortcomings fall Compiling: keyboards/cannonkeys/bluepill/ws2812.c keyboards/cannonkeys/bluepill/ws2812.c:49:3: error: initialization from incompatible pointer type [-Werror] PORT_WS2812, ^ keyboards/cannonkey...
by faisal
Fri Feb 22, 2019 12:33 am
Forum: ChibiOS/RT
Topic: undefined reference to ST2MS and MS2ST
Replies: 21
Views: 2800

Re: undefined reference to ST2MS and MS2ST

Oh yeah, QMK is cool. Rock on. :) Glad the project is moving to the latest release.

Go to advanced search