Skip to content

Commit

Permalink
Trunk Build 672
Browse files Browse the repository at this point in the history
  • Loading branch information
quizic committed Jun 27, 2016
1 parent 8c1287b commit 1d2dae2
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 12 deletions.
5 changes: 5 additions & 0 deletions doc/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ recent releases and a list of known issues.

## Release History and Changes

### Reliance Edge v1.0.3, June 2016

- Added support for static memory allocation configuration in FreeRTOS
version 9. No common code changes.

### Reliance Edge v1.0.2, February 2016

#### Common Code Changes
Expand Down
5 changes: 5 additions & 0 deletions doc/release_notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ course of recent releases and a list of known issues.

Release History and Changes

Reliance Edge v1.0.3, June 2016

- Added support for static memory allocation configuration in FreeRTOS
version 9. No common code changes.

Reliance Edge v1.0.2, February 2016

Common Code Changes
Expand Down
6 changes: 3 additions & 3 deletions include/redver.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<!-- This macro is updated automatically: do not edit! -->
*/
#define RED_BUILD_NUMBER "671"
#define RED_BUILD_NUMBER "672"

#define RED_KIT_GPL 0U /* Open source GPL kit. */
#define RED_KIT_COMMERCIAL 1U /* Commercially-licensed kit. */
Expand All @@ -48,7 +48,7 @@

/** @brief Version number to display in output.
*/
#define RED_VERSION "v1.0.2"
#define RED_VERSION "v1.0.3"


/** @brief On-disk version number.
Expand Down Expand Up @@ -83,7 +83,7 @@

/** @brief Product copyright.
*/
#define RED_PRODUCT_LEGAL "Copyright (c) 2014-2015 Datalight, Inc. All Rights Reserved Worldwide."
#define RED_PRODUCT_LEGAL "Copyright (c) 2014-2016 Datalight, Inc. All Rights Reserved Worldwide."


/** @brief Product patents.
Expand Down
27 changes: 20 additions & 7 deletions os/freertos/services/osmutex.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@


static SemaphoreHandle_t xMutex;
#if defined(configSUPPORT_STATIC_ALLOCATION) && (configSUPPORT_STATIC_ALLOCATION == 1)
static StaticSemaphore_t xMutexBuffer;
#endif


/** @brief Initialize the mutex.
Expand All @@ -50,17 +53,27 @@ static SemaphoreHandle_t xMutex;
*/
REDSTATUS RedOsMutexInit(void)
{
REDSTATUS ret;

xMutex = xSemaphoreCreateMutex();
if(xMutex != NULL)
REDSTATUS ret = 0;

#if defined(configSUPPORT_STATIC_ALLOCATION) && (configSUPPORT_STATIC_ALLOCATION == 1)
xMutex = xSemaphoreCreateMutexStatic(&xMutexBuffer);

if(xMutex == NULL)
{
ret = 0;
}
else
/* The only error case for xSemaphoreCreateMutexStatic is that the mutex
buffer parameter is NULL, which is not the case.
*/
REDERROR();
ret = -RED_EINVAL;
}

#else
xMutex = xSemaphoreCreateMutex();
if(xMutex == NULL)
{
ret = -RED_ENOMEM;
}
#endif

return ret;
}
Expand Down
2 changes: 1 addition & 1 deletion projects/freertos/atmel/sam4e-ek/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ driver, but it might not be enabled (see the macros in that file).
Tested Versions
---------------

This project has been tested with FreeRTOS v8.2.0 and Atmel Studio 6.2.
This project has been tested with FreeRTOS v8.2-v9.0 and Atmel Studio 6.2.
Modifications may be required for other software versions.

Resources
Expand Down
2 changes: 1 addition & 1 deletion projects/freertos/atmel/sam4s-xplained-pro/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ driver, but it might not be enabled (see the macros in that file).
Tested Versions
---------------

This project has been tested with FreeRTOS v8.2.0 and Atmel Studio 6.2.
This project has been tested with FreeRTOS v8.2-v9.0 and Atmel Studio 6.2.
Modifications may be required for other software versions.

Resources
Expand Down

0 comments on commit 1d2dae2

Please sign in to comment.