Skip to content

Commit

Permalink
Merge branch 'dev/v202406.01-lts-rx-1.0.0' into 'main'
Browse files Browse the repository at this point in the history
Release v202406.01-LTS-rx-1.0.0

See merge request products/common/rtos/amazon-freertos/lts/iot-reference-rx!277
  • Loading branch information
TomonoriKuwada committed Dec 17, 2024
2 parents 2b89aaa + 2845f22 commit 94d9528
Show file tree
Hide file tree
Showing 6,542 changed files with 713,715 additions and 1,688,320 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@
[submodule "Middleware/3rdparty/littlefs"]
path = Middleware/3rdparty/littlefs
url = https://github.com/littlefs-project/littlefs.git
[submodule "Middleware/AWS/mqtt-stream"]
path = Middleware/AWS/mqtt-stream
url = https://github.com/aws/aws-iot-core-mqtt-file-streams-embedded-c
17 changes: 14 additions & 3 deletions Common/FreeRTOS_common/compiler_support/ccrx/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,19 @@
*/

/* CC-RX's user define function */
void abort( void );
void abort( void )
void abort (void);
/**********************************************************************************************************************
* Function Name: abort
* Description : CC-RX's user define function
* Return Value : .
*********************************************************************************************************************/
void abort(void)
{
for(;;) {}
for (;;)
{
/* Do nothing */
}
}
/*****************************************************************************************
End of function abort
****************************************************************************************/
26 changes: 13 additions & 13 deletions Common/FreeRTOS_common/compiler_support/ccrx/implicitlyinclude.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,54 +30,54 @@
/* Avoid CC-RX's compiler warning message 'M0520193: Zero used for
* undefined preprocessing identifier "XXXX"' in CC-RX's math.h */
#if !defined(_FEVAL)
#define _FEVAL 0
#define _FEVAL (0)
#endif

#if !defined(_HAS_C9X_FAST_FMA)
#define _HAS_C9X_FAST_FMA 0
#define _HAS_C9X_FAST_FMA (0)
#endif

/* Workaround for incompatibility of basic macro definitions. */
#if !defined(__RX__)
#define __RX__ 1
#define __RX__ (1)
#endif

#if defined(__LIT)
#if !defined(__RX_LITTLE_ENDIAN__)
#define __RX_LITTLE_ENDIAN__ 1
#define __RX_LITTLE_ENDIAN__ (1)
#endif
#if !defined(__ORDER_LITTLE_ENDIAN__)
#define __ORDER_LITTLE_ENDIAN__ 1234
#define __ORDER_LITTLE_ENDIAN__ (1234)
#endif
#if !defined(__ORDER_BIG_ENDIAN__)
#define __ORDER_BIG_ENDIAN__ 4321
#define __ORDER_BIG_ENDIAN__ (4321)
#endif
#if !defined(__BYTE_ORDER__)
#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
#define __BYTE_ORDER__ (__ORDER_LITTLE_ENDIAN__)
#endif
#elif defiend(__BIG)
#if !defined(__RX_BIG_ENDIAN__)
#define __RX_BIG_ENDIAN__ 1
#define __RX_BIG_ENDIAN__ (1)
#endif
#if !defined(__ORDER_LITTLE_ENDIAN__)
#define __ORDER_LITTLE_ENDIAN__ 1234
#define __ORDER_LITTLE_ENDIAN__ (1234)
#endif
#if !defined(__ORDER_BIG_ENDIAN__)
#define __ORDER_BIG_ENDIAN__ 4321
#define __ORDER_BIG_ENDIAN__ (4321)
#endif
#if !defined(__BYTE_ORDER__)
#define __BYTE_ORDER__ __ORDER_BIG_ENDIAN__
#define __BYTE_ORDER__ (__ORDER_BIG_ENDIAN__)
#endif
#endif

#if defined(__FPU)
#if !defined(__RX_FPU_INSNS__)
#define __RX_FPU_INSNS__ 1
#define __RX_FPU_INSNS__ (1)
#endif
#endif

#if defined(__RXV2)
#if !defined(__RXv2__)
#define __RXv2__ 1
#define __RXv2__ (1)
#endif
#endif
43 changes: 27 additions & 16 deletions Common/FreeRTOS_common/compiler_support/ccrx/strnlen.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@

/*
FUNCTION
<<strnlen>>---character string length
<<strnlen>>---character string length
INDEX
strnlen
strnlen
SYNOPSIS
#include <string.h>
size_t strnlen(const char *<[str]>, size_t <[n]>);
#include <string.h>
size_t strnlen(const char *<[str]>, size_t <[n]>);
DESCRIPTION
The <<strnlen>> function works out the length of the string
starting at <<*<[str]>>> by counting chararacters until it
reaches a NUL character or the maximum: <[n]> number of
The <<strnlen>> function works out the length of the string
starting at <<*<[str]>>> by counting chararacters until it
reaches a NUL character or the maximum: <[n]> number of
characters have been inspected.
RETURNS
<<strnlen>> returns the character count or <[n]>.
<<strnlen>> returns the character count or <[n]>.
PORTABILITY
<<strnlen>> is a GNU extension.
Expand All @@ -37,14 +37,25 @@ PORTABILITY
#undef __STRICT_ANSI__
#include <string.h>

size_t
strnlen (const char *str,
size_t n)
/**********************************************************************************************************************
* Function Name: strnlen
* Description : The <<strnlen>> function works out the length of the string
* starting at <<*<[str]>>> by counting chararacters until it
* reaches a NUL character or the maximum: <[n]> number of
* characters have been inspected.
* Arguments : str
* : n
* Return Value : returns the character count or <[n]>.
*********************************************************************************************************************/
size_t strnlen(const char *str, size_t n)
{
const char *start = str;
const char *start = str;

while (n-- > 0 && *str)
str++;
while (n-- > 0 && *str)
str++;

return str - start;
return str - start;
}
/*****************************************************************************************
End of function strnlen
****************************************************************************************/
14 changes: 12 additions & 2 deletions Common/FreeRTOS_common/compiler_support/ccrx/strnlen.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,18 @@
*/

#ifndef _STRNLEN_H_
#define _STRNLEN_H_
#define _STRNLEN_H_

size_t strnlen (const char *, size_t);
/**********************************************************************************************************************
* Function Name: strnlen
* Description : The <<strnlen>> function works out the length of the string
* starting at <<*<[str]>>> by counting chararacters until it
* reaches a NUL character or the maximum: <[n]> number of
* characters have been inspected.
* Arguments : str
* : n
* Return Value : returns the character count or <[n]>.
*********************************************************************************************************************/
size_t strnlen (const char *, size_t);

#endif /* _STRNLEN_H_ */
48 changes: 25 additions & 23 deletions Common/FreeRTOS_common/croutine.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,28 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

/* Dummy file for using r_bsp.h (designed for with FreeRTOS kernel) with FreeRTOS */
////#ifndef CO_ROUTINE_H
////#define CO_ROUTINE_H
////
////#ifndef INC_FREERTOS_H
//// #error "include FreeRTOS.h must appear in source files before include croutine.h"
////#endif
////
////#include "list.h"
////
////#ifdef __cplusplus
////extern "C" {
////#endif
////
////...
////...
////...
////
////#ifdef __cplusplus
////}
////#endif
////
////#endif /* CO_ROUTINE_H */
/* Dummy file for using r_bsp.h (designed for with FreeRTOS kernel) with FreeRTOS
#ifndef CO_ROUTINE_H
#define CO_ROUTINE_H
#ifndef INC_FREERTOS_H
#error "include FreeRTOS.h must appear in source files before include croutine.h"
#endif
#include "list.h"
#ifdef __cplusplus
extern "C" {
#endif
...
...
...
#ifdef __cplusplus
}
#endif
#endif
*/
Loading

0 comments on commit 94d9528

Please sign in to comment.