Page 1 of 2
DAC problem!
Posted: Sat Aug 31, 2013 3:16 pm
by M.H.Roohi
Hi all
i tried to compile DAC library (by Mobyfab) but i found lots of errors.
LINK:
https://github.com/mobyfab/ChibiOS/tree/dacand finally i found out that dac_lld.h and dac_lld.c and dac.c are not match
for example i found the following code in dac.lld.c
and the following code in dac.c
Code: Select all
#define _dac_isr_error_code(dacp, err)
could anybody please help me about that or introduce me another way?
THX
Re: DAC problem!
Posted: Sat Aug 31, 2013 4:50 pm
by Giovanni
Hi,
The driver made by mobyfab is different from the half done driver in the repository, you need to replace dac.c and dac.h taking them from mobyfab work.
Giovanni
Re: DAC problem!
Posted: Sun Sep 01, 2013 6:43 am
by M.H.Roohi
Hi,
I download them took them from mobyfab work, from following link
https://github.com/mobyfab/ChibiOS/tree/dacand the dac.h was there, witch directory do you mean?
Re: DAC problem!
Posted: Sun Sep 01, 2013 6:45 am
by M.H.Roohi
i mean : os\hal\include\dac.h
Re: DAC problem!
Posted: Sun Sep 01, 2013 8:11 am
by Giovanni
Correct, you have to replace .\os\hal\include\dac.h and .\os\hal\src\dac.c.
Giovanni
Re: DAC problem!
Posted: Sun Sep 01, 2013 11:10 am
by M.H.Roohi
i used mobyfab sources and in already in os\hal\include and src are dac.h and adc.h file
what should i do? reaplace them with wath?
Re: DAC problem!
Posted: Sun Sep 01, 2013 12:00 pm
by Giovanni
I thought you wanted to use mobyfab driver with the official distribution, if you are using mobyfab tree as-is you don't need to replace anything I think.
Giovanni
Re: DAC problem!
Posted: Sun Sep 01, 2013 2:49 pm
by M.H.Roohi
So, what can I do with those error?
is there any other solution for using dac with chibios?
or can you send me a compiled dac demo code of mobyfab?
Re: DAC problem!
Posted: Sun Sep 01, 2013 2:58 pm
by Giovanni
Try to PM mobyfab he is always very helpful, you may also try the #chibios IRC channel:
http://www.chibios.org/dokuwiki/doku.ph ... nline_helpGiovanni
Re: DAC problem!
Posted: Mon Sep 02, 2013 2:06 pm
by mobyfab
Hey,
I will try to update the code to work with the current version on Chibios.
Just check for updates in my repo.