Dependency between HAL and RT

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

Dependency between HAL and RT

Postby neums » Fri Aug 14, 2015 12:49 pm

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: 14458
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Dependency between HAL and RT

Postby Giovanni » Fri Aug 14, 2015 1:18 pm

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: 14458
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Dependency between HAL and RT

Postby Giovanni » Sat Aug 15, 2015 10:01 am

Hi,

Fixed as bug #629.

Giovanni

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

Re: Dependency between HAL and RT

Postby neums » Wed Aug 19, 2015 7:47 am

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: 14458
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Dependency between HAL and RT

Postby Giovanni » Wed Aug 19, 2015 11:57 am

Hi,

Thanks for finding, fixed as bug #631.

Giovanni

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

Re: Dependency between HAL and RT

Postby neums » Mon Sep 14, 2015 4:15 pm

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

Thanks

User avatar
Giovanni
Site Admin
Posts: 14458
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Dependency between HAL and RT

Postby Giovanni » Mon Sep 14, 2015 6:39 pm

Hi,

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

Giovanni


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 1 guest