Dependency between HAL and RT

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
Post Reply
neums
Posts: 137
Joined: Fri May 08, 2015 1:09 pm
Has thanked: 10 times
Been thanked: 5 times

Dependency between HAL and RT

Post 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
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Dependency between HAL and RT

Post 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
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Dependency between HAL and RT

Post by Giovanni »

Hi,

Fixed as bug #629.

Giovanni
neums
Posts: 137
Joined: Fri May 08, 2015 1:09 pm
Has thanked: 10 times
Been thanked: 5 times

Re: Dependency between HAL and RT

Post 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.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Dependency between HAL and RT

Post by Giovanni »

Hi,

Thanks for finding, fixed as bug #631.

Giovanni
neums
Posts: 137
Joined: Fri May 08, 2015 1:09 pm
Has thanked: 10 times
Been thanked: 5 times

Re: Dependency between HAL and RT

Post by neums »

Hello,
is Bug #629 really fixed? At Github the US2RTC call exists till now.

Thanks
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Dependency between HAL and RT

Post by Giovanni »

Hi,

Please verify the SVN repository on sourceforge, the one on github is updated manually and I don't manage it.

Giovanni
Post Reply