Skip to content

Commit bc32d25

Browse files
TrongNguyenRDucLeRVUNGtranR
authored
Update RH850 U2x resource references (#26)
* Add new port layer for CCRH U2x and GHS U2x * Updated U2x port to support U2Cx devices. * Due to internal constraint, we need to postpone the upstream. We will resume once it will be ready. * Update RH850 U2x resource references. * Due to internal constraint, we need to postpone the upstream. We will resume once it will be ready. * Update RH850 U2x resource references. * Updated U2x port to support U2Cx devices. * Due to internal constraint, we need to postpone the upstream. We will resume once it will be ready. * Update RH850 U2x resource references * Update RH850 U2x resource references --------- Co-authored-by: Duc Dat Le <duc.le.xm@renesas.com> Co-authored-by: vung.tran.zg <vung.tran.zg@renesas.com>
1 parent 5b578dc commit bc32d25

File tree

4 files changed

+4
-18
lines changed

4 files changed

+4
-18
lines changed

CCRH/U2x/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ This repository contains the port of FreeRTOS for Renesas RH850/U2x microcontrol
1515
| U2A16 | Yes | No | Yes |
1616
| U2B6 | Yes | Yes | Yes |
1717
| U2B10 | Yes | Yes | Yes |
18-
| U2C8 | Yes | No | Yes |
1918

2019
## Link to Test Project
2120

22-
The test project can be found in [RH850_U2Ax_CCRH](https://github.com/renesas/FreeRTOS-Partner-Supported-Demos/tree/u2x_port/), [RH850_U2Bx_CCRH](https://github.com/renesas/FreeRTOS-Partner-Supported-Demos/tree/u2x_port/) and [RH850_U2Cx_CCRH](https://github.com/renesas/FreeRTOS-Partner-Supported-Demos/tree/u2x_port/). This project contains example tasks and configurations to help you get started with FreeRTOS on the RH850/U2Ax, U2Bx, U2Cx.
21+
The test project can be found in [RH850_U2Ax_CCRH](https://github.com/FreeRTOS/FreeRTOS-Partner-Supported-Demos/tree/main/RH850_U2Ax_CCRH) and [RH850_U2Bx_CCRH](https://github.com/FreeRTOS/FreeRTOS-Partner-Supported-Demos/tree/main/RH850_U2Bx_CCRH). These projects contain example tasks and configurations to help you get started with FreeRTOS on the RH850/U2Ax and U2Bx.
2322

2423
## Note
2524
1. The minimal stack size (configMINIMAL_STACK_SIZE) must be included the reserved memory for nested interrupt. This formula can be referred: `(task_context_size) * (2 + configMAX_INT_NESTING) + Stack_depth_of_taskcode`
@@ -35,7 +34,7 @@ Example:
3534
3. The `FXU unit` is only available on `core 0`. Users must ensure that FXU operations are restricted to `core 0` by using the `vTaskCoreAffinitySet` function provided by FreeRTOS SMP.
3635
4. FXU can be enabled by specific compiler option `-DconfigENABLE_FXU`. FPU can be enabled by specific compiler option `-DconfigENABLE_FPU`
3736
5. The macros `configENABLE_FXU` and `configENABLE_FPU` must be defined in `FreeRTOSConfig.h`.
38-
6. This port supports U2Ax, U2Bx and U2Cx devices. The user must configure `configDEVICE_NAME` with the value `U2Cx_DEVICES` or `U2Bx_DEVICES` or `U2Ax_DEVICES` to specify which device is being used.
37+
6. This port supports U2Ax and U2Bx devices. The user must configure `configDEVICE_NAME` with the value `U2Bx_DEVICES` or `U2Ax_DEVICES` to specify which device is being used.
3938
7. The User can configure the interrupt priority of the OSTM Timer using `configTIMER_INT_PRIORITY`, with 16 levels available (0 being the highest priority and 15 the lowest).
4039
8. This port also supports the configuration of contiguous CPU cores in FreeRTOS, allowing the user to set task affinity for execution on specific cores or subsets of cores.
4140

CCRH/U2x/port.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
/* Define necessary hardware IO for OSTM timer.
6161
* - OSTM0 is used by default for device variant U2Bx.
6262
* - OSTM1 is used by default for device variant U2Ax.
63-
* - OSTM0 is used by default for device variant U2Cx.
6463
* If it conflicts with the application, the application should implement another timer. */
6564
#if ( configDEVICE_NAME == U2Bx_DEVICES )
6665
#define portOSTM_EIC_ADDR ( 0xfff802d0 )
@@ -72,11 +71,6 @@
7271
#define portOSTMCMP_ADDR ( 0xffbf0100 )
7372
#define portOSTMCTL_ADDR ( 0xffbf0120 )
7473
#define portOSTMTS_ADDR ( 0xffbf0114 )
75-
#elif ( configDEVICE_NAME == U2Cx_DEVICES )
76-
#define portOSTM_EIC_ADDR ( 0xfff8007e )
77-
#define portOSTMCMP_ADDR ( 0xffbf0000 )
78-
#define portOSTMCTL_ADDR ( 0xffbf0020 )
79-
#define portOSTMTS_ADDR ( 0xffbf0014 )
8074
#endif
8175

8276
#if ( configNUMBER_OF_CORES > 1 )

GHS/U2x/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ This repository contains the port of FreeRTOS for Renesas RH850/U2x microcontrol
1515
| U2A16 | Yes | No | Yes |
1616
| U2B6 | Yes | Yes | Yes |
1717
| U2B10 | Yes | Yes | Yes |
18-
| U2C8 | Yes | No | Yes |
1918

2019
## Link to Test Project
2120

22-
The test project can be found in [RH850_U2Ax_GHS](https://github.com/renesas/FreeRTOS-Partner-Supported-Demos/tree/u2x_port/), [RH850_U2Bx_GHS](https://github.com/renesas/FreeRTOS-Partner-Supported-Demos/tree/u2x_port/) and [RH850_U2Cx_GHS](https://github.com/renesas/FreeRTOS-Partner-Supported-Demos/tree/u2x_port/). This project contains example tasks and configurations to help you get started with FreeRTOS on the RH850/U2Ax, U2Bx and U2Cx.
21+
The test project can be found in [RH850_U2Ax_GHS](https://github.com/FreeRTOS/FreeRTOS-Partner-Supported-Demos/tree/main/RH850_U2Ax_GHS) and [RH850_U2Bx_GHS](https://github.com/FreeRTOS/FreeRTOS-Partner-Supported-Demos/tree/main/RH850_U2Bx_GHS). These projects contain example tasks and configurations to help you get started with FreeRTOS on the RH850/U2Ax and U2Bx.
2322

2423
## Note
2524
1. The minimal stack size `configMINIMAL_STACK_SIZE` must be included the reserved memory for nested interrupt. This formula can be referred: `(task_context_size) * (2 + configMAX_INT_NESTING) + Stack_depth_of_taskcode`
@@ -34,7 +33,7 @@ Example:
3433
```
3534
3. The `FXU unit` is only available on `core 0`. Users must ensure that FXU operations are restricted to `core 0` by using the `vTaskCoreAffinitySet` function provided by FreeRTOS SMP.
3635
4. Set the macro `configENABLE_FXU` to `1` to enable the `FXU unit`; otherwise set `0` to disable `FXU unit`.
37-
5. This port supports both U2Ax, U2Bx and U2Cx devices. The user must configure `configDEVICE_NAME` with the value `U2Cx_DEVICES` or `U2Bx_DEVICES` or `U2Ax_DEVICES` to specify which device is being used.
36+
5. This port supports both U2Ax and U2Bx devices. The user must configure `configDEVICE_NAME` with the value `U2Bx_DEVICES` or `U2Ax_DEVICES` to specify which device is being used.
3837
6. The User can configure the interrupt priority of the OSTM Timer using `configTIMER_INT_PRIORITY`, with 16 levels available (0 being the highest priority and 15 the lowest).
3938
7. This port also supports the configuration of contiguous CPU cores in FreeRTOS, allowing the user to set task affinity for execution on specific cores or subsets of cores.
4039

GHS/U2x/port.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
/* Define necessary hardware IO for OSTM timer.
6161
* - OSTM0 is used by default for device variant U2Bx.
6262
* - OSTM1 is used by default for device variant U2Ax.
63-
* - OSTM0 is used by default for device variant U2Cx.
6463
* If it conflicts with the application, the application should implement another timer. */
6564
#if ( configDEVICE_NAME == U2Bx_DEVICES )
6665
#define portOSTM_EIC_ADDR ( 0xfff802d0 )
@@ -72,11 +71,6 @@
7271
#define portOSTMCMP_ADDR ( 0xffbf0100 )
7372
#define portOSTMCTL_ADDR ( 0xffbf0120 )
7473
#define portOSTMTS_ADDR ( 0xffbf0114 )
75-
#elif ( configDEVICE_NAME == U2Cx_DEVICES )
76-
#define portOSTM_EIC_ADDR ( 0xfff8007e )
77-
#define portOSTMCMP_ADDR ( 0xffbf0000 )
78-
#define portOSTMCTL_ADDR ( 0xffbf0020 )
79-
#define portOSTMTS_ADDR ( 0xffbf0014 )
8074
#endif
8175

8276
#if ( configNUMBER_OF_CORES > 1 )

0 commit comments

Comments
 (0)