Fixed bug #644.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8328 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
09b0d9645a
commit
8a1e2ccd72
|
@ -38,7 +38,7 @@ PROJECT_NAME = ChibiOS/HAL
|
||||||
# could be handy for archiving the generated documentation or if some version
|
# could be handy for archiving the generated documentation or if some version
|
||||||
# control system is used.
|
# control system is used.
|
||||||
|
|
||||||
PROJECT_NUMBER = 3.0.1
|
PROJECT_NUMBER = 3.1.0
|
||||||
|
|
||||||
# Using the PROJECT_BRIEF tag one can provide an optional one line description
|
# Using the PROJECT_BRIEF tag one can provide an optional one line description
|
||||||
# for a project that appears at the top of each page and should give viewer a
|
# for a project that appears at the top of each page and should give viewer a
|
||||||
|
|
|
@ -38,7 +38,7 @@ PROJECT_NAME = ChibiOS/HAL
|
||||||
# could be handy for archiving the generated documentation or if some version
|
# could be handy for archiving the generated documentation or if some version
|
||||||
# control system is used.
|
# control system is used.
|
||||||
|
|
||||||
PROJECT_NUMBER = 3.0.1
|
PROJECT_NUMBER = 3.1.0
|
||||||
|
|
||||||
# Using the PROJECT_BRIEF tag one can provide an optional one line description
|
# Using the PROJECT_BRIEF tag one can provide an optional one line description
|
||||||
# for a project that appears at the top of each page and should give viewer a
|
# for a project that appears at the top of each page and should give viewer a
|
||||||
|
|
|
@ -38,7 +38,7 @@ PROJECT_NAME = ChibiOS/RT
|
||||||
# could be handy for archiving the generated documentation or if some version
|
# could be handy for archiving the generated documentation or if some version
|
||||||
# control system is used.
|
# control system is used.
|
||||||
|
|
||||||
PROJECT_NUMBER = 3.0.2
|
PROJECT_NUMBER = 3.0.3
|
||||||
|
|
||||||
# Using the PROJECT_BRIEF tag one can provide an optional one line description
|
# Using the PROJECT_BRIEF tag one can provide an optional one line description
|
||||||
# for a project that appears at the top of each page and should give viewer a
|
# for a project that appears at the top of each page and should give viewer a
|
||||||
|
|
|
@ -38,7 +38,7 @@ PROJECT_NAME = ChibiOS/RT
|
||||||
# could be handy for archiving the generated documentation or if some version
|
# could be handy for archiving the generated documentation or if some version
|
||||||
# control system is used.
|
# control system is used.
|
||||||
|
|
||||||
PROJECT_NUMBER = 3.0.2
|
PROJECT_NUMBER = 3.0.3
|
||||||
|
|
||||||
# Using the PROJECT_BRIEF tag one can provide an optional one line description
|
# Using the PROJECT_BRIEF tag one can provide an optional one line description
|
||||||
# for a project that appears at the top of each page and should give viewer a
|
# for a project that appears at the top of each page and should give viewer a
|
||||||
|
|
|
@ -101,7 +101,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief HAL version string.
|
* @brief HAL version string.
|
||||||
*/
|
*/
|
||||||
#define HAL_VERSION "3.0.1"
|
#define HAL_VERSION "3.1.0dev"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief HAL version major number.
|
* @brief HAL version major number.
|
||||||
|
@ -111,12 +111,12 @@
|
||||||
/**
|
/**
|
||||||
* @brief HAL version minor number.
|
* @brief HAL version minor number.
|
||||||
*/
|
*/
|
||||||
#define CH_HAL_MINOR 0
|
#define CH_HAL_MINOR 1
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief HAL version patch number.
|
* @brief HAL version patch number.
|
||||||
*/
|
*/
|
||||||
#define CH_HAL_PATCH 1
|
#define CH_HAL_PATCH 0
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief Kernel version string.
|
* @brief Kernel version string.
|
||||||
*/
|
*/
|
||||||
#define CH_KERNEL_VERSION "3.0.2"
|
#define CH_KERNEL_VERSION "3.0.3"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Kernel version major number.
|
* @brief Kernel version major number.
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief Kernel version patch number.
|
* @brief Kernel version patch number.
|
||||||
*/
|
*/
|
||||||
#define CH_KERNEL_PATCH 2
|
#define CH_KERNEL_PATCH 3
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/* Core headers.*/
|
/* Core headers.*/
|
||||||
|
|
|
@ -224,7 +224,7 @@ osTimerId osTimerCreate(const osTimerDef_t *timer_def,
|
||||||
*/
|
*/
|
||||||
osStatus osTimerStart(osTimerId timer_id, uint32_t millisec) {
|
osStatus osTimerStart(osTimerId timer_id, uint32_t millisec) {
|
||||||
|
|
||||||
if (millisec == 0)
|
if ((millisec == 0) || (millisec == osWaitForever))
|
||||||
return osErrorValue;
|
return osErrorValue;
|
||||||
|
|
||||||
timer_id->millisec = millisec;
|
timer_id->millisec = millisec;
|
||||||
|
@ -289,7 +289,8 @@ int32_t osSignalClear(osThreadId thread_id, int32_t signals) {
|
||||||
*/
|
*/
|
||||||
osEvent osSignalWait(int32_t signals, uint32_t millisec) {
|
osEvent osSignalWait(int32_t signals, uint32_t millisec) {
|
||||||
osEvent event;
|
osEvent event;
|
||||||
systime_t timeout = millisec == 0 ? TIME_INFINITE : MS2ST(millisec);
|
systime_t timeout = ((millisec == 0) || (millisec == osWaitForever)) ?
|
||||||
|
TIME_INFINITE : MS2ST(millisec);
|
||||||
|
|
||||||
if (signals == 0)
|
if (signals == 0)
|
||||||
event.value.signals = (uint32_t)chEvtWaitAnyTimeout(ALL_EVENTS, timeout);
|
event.value.signals = (uint32_t)chEvtWaitAnyTimeout(ALL_EVENTS, timeout);
|
||||||
|
@ -325,7 +326,8 @@ osSemaphoreId osSemaphoreCreate(const osSemaphoreDef_t *semaphore_def,
|
||||||
* @brief Wait on a semaphore.
|
* @brief Wait on a semaphore.
|
||||||
*/
|
*/
|
||||||
int32_t osSemaphoreWait(osSemaphoreId semaphore_id, uint32_t millisec) {
|
int32_t osSemaphoreWait(osSemaphoreId semaphore_id, uint32_t millisec) {
|
||||||
systime_t timeout = millisec == 0 ? TIME_INFINITE : MS2ST(millisec);
|
systime_t timeout = ((millisec == 0) || (millisec == osWaitForever)) ?
|
||||||
|
TIME_INFINITE : MS2ST(millisec);
|
||||||
|
|
||||||
msg_t msg = chSemWaitTimeout((semaphore_t *)semaphore_id, timeout);
|
msg_t msg = chSemWaitTimeout((semaphore_t *)semaphore_id, timeout);
|
||||||
switch (msg) {
|
switch (msg) {
|
||||||
|
@ -380,7 +382,8 @@ osMutexId osMutexCreate(const osMutexDef_t *mutex_def) {
|
||||||
* @brief Wait on a mutex.
|
* @brief Wait on a mutex.
|
||||||
*/
|
*/
|
||||||
osStatus osMutexWait(osMutexId mutex_id, uint32_t millisec) {
|
osStatus osMutexWait(osMutexId mutex_id, uint32_t millisec) {
|
||||||
systime_t timeout = millisec == 0 ? TIME_INFINITE : MS2ST(millisec);
|
systime_t timeout = ((millisec == 0) || (millisec == osWaitForever)) ?
|
||||||
|
TIME_INFINITE : MS2ST(millisec);
|
||||||
|
|
||||||
msg_t msg = chBSemWaitTimeout((binary_semaphore_t *)mutex_id, timeout);
|
msg_t msg = chBSemWaitTimeout((binary_semaphore_t *)mutex_id, timeout);
|
||||||
switch (msg) {
|
switch (msg) {
|
||||||
|
@ -494,7 +497,8 @@ osStatus osMessagePut(osMessageQId queue_id,
|
||||||
uint32_t info,
|
uint32_t info,
|
||||||
uint32_t millisec) {
|
uint32_t millisec) {
|
||||||
msg_t msg;
|
msg_t msg;
|
||||||
systime_t timeout = millisec == 0 ? TIME_INFINITE : MS2ST(millisec);
|
systime_t timeout = ((millisec == 0) || (millisec == osWaitForever)) ?
|
||||||
|
TIME_INFINITE : MS2ST(millisec);
|
||||||
|
|
||||||
if (port_is_isr_context()) {
|
if (port_is_isr_context()) {
|
||||||
|
|
||||||
|
@ -520,7 +524,8 @@ osEvent osMessageGet(osMessageQId queue_id,
|
||||||
uint32_t millisec) {
|
uint32_t millisec) {
|
||||||
msg_t msg;
|
msg_t msg;
|
||||||
osEvent event;
|
osEvent event;
|
||||||
systime_t timeout = millisec == 0 ? TIME_INFINITE : MS2ST(millisec);
|
systime_t timeout = ((millisec == 0) || (millisec == osWaitForever)) ?
|
||||||
|
TIME_INFINITE : MS2ST(millisec);
|
||||||
|
|
||||||
event.def.message_id = queue_id;
|
event.def.message_id = queue_id;
|
||||||
|
|
||||||
|
|
|
@ -116,6 +116,7 @@
|
||||||
- HAL: Introduced support for TIM21 and TIM22 in STM32 ST driver.
|
- HAL: Introduced support for TIM21 and TIM22 in STM32 ST driver.
|
||||||
- HAL: Updated STM32F0xx headers to STM32CubeF0 version 1.3.0. Added support
|
- HAL: Updated STM32F0xx headers to STM32CubeF0 version 1.3.0. Added support
|
||||||
for STM32F030xC, STM32F070x6, STM32F070xB devices.
|
for STM32F030xC, STM32F070x6, STM32F070xB devices.
|
||||||
|
- RT: Fixed issues in CMSIS RTOS interface (bug #644)(backported to 3.0.3).
|
||||||
- HAL: Fixed RT dependency in STM32 SDCv1 driver (bug #643)(backported
|
- HAL: Fixed RT dependency in STM32 SDCv1 driver (bug #643)(backported
|
||||||
to 3.0.2).
|
to 3.0.2).
|
||||||
- VAR: Fixed incorrect working area size in LwIP creation in demos (bug #642)
|
- VAR: Fixed incorrect working area size in LwIP creation in demos (bug #642)
|
||||||
|
|
Loading…
Reference in New Issue