Skip to content

Commit

Permalink
Ensemble Azure RTOS support updated to release 1.0.0.
Browse files Browse the repository at this point in the history
Official release supporting Ensemble generation 2 devices.
  • Loading branch information
BhupeshKharwa-AlifSemi committed Nov 16, 2023
1 parent 32baddd commit b073511
Show file tree
Hide file tree
Showing 548 changed files with 3,806 additions and 101,217 deletions.
70 changes: 14 additions & 56 deletions AlifSemiconductor.AzureRTOS.pdsc
Original file line number Diff line number Diff line change
Expand Up @@ -13,54 +13,8 @@
-->

<releases>
<release version="0.3.2" date="2023-09-20">
- Update sample test apps
</release>
<release version="0.3.1" date="2023-09-13">
- Update B0 THREADX Sample
- Update B0 FILEX Driver and sample
- Update B0 USBX Driver and sample
- Update B0 NETX Driver and sample
</release>
<release version="0.3.0" date="2023-01-10">
- update sample codes
- Add SD card support
</release>
<release version="0.2.1" date="2022-09-13">
- Fix QA findings
</release>
<release version="0.2.0" date="2022-08-23">
- Update NETX Ethernet Driver
- Add USBX DCD support
- Update test application for Camera, I2S, CRC and SPI based ThermoMeter
- Add test applications for Comparator, MRAM Flash, HWSEM and Video
- Add USBX DCD support
</release>
<release version="0.1.2" date="2022-05-31">
- Add NETX Ethernet Driver
- Add Cloud Support packages and examples
- Add THREADX based sample device test applications
</release>
<release version="0.1.1" date="2022-02-17">
- Add Modem iperf demo app
- update nx utility
</release>
<release version="0.1.0" date="2021-12-03">
Grouped NETX Demo App
</release>
<release version="0.0.3" date="2021-09-29">
Added support for AzureRTOS NETX
updated URL
Move sample application as templates
</release>
<release version="0.0.2" date="2021-09-07">
Added support for AzureRTOS FILEX
Fixed some tags indentation
Moved AzureRTOS THREADX Code into separate folder
Fixed some Schemas validity error
</release>
<release version="0.0.1" date="2021-04-15">
Initial Release
<release version="1.0.0" date="2023-11-16">
- Initial Release
</release>
</releases>

Expand Down Expand Up @@ -431,11 +385,11 @@
<file category="source" name="THREADX/samples/HWSEM_Threadx.c" attr="template" select="AzureRTOS HWSEM testApp"/>
<file category="source" name="THREADX/samples/MIPI_Interface_Video_testApp.c" attr="template" select="AzureRTOS Viewfinder testApp"/>
<file category="source" name="THREADX/samples/image_processing.c" attr="template" select="AzureRTOS Viewfinder testApp"/>
<file category="source" name="THREADX/samples/bayer.c" attr="template" select="AzureRTOS Viewfinder testApp"/>
<!-- <file category="source" name="THREADX/samples/bayer.c" attr="template" select="AzureRTOS Viewfinder testApp"/>
<file category="source" name="THREADX/samples/bayer2rgb.c" attr="template" select="AzureRTOS Viewfinder testApp"/>
<file category="header" name="THREADX/samples/Include/bayer.h" attr="template" select="AzureRTOS Viewfinder testApp"/>
<file category="header" name="THREADX/samples/Include/bayer.h" attr="template" select="AzureRTOS Viewfinder testApp"/>-->
<file category="source" name="THREADX/samples/Flash_ISSI_Threadx_app.c" attr="template" select="AzureRTOS (OSPI)ISSI Flash testApp"/>
<file category="source" name="THREADX/samples/QEC_app.c" attr="template" select="AzureRTOS QEC testApp"/>
<!-- <file category="source" name="THREADX/samples/QEC_app.c" attr="template" select="AzureRTOS QEC testApp"/>-->
<file category="source" name="THREADX/samples/PDM_testApp.c" attr="template" select="AzureRTOS PDM testApp"/>
<file category="source" name="THREADX/samples/LPPDM_testApp.c" attr="template" select="AzureRTOS LPPDM testApp"/>
<file category="source" name="THREADX/samples/dma_testmemcpy.c" attr="template" select="AzureRTOS DMA Testmemcpy testApp"/>
Expand All @@ -445,6 +399,10 @@
<file category="source" name="THREADX/samples/i3c_master_loopback_testapp.c" attr="template" select="AzureRTOS I3C Master Loopback testApp"/>
<file category="source" name="THREADX/samples/i3c_slave_loopback_testapp.c" attr="template" select="AzureRTOS I3C Slave Loopback testApp"/>
<file category="source" name="THREADX/samples/i2c_testapp.c" attr="template" select="AzureRTOS I2C testApp"/>
<file category="source" name="THREADX/samples/CANFD_Bus_Monitor.c" attr="template" select="AzureRTOS CANFD Bus Monitor testApp"/>
<file category="source" name="THREADX/samples/CANFD_Ext_Loopback.c" attr="template" select="AzureRTOS CANFD External Loopback testApp"/>
<file category="source" name="THREADX/samples/CANFD_Int_Loopback.c" attr="template" select="AzureRTOS CANFD internal Loopback testApp"/>
<file category="source" name="THREADX/samples/CANFD_NormalMode.c" attr="template" select="AzureRTOS CANFD data transfer testApp"/>
</files>
</component>

Expand Down Expand Up @@ -1342,7 +1300,7 @@
</files>
</component>

<component Cgroup="Netx Duo" Csub="IoT" Cversion="1.0.0" condition="AzureRTOS NETX">
<!-- <component Cgroup="Netx Duo" Csub="IoT" Cversion="1.0.0" condition="AzureRTOS NETX">
<description>Alif Semiconductor IoT Support</description>
<Pre_Include_Global_h>
// enabling global pre include
Expand Down Expand Up @@ -1761,10 +1719,11 @@
<file category="source" name="NETX/nx_secure/src/nx_secure_x509_store_certificate_find.c"/>
<file category="source" name="NETX/nx_secure/src/nx_secure_x509_store_certificate_remove.c"/>
<file category="source" name="NETX/nx_secure/src/nx_secure_x509_subject_alt_names_find.c"/>
<file category="source" name="NETX/nx_secure/src/nx_secure_x509_wildcard_compare.c"/>
<file category="source" name="NETX/nx_secure/src/nx_secure_x509_wildcard_compare.c"/>-->

<!-- IOT app Templates -->
<file category="doc" name="NETX/sample/azure-iot-demo-apps/azure-iot-hub-setup" attr="template" select="IOT App"/>
<!-- Commenting templates as IOT examples shall not be part of the pack templates -->
<!--<file category="doc" name="NETX/sample/azure-iot-demo-apps/azure-iot-hub-setup" attr="template" select="IOT App"/>
<file category="source" name="NETX/sample/azure-iot-demo-apps/main.c" attr="template" select="IOT App"/>
<file category="source" name="NETX/sample/azure-iot-demo-apps/nx_azure_iot_cert.c" attr="template" select="IOT App"/>
<file category="header" name="NETX/sample/azure-iot-demo-apps/nx_azure_iot_cert.h" attr="template" select="IOT App"/>
Expand All @@ -1774,7 +1733,7 @@
<file category="header" name="NETX/sample/azure-iot-demo-apps/sample_config.h" attr="template" select="IOT App"/>
<file category="source" name="NETX/sample/azure-iot-demo-apps/sample_device_identity.c" attr="template" select="IOT App"/>
</files>
</component>
</component>-->

<!-- ====================== USBX Component Description ====================== -->

Expand Down Expand Up @@ -2060,7 +2019,6 @@

<!-- Templates -->
<file category="source" name="USBX/samples/demo_usbx_device_cdc_acm_app.c" attr="template" select="AzureRTOS USBX Device Class CDC ACM demo App"/>
<file category="source" name="USBX/samples/demo_usbx_device_cdc_acm_app_with_callbacks.c" attr="template" select="AzureRTOS USBX Device Class CDC ACM with callbacks demo App"/>
</files>
</component>

Expand Down
3 changes: 2 additions & 1 deletion FILEX/driver/src/fx_sd_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
******************************************************************************/

/* Include necessary system files. */
#include "RTE_Device.h"
#include "fx_sd_driver.h"
#include "fx_sd_driver_private.h"

Expand Down Expand Up @@ -212,7 +213,7 @@ VOID _fx_sd_driver(FX_MEDIA *media_ptr)
/* Perform basic initialization here... since the boot record is going
to be read subsequently and again for volume name requests. */

status = p_SD_Driver->disk_initialize(SDMMC_DEV_ID);
status = p_SD_Driver->disk_initialize(SDMMC_DEV_ID, RTE_SDC_BUS_WIDTH, RTE_SDC_DMA_SELECT);

/* Check status of SD initialize. */
if (status == FX_SUCCESS)
Expand Down
39 changes: 36 additions & 3 deletions FILEX/samples/Demo_SD_FileX.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,24 @@
* @Note None
******************************************************************************/
/* System Includes */
#include "RTE_Device.h"
#include "stdio.h"
#include "se_services_port.h"

/* ThreadX and FileX Includes */
#include "tx_api.h"
#include "fx_api.h"
#include "fx_sd_driver.h"
#include "Driver_Common.h"

/* include for Pin Mux config */
#include "pinconf.h"
#include "RTE_Components.h"
#if defined(RTE_Compiler_IO_STDOUT)
#include "retarget_stdout.h"
#include "Driver_Common.h"
#endif /* RTE_Compiler_IO_STDOUT */


#define TEST_FILE "TestFile34.txt"
/* Define Test Requirement <Test File Name> */
//#define FILE_CREATE_TEST TEST_FILE
Expand All @@ -53,6 +56,8 @@ TX_THREAD mySD_Thread;
TX_BYTE_POOL StackPool;
unsigned char *p_sdStack = NULL;
uint32_t count1, count2, total_cnt=0;
uint32_t service_error_code;
uint32_t error_code = SERVICES_REQ_SUCCESS;

/* Buffer for FileX FX_MEDIA sector cache. This must be large enough for at least one sector , which are typically 512 bytes in size. */
UCHAR media_memory[SD_BLK_SIZE*NUM_BLK_TEST] __attribute__((section("sd_dma_buf"))) __attribute__((aligned(32)));
Expand All @@ -75,12 +80,12 @@ void mySD_Thread_entry(ULONG args)
pinconf_set(PORT_7, PIN_0, PINMUX_ALTERNATE_FUNCTION_6, PADCTRL_READ_ENABLE); //cmd
pinconf_set(PORT_7, PIN_1, PINMUX_ALTERNATE_FUNCTION_6, PADCTRL_READ_ENABLE); //clk
pinconf_set(PORT_5, PIN_0, PINMUX_ALTERNATE_FUNCTION_7, PADCTRL_READ_ENABLE); //d0
#ifdef SDMMC_4BIT_MODE
#if RTE_SDC_BUS_WIDTH == SDMMC_4_BIT_MODE
pinconf_set(PORT_5, PIN_1, PINMUX_ALTERNATE_FUNCTION_7, PADCTRL_READ_ENABLE); //d1
pinconf_set(PORT_5, PIN_2, PINMUX_ALTERNATE_FUNCTION_7, PADCTRL_READ_ENABLE); //d2
pinconf_set(PORT_5, PIN_3, PINMUX_ALTERNATE_FUNCTION_6, PADCTRL_READ_ENABLE); //d3
#endif
#ifdef SDMMC_8BIT_MODE
#if RTE_SDC_BUS_WIDTH == SDMMC_8_BIT_MODE
pinconf_set(PORT_5, PIN_4, PINMUX_ALTERNATE_FUNCTION_6, PADCTRL_READ_ENABLE); //d4
pinconf_set(PORT_5, PIN_5, PINMUX_ALTERNATE_FUNCTION_5, PADCTRL_READ_ENABLE); //d5
pinconf_set(PORT_5, PIN_6, PINMUX_ALTERNATE_FUNCTION_5, PADCTRL_READ_ENABLE); //d6
Expand Down Expand Up @@ -275,6 +280,18 @@ void mySD_Thread_entry(ULONG args)
}
printf("File R/W Test Completed!!!\n");

error_code = SERVICES_clocks_enable_clock(se_services_s_handle, CLKEN_CLK_100M, false, &service_error_code);
if(error_code){
printf("SE: SDMMC 100MHz clock disable = %d\n", error_code);
return;
}

error_code = SERVICES_clocks_enable_clock(se_services_s_handle, CLKEN_USB, false, &service_error_code);
if(error_code){
printf("SE: SDMMC 20MHz clock disable = %d\n", error_code);
return;
}

}

void tx_application_define(void *first_unused_memory){
Expand Down Expand Up @@ -304,6 +321,22 @@ int main()
}
#endif

/* Initialize the SE services */
se_services_port_init();

/* Enable SDMMC Clocks */
error_code = SERVICES_clocks_enable_clock(se_services_s_handle, CLKEN_CLK_100M, true, &service_error_code);
if(error_code){
printf("SE: SDMMC 100MHz clock enable = %d\n", error_code);
return 0;
}

error_code = SERVICES_clocks_enable_clock(se_services_s_handle, CLKEN_USB, true, &service_error_code);
if(error_code){
printf("SE: SDMMC 20MHz clock enable = %d\n", error_code);
return 0;
}

tx_kernel_enter();

return 0;
Expand Down
131 changes: 0 additions & 131 deletions License.txt

This file was deleted.

18 changes: 0 additions & 18 deletions NETX/addons/azure_iot/azure-sdk-for-c/.clang-format

This file was deleted.

Loading

0 comments on commit b073511

Please sign in to comment.