diff --git a/os/common/abstractions/cmsis_os/cmsis_os.c b/os/common/abstractions/cmsis_os/cmsis_os.c index d155660ad..af1c85f24 100644 --- a/os/common/abstractions/cmsis_os/cmsis_os.c +++ b/os/common/abstractions/cmsis_os/cmsis_os.c @@ -88,10 +88,10 @@ osStatus osKernelInitialize(void) { chSysInit(); chThdSetPriority(HIGHPRIO); - chPoolObjectInit(&sempool, sizeof(semaphore_t), chCoreAllocAligned); + chPoolObjectInit(&sempool, sizeof(semaphore_t), chCoreAllocAlignedI); chPoolLoadArray(&sempool, semaphores, CMSIS_CFG_NUM_SEMAPHORES); - chPoolObjectInit(&timpool, sizeof(struct os_timer_cb), chCoreAllocAligned); + chPoolObjectInit(&timpool, sizeof(struct os_timer_cb), chCoreAllocAlignedI); chPoolLoadArray(&timpool, timers, CMSIS_CFG_NUM_TIMERS); return osOK; diff --git a/readme.txt b/readme.txt index 120e14dfc..c0f84ed51 100644 --- a/readme.txt +++ b/readme.txt @@ -154,6 +154,8 @@ - HAL: Added a new interface for range-finder devices (used by EX). - HAL: Added mcuconf.h updater tool for STM32F407 (backported to 19.1.1). - NIL: Integrated NIL 4.0. +- FIX: Fixed state check in CMSIS osKernelInitialize() wrapper (bug #1075) + (backported to 19.1.4)(backported to 18.2.3). - FIX: Fixed missing IRQ disabling in ADCv1 and ADCv3 STM32 drivers (bug #1073) (backported to 19.1.4)(backported to 18.2.3). - FIX: Fixed missing parenthesis in ADC _adc_isr_error_code macro (bug #1072)