CORTEX_PRIORITY_MASK is undefined in ChibiOS 3

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
daemon
Posts: 35
Joined: Tue Oct 09, 2012 1:53 pm

CORTEX_PRIORITY_MASK is undefined in ChibiOS 3

Post by daemon »

Good day!
While compiling OTGv1 driver for STM32F105 I found the following:

compiling usb_lld.c...
os\hal\ports\STM32\LLD\OTGv1\usb_lld.c(502): warning: #223-D: function "CORTEX_PRIORITY_MASK" declared implicitly
__set_BASEPRI(CORTEX_PRIORITY_MASK(STM32_USB_OTGFIFO_FILL_BASEPRI));
os\hal\ports\STM32\LLD\OTGv1\usb_lld.c: 1 warning, 0 errors
linking...
.\out\k-line.axf: Error: L6218E: Undefined symbol CORTEX_PRIORITY_MASK (referred from usb_lld.o).


Searching across the code I saw that CORTEX_PRIORITY_MASK macro is not defined (it was in ChibiOS 2), but now its name is CORTEX_PRIO_MASK (chcore.h)
Patch included.
Attachments
rev7788_otg1.patch.gz
Compilation error patch for STM32 OTGv1
(348 Bytes) Downloaded 224 times
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: CORTEX_PRIORITY_MASK is undefined in ChibiOS 3

Post by Giovanni »

Hi,

Thanks again, fix committed.

Giovanni
Post Reply