Page 1 of 1
Dependency between HAL and RT
Posted: Fri Aug 14, 2015 12:49 pm
by neums
Hello,
i got a Problem when i use the HAL without the RT using the ADC. The function adc_lld_vreg_on called by adc_lld_start uses the macro US2RTC which is part of chsys.h. Do i have to define all those macros by myself in a module like osal or is this a bug?
Thanks
Re: Dependency between HAL and RT
Posted: Fri Aug 14, 2015 1:18 pm
by Giovanni
It is a bug, drivers are supposed to use only OSAL function, I will look into it.
You can replace it with code taken from chsys.h in the meanwhile, put the macro in halconf.h.
Giovanni
Re: Dependency between HAL and RT
Posted: Sat Aug 15, 2015 10:01 am
by Giovanni
Hi,
Fixed as bug #629.
Giovanni
Re: Dependency between HAL and RT
Posted: Wed Aug 19, 2015 7:47 am
by neums
Hi,
another HAL<-> RT Bug: Please have a look at dac_lld.c line 351and 439:
Code: Select all
default:
chDbgAssert(false, "unexpected DAC mode");
break;
There are a RT debug function calls as well.
Re: Dependency between HAL and RT
Posted: Wed Aug 19, 2015 11:57 am
by Giovanni
Hi,
Thanks for finding, fixed as bug #631.
Giovanni
Re: Dependency between HAL and RT
Posted: Mon Sep 14, 2015 4:15 pm
by neums
Hello,
is Bug #629 really fixed? At Github the US2RTC call exists till now.
Thanks
Re: Dependency between HAL and RT
Posted: Mon Sep 14, 2015 6:39 pm
by Giovanni
Hi,
Please verify the SVN repository on sourceforge, the one on github is updated manually and I don't manage it.
Giovanni