Skip to content

Commit

Permalink
Release v4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
renesas-fsp-development committed Dec 15, 2022
1 parent 4e6b2da commit 046ca18
Show file tree
Hide file tree
Showing 330 changed files with 154,876 additions and 8,532 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ FSP uses an open software ecosystem and provides flexibility in using your prefe

### Current Release

[FSP v4.1.0](https://github.com/renesas/fsp/releases/tag/v4.1.0)
[FSP v4.2.0](https://github.com/renesas/fsp/releases/tag/v4.2.0)

### Supported RA MCU Kits

Expand Down Expand Up @@ -65,13 +65,13 @@ For a list of software modules packaged with FSP, see [Supported Software](SUPPO
- FSP versions of 4.0.0 and later require a minimum e² studio version of 2022-07.
- FSP versions of 4.1.0 and later require a minimum e² studio version of 2022-10.

If you have already installed a previous FSP release that included e² studio then you can download the packs separately. These are available for download under the Assets section for each release. There is a zipped version, FSP_Packs_\<version\>.zip (for linux or Windows), and an installer version, FSP_Packs_\<version\>.exe (for Windows only).
If you have already installed a previous FSP release that included e² studio then you can download the packs separately. These are available for download under the Assets section for each release. There is a zipped version, FSP_Packs_\<version\>.zip, that will work on any supported OS. There is also a self-extracting installer version, FSP_Packs_\<version\>.exe, that will work on Windows.

For linux, extract the contents of the zip version into the e2 studio installation directory (typically ~/.local/share/renasas/e2_studio/)
When using the zipped version of the packs the zip file should be extracted into the studio support area. This directory is typically found under the user's home directory with a path such as `~/.eclipse/com.renesas.platform_2047834950`. The number on the end of the path is unique to each e² studio installation. If you have two e² studio installations then you will have two directories with names of the format `~/.eclipse/com.renesas.platform_<unique_number>`. Please note that e² studio must have been run at least once for this directory to be created. You can find the support area for a particular e² studio installation by clicking `Help >> About e² studio`. In the window that pops up click `Installation Details` and choose the `Support Folders` tab. The e² studio support area path will be shown.

#### For new users that are using FSP with e² studio

1. Download the FSP with e² studio Installer from the Assets section of the [current release](https://github.com/renesas/fsp/releases/tag/v4.1.0).
1. Download the FSP with e² studio Installer from the Assets section of the [current release](https://github.com/renesas/fsp/releases/tag/v4.2.0).
2. Run the installer. This will install the e² studio tool, FSP packs, GCC toolchain and other tools required to use this software. No additional installations are required.

#### If using RA Smart Configurator (RASC) with IAR Embedded Workbench or Keil MDK ####
Expand Down
7 changes: 6 additions & 1 deletion SUPPORTED_SOFTWARE.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* [Azure RTOS USBX HCDC](https://docs.microsoft.com/en-us/azure/rtos/usbx/)
* [Azure RTOS USBX HHID](https://docs.microsoft.com/en-us/azure/rtos/usbx/)
* [Azure RTOS USBX HPRN](https://docs.microsoft.com/en-us/azure/rtos/usbx/)
* [Azure RTOS USBX HUVC](https://docs.microsoft.com/en-us/azure/rtos/usbx/)
* [Azure RTOS USBX OTG CDC](https://docs.microsoft.com/en-us/azure/rtos/usbx/)
* [Azure RTOS USBX OTG HID](https://docs.microsoft.com/en-us/azure/rtos/usbx/)
* [Azure RTOS USBX PAUD](https://docs.microsoft.com/en-us/azure/rtos/usbx/)
Expand All @@ -35,6 +36,7 @@
* [Azure RTOS USBX PPRN](https://docs.microsoft.com/en-us/azure/rtos/usbx/)
* [CAN (r_can)](https://renesas.github.io/fsp/group___c_a_n.html)
* [CAN FD (r_canfd)](https://renesas.github.io/fsp/group___c_a_n_f_d.html)
* [CAN FD Lite (r_canfdlite)](https://renesas.github.io/fsp/group___c_a_n_f_d.html)
* [CEC (r_cec)](https://renesas.github.io/fsp/group___c_e_c.html)
* [I2C Communication Device (rm_comms_i2c)](https://renesas.github.io/fsp/group___r_m___c_o_m_m_s___i2_c.html)
* [I2C Master (r_iic_b_master)](https://renesas.github.io/fsp/group___i_i_c___m_a_s_t_e_r.html)
Expand Down Expand Up @@ -308,11 +310,12 @@
* [AWS Secure Sockets Common (No Longer Supported)](https://renesas.github.io/fsp/_f_r_e_e_r_t_o_s__m_i_g_r_a_t_i_o_n.html)
* [AWS Secure Sockets TLS Support (No Longer Supported)](https://renesas.github.io/fsp/_f_r_e_e_r_t_o_s__m_i_g_r_a_t_i_o_n.html)
* [AWS Secure Sockets on FreeRTOS Plus TCP (No Longer Supported)](https://renesas.github.io/fsp/_f_r_e_e_r_t_o_s__m_i_g_r_a_t_i_o_n.html)
* [AWS Secure Sockets on WiFi (No Longer Supported)](https://renesas.github.io/fsp/_f_r_e_e_r_t_o_s__m_i_g_r_a_t_i_o_n.html)
* [AWS Secure Sockets on WiFi (No Longer Supported)](https://renesas.github.io/fsp/)
* [AWS Silex WiFi Sockets Wrapper (rm_aws_sockets_wrapper_silex)](https://docs.aws.amazon.com/embedded-csdk/latest/lib-ref/libraries/standard/coreMQTT/docs/doxygen/output/html/mqtt_transport_interface.html)
* [AWS TCP Sockets Wrapper](https://docs.aws.amazon.com/embedded-csdk/latest/lib-ref/libraries/standard/coreMQTT/docs/doxygen/output/html/mqtt_transport_interface.html)
* [AWS Transport Interface on Secure Sockets (No Longer Supported)](https://renesas.github.io/fsp/_f_r_e_e_r_t_o_s__m_i_g_r_a_t_i_o_n.html)
* [AWS WiFi Common](https://docs.aws.amazon.com/freertos/latest/userguide/freertos-wifi.html)
* [AWS da16200 WiFi Sockets Wrapper (rm_aws_sockets_wrapper_da16200)](https://docs.aws.amazon.com/embedded-csdk/latest/lib-ref/libraries/standard/coreMQTT/docs/doxygen/output/html/mqtt_transport_interface.html)
* [Azure EWF Allocator on ThreadX](https://azure.github.io/embedded-wireless-framework/html/index.html)
* [Azure EWF Interface on r_uart](https://azure.github.io/embedded-wireless-framework/html/index.html)
* [Azure EWF NetX Duo Middleware](https://azure.github.io/embedded-wireless-framework/html/index.html)
Expand All @@ -339,6 +342,7 @@
* [NetX Duo WiFi Driver (rm_netxduo_wifi)](https://docs.microsoft.com/en-us/azure/rtos/netx-duo/chapter5)
* [RYZ012 SPP Driver Layer](https://renesas.github.io/fsp/group___b_l_e___a_b_s___s_p_p.html)
* [WiFi Onchip Silex Driver using r_sci_uart (rm_wifi_onchip_silex)](https://renesas.github.io/fsp/group___w_i_f_i___o_n_c_h_i_p___s_i_l_e_x.html)
* [WiFi Onchip da16200 Driver using r_sci_uart (rm_wifi_onchip_da16200)](https://renesas.github.io/fsp/group___w_i_f_i___o_n_c_h_i_p___s_i_l_e_x.html)
* Security
* [Azure RTOS NetX Crypto HW Acceleration (rm_netx_secure_crypto)](https://renesas.github.io/fsp/group___r_m___n_e_t_x___s_e_c_u_r_e___c_r_y_p_t_o.html)
* [Azure RTOS NetX Crypto Software Only](https://renesas.github.io/fsp/group___r_m___n_e_t_x___s_e_c_u_r_e___c_r_y_p_t_o.html)
Expand All @@ -350,6 +354,7 @@
* [MCUboot TinyCrypt (S/W Only)](https://github.com/01org/tinycrypt/blob/master/documentation/tinycrypt.rst)
* [Mbed Crypto HW Acceleration (rm_psa_crypto)](https://renesas.github.io/fsp/group___r_m___p_s_a___c_r_y_p_t_o.html)
* [MbedTLS FSP Port (rm_mbedtls)](https://www.trustedfirmware.org/projects/mbed-tls/)
* [RSIP Compatibility Mode](https://renesas.github.io/fsp/)
* [SCE Compatibility Mode](https://renesas.github.io/fsp/)
* [SCE5](https://renesas.github.io/fsp/)
* [SCE5B](https://renesas.github.io/fsp/)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/*
* FreeRTOS V202112.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* https://www.FreeRTOS.org
* https://github.com/FreeRTOS
*
*/

/**
* @file mbedtls_bio_freertos_cellular.c
* @brief Implements mbed TLS platform send/receive functions for cellular.
*/

/* FreeRTOS includes. */
#include "FreeRTOS.h"

/* Sockets wrapper includes. */
#include "sockets_wrapper.h"

/* mbed TLS includes. */
#include "threading_alt.h"
#include "mbedtls/entropy.h"
#include "mbedtls/ssl.h"

/*-----------------------------------------------------------*/

/**
* @brief Sends data over cellular sockets.
*
* @param[in] ctx The network context containing the socket handle.
* @param[in] buf Buffer containing the bytes to send.
* @param[in] len Number of bytes to send from the buffer.
*
* @return Number of bytes sent on success; else a negative value.
*/
int mbedtls_platform_send( void * ctx,
const unsigned char * buf,
size_t len )
{
configASSERT( ctx != NULL );
configASSERT( buf != NULL );

return Sockets_Send( ( Socket_t ) ctx, buf, len );
}

/*-----------------------------------------------------------*/

/**
* @brief Receives data from cellular socket.
*
* @param[in] ctx The network context containing the socket handle.
* @param[out] buf Buffer to receive bytes into.
* @param[in] len Number of bytes to receive from the network.
*
* @return Number of bytes received if successful; Negative value on error.
*/
int mbedtls_platform_recv( void * ctx,
unsigned char * buf,
size_t len )
{
int recvStatus = 0;
int returnStatus = -1;

configASSERT( ctx != NULL );
configASSERT( buf != NULL );

recvStatus = Sockets_Recv( ( Socket_t ) ctx, buf, len );

if( recvStatus < 0 )
{
returnStatus = MBEDTLS_ERR_SSL_INTERNAL_ERROR;
}
else
{
returnStatus = recvStatus;
}

return returnStatus;
}
1 change: 1 addition & 0 deletions ra/fsp/inc/api/r_ble_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ enum RBLE_STATUS_enum
BLE_ERR_RSP_TIMEOUT = 0x0011,
BLE_ERR_NOT_YET_READY = 0x0012,
BLE_ERR_UNSPECIFIED = 0x0013,
BLE_ERR_ALREADY_INITIALIZED = 0x0014,

/* HCI Spec Error */
BLE_ERR_HC_UNKNOWN_HCI_CMD = 0x1001,
Expand Down
4 changes: 2 additions & 2 deletions ra/fsp/inc/api/r_cgc_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ typedef struct u_cgc_divider_cfg
{
union
{
uint32_t sckdivcr_w; ///< System clock Division control register
uint32_t sckdivcr_w; ///< System clock Division control register

struct
{
Expand All @@ -155,7 +155,7 @@ typedef struct u_cgc_divider_cfg

union
{
uint8_t sckdivcr2; ///< System clock Division control register 2
uint8_t sckdivcr2; ///< System clock Division control register 2

struct
{
Expand Down
6 changes: 6 additions & 0 deletions ra/fsp/inc/api/r_ioport_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ typedef enum e_ioport_peripheral

/** Pin will function as an AGT peripheral pin */
IOPORT_PERIPHERAL_AGT = (0x01UL << IOPORT_PRV_PFS_PSEL_OFFSET),

/** Pin will function as an AGT peripheral pin */
IOPORT_PERIPHERAL_AGTW = (0x01UL << IOPORT_PRV_PFS_PSEL_OFFSET),

/** Pin will function as an AGT peripheral pin */
IOPORT_PERIPHERAL_AGT1 = (0x18UL << IOPORT_PRV_PFS_PSEL_OFFSET),

/** Pin will function as a GPT peripheral pin */
IOPORT_PERIPHERAL_GPT0 = (0x02UL << IOPORT_PRV_PFS_PSEL_OFFSET),
Expand Down
Loading

0 comments on commit 046ca18

Please sign in to comment.