undefined reference to ST2MS and MS2ST

Discussions and support about ChibiOS/RT, the free embedded RTOS.
e11i0t23
Posts: 10
Joined: Thu Feb 21, 2019 8:46 pm
Has thanked: 4 times

Re: undefined reference to ST2MS and MS2ST

Postby e11i0t23 » Mon Feb 25, 2019 9:05 pm

Sorry about that here is a link to the file: https://github.com/e11i0t23/qmk_firmwar ... udio_arm.c

and the whole warning:

Code: Select all

quantum/audio/audio_arm.c:259:3: warning: initialization from incompatible pointer type
   .end_cb       = end_cb1,
   ^
quantum/audio/audio_arm.c:259:3: warning: (near initialization for 'dacgrpcfg1.end_cb')
quantum/audio/audio_arm.c:271:3: warning: initialization from incompatible pointer type
   .end_cb       = end_cb1,
   ^
quantum/audio/audio_arm.c:271:3: warning: (near initialization for 'dacgrpcfg2.end_cb')

faisal
Posts: 260
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 35 times
Been thanked: 34 times

Re: undefined reference to ST2MS and MS2ST

Postby faisal » Mon Feb 25, 2019 9:21 pm

Yep, definition of callback has changed. Check out hal_dac.h. now, it only takes the driver strict as a parameter.

See viewtopic.php?f=3&t=4929. I believe the demos in testhal have been updated as well to show the usage of the new API.


Return to “ChibiOS/RT”

Who is online

Users browsing this forum: Google Adsense [Bot], Marco and 1 guest