Skip to content

Commit 1d2dae2

Browse files
committed
Trunk Build 672
1 parent 8c1287b commit 1d2dae2

File tree

6 files changed

+35
-12
lines changed

6 files changed

+35
-12
lines changed

doc/release_notes.md

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ recent releases and a list of known issues.
55

66
## Release History and Changes
77

8+
### Reliance Edge v1.0.3, June 2016
9+
10+
- Added support for static memory allocation configuration in FreeRTOS
11+
version 9. No common code changes.
12+
813
### Reliance Edge v1.0.2, February 2016
914

1015
#### Common Code Changes

doc/release_notes.txt

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ course of recent releases and a list of known issues.
99

1010
Release History and Changes
1111

12+
Reliance Edge v1.0.3, June 2016
13+
14+
- Added support for static memory allocation configuration in FreeRTOS
15+
version 9. No common code changes.
16+
1217
Reliance Edge v1.0.2, February 2016
1318

1419
Common Code Changes

include/redver.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
3434
<!-- This macro is updated automatically: do not edit! -->
3535
*/
36-
#define RED_BUILD_NUMBER "671"
36+
#define RED_BUILD_NUMBER "672"
3737

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

4949
/** @brief Version number to display in output.
5050
*/
51-
#define RED_VERSION "v1.0.2"
51+
#define RED_VERSION "v1.0.3"
5252

5353

5454
/** @brief On-disk version number.
@@ -83,7 +83,7 @@
8383

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

8888

8989
/** @brief Product patents.

os/freertos/services/osmutex.c

+20-7
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535

3636

3737
static SemaphoreHandle_t xMutex;
38+
#if defined(configSUPPORT_STATIC_ALLOCATION) && (configSUPPORT_STATIC_ALLOCATION == 1)
39+
static StaticSemaphore_t xMutexBuffer;
40+
#endif
3841

3942

4043
/** @brief Initialize the mutex.
@@ -50,17 +53,27 @@ static SemaphoreHandle_t xMutex;
5053
*/
5154
REDSTATUS RedOsMutexInit(void)
5255
{
53-
REDSTATUS ret;
54-
55-
xMutex = xSemaphoreCreateMutex();
56-
if(xMutex != NULL)
56+
REDSTATUS ret = 0;
57+
58+
#if defined(configSUPPORT_STATIC_ALLOCATION) && (configSUPPORT_STATIC_ALLOCATION == 1)
59+
xMutex = xSemaphoreCreateMutexStatic(&xMutexBuffer);
60+
61+
if(xMutex == NULL)
5762
{
58-
ret = 0;
59-
}
60-
else
63+
/* The only error case for xSemaphoreCreateMutexStatic is that the mutex
64+
buffer parameter is NULL, which is not the case.
65+
*/
66+
REDERROR();
67+
ret = -RED_EINVAL;
68+
}
69+
70+
#else
71+
xMutex = xSemaphoreCreateMutex();
72+
if(xMutex == NULL)
6173
{
6274
ret = -RED_ENOMEM;
6375
}
76+
#endif
6477

6578
return ret;
6679
}

projects/freertos/atmel/sam4e-ek/README.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ driver, but it might not be enabled (see the macros in that file).
5858
Tested Versions
5959
---------------
6060

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

6464
Resources

projects/freertos/atmel/sam4s-xplained-pro/README.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ driver, but it might not be enabled (see the macros in that file).
7070
Tested Versions
7171
---------------
7272

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

7676
Resources

0 commit comments

Comments
 (0)