Ignore:
Timestamp:
Jan 23, 2025, 4:10:33 PM (4 months ago)
Author:
Zed
Message:

NetX can be compiled and initialized.

Location:
ctrl/firmware/Main/CubeMX/AZURE_RTOS/App
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ctrl/firmware/Main/CubeMX/AZURE_RTOS/App/app_azure_rtos.c

    r54 r69  
    6262static TX_BYTE_POOL fx_app_byte_pool;
    6363
     64/* USER CODE BEGIN NX_Pool_Buffer */
     65/* USER CODE END NX_Pool_Buffer */
     66#if defined ( __ICCARM__ )
     67#pragma data_alignment=4
     68#endif
     69__ALIGN_BEGIN static UCHAR nx_byte_pool_buffer[NX_APP_MEM_POOL_SIZE] __ALIGN_END;
     70static TX_BYTE_POOL nx_app_byte_pool;
     71
    6472#endif
    6573
     
    142150
    143151    /* USER CODE END MX_FileX_Init_Success */
     152  }
     153
     154  if (tx_byte_pool_create(&nx_app_byte_pool, "Nx App memory pool", nx_byte_pool_buffer, NX_APP_MEM_POOL_SIZE) != TX_SUCCESS)
     155  {
     156    /* USER CODE BEGIN NX_Byte_Pool_Error */
     157
     158    /* USER CODE END NX_Byte_Pool_Error */
     159  }
     160  else
     161  {
     162    /* USER CODE BEGIN NX_Byte_Pool_Success */
     163
     164    /* USER CODE END NX_Byte_Pool_Success */
     165
     166    memory_ptr = (VOID *)&nx_app_byte_pool;
     167    status = MX_NetXDuo_Init(memory_ptr);
     168    if (status != NX_SUCCESS)
     169    {
     170      /* USER CODE BEGIN  MX_NetXDuo_Init_Error */
     171      while(1)
     172      {
     173      }
     174      /* USER CODE END  MX_NetXDuo_Init_Error */
     175    }
     176
     177    /* USER CODE BEGIN MX_NetXDuo_Init_Success */
     178
     179    /* USER CODE END MX_NetXDuo_Init_Success */
     180
    144181  }
    145182
  • ctrl/firmware/Main/CubeMX/AZURE_RTOS/App/app_azure_rtos.h

    r57 r69  
    3232
    3333#include "app_filex.h"
     34
     35#include "app_netxduo.h"
    3436/* Private includes ----------------------------------------------------------*/
    3537/* USER CODE BEGIN Includes */
  • ctrl/firmware/Main/CubeMX/AZURE_RTOS/App/app_azure_rtos_config.h

    r57 r69  
    4848#define FX_APP_MEM_POOL_SIZE                     8192
    4949
     50#define NX_APP_MEM_POOL_SIZE                     12288
     51
    5052/* USER CODE BEGIN EC */
    5153
Note: See TracChangeset for help on using the changeset viewer.