Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit d07870a

Browse files
authored
Active Azure Security Center for MXCHIP + Microchip + NXP
1 parent 1e38e98 commit d07870a

File tree

10 files changed

+19
-24
lines changed

10 files changed

+19
-24
lines changed

MXChip/AZ3166/app/legacy/mqtt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ UINT azure_iot_mqtt_entry(NX_IP* ip_ptr, NX_PACKET_POOL* pool_ptr, NX_DNS* dns_p
180180

181181
printf("Starting MQTT loop\r\n");
182182
screen_print("Azure IoT", L0);
183+
183184
while (true)
184185
{
185186
// Sleep

MXChip/AZ3166/app/nx_client.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <stdio.h>
77

8+
#include "screen.h"
89
#include "sensor.h"
910
#include "stm32f4xx_hal.h"
1011

@@ -201,6 +202,7 @@ UINT azure_iot_nx_client_entry(
201202
azure_iot_nx_client_publish_bool_property(&azure_iot_nx_client, LED_STATE_PROPERTY, false);
202203

203204
printf("\r\nStarting Main loop\r\n");
205+
screen_print("Azure IoT", L0);
204206

205207
while (true)
206208
{

MXChip/AZ3166/lib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ set(NX_USER_FILE "${CMAKE_CURRENT_LIST_DIR}/netxduo/nx_user.h" CACHE STRING "Ena
1313
set(NXD_ENABLE_AZURE_IOT ON CACHE BOOL "Enable Azure IoT")
1414
set(NXD_ENABLE_FILE_SERVERS OFF CACHE BOOL "Disable fileX dependency by netxduo")
1515

16-
# Disable ASC
17-
set(NX_AZURE_DISABLE_IOT_SECURITY_MODULE ON CACHE BOOL "Disable ASC")
16+
# Enable security module
17+
set(NX_AZURE_DISABLE_IOT_SECURITY_MODULE OFF CACHE BOOL "Security Module")
1818

1919
# Core libraries
2020
add_subdirectory(${CORE_LIB_DIR}/threadx threadx)

Microchip/ATSAME54-XPRO/lib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ set(NX_USER_FILE "${CMAKE_CURRENT_LIST_DIR}/netxduo/nx_user.h" CACHE STRING "Ena
1313
set(NXD_ENABLE_AZURE_IOT ON CACHE BOOL "Enable Azure IoT")
1414
set(NXD_ENABLE_FILE_SERVERS OFF CACHE BOOL "Disable fileX dependency by netxduo")
1515

16-
# Disable ASC
17-
set(NX_AZURE_DISABLE_IOT_SECURITY_MODULE ON CACHE BOOL "Disable ASC")
16+
# Enable security module
17+
set(NX_AZURE_DISABLE_IOT_SECURITY_MODULE OFF CACHE BOOL "Security Module")
1818

1919
# Core libraries
2020
add_subdirectory(${CORE_LIB_DIR}/threadx threadx)

NXP/MIMXRT1050-EVKB/lib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ set(NX_USER_FILE "${CMAKE_CURRENT_LIST_DIR}/netxduo/nx_user.h" CACHE STRING "Ena
1313
set(NXD_ENABLE_AZURE_IOT ON CACHE BOOL "Enable Azure IoT")
1414
set(NXD_ENABLE_FILE_SERVERS OFF CACHE BOOL "Disable fileX dependency by netxduo")
1515

16-
# Disable ASC
17-
set(NX_AZURE_DISABLE_IOT_SECURITY_MODULE ON CACHE BOOL "Disable ASC")
16+
# Enable security module
17+
set(NX_AZURE_DISABLE_IOT_SECURITY_MODULE OFF CACHE BOOL "Security Module")
1818

1919
# Core libraries
2020
add_subdirectory(${CORE_LIB_DIR}/threadx threadx)

NXP/MIMXRT1060-EVK/lib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ set(NX_USER_FILE "${CMAKE_CURRENT_LIST_DIR}/netxduo/nx_user.h" CACHE STRING "Ena
1313
set(NXD_ENABLE_AZURE_IOT ON CACHE BOOL "Enable Azure IoT")
1414
set(NXD_ENABLE_FILE_SERVERS OFF CACHE BOOL "Disable fileX dependency by netxduo")
1515

16-
# Disable ASC
17-
set(NX_AZURE_DISABLE_IOT_SECURITY_MODULE ON CACHE BOOL "Disable ASC")
16+
# Enable security module
17+
set(NX_AZURE_DISABLE_IOT_SECURITY_MODULE OFF CACHE BOOL "Security Module")
1818

1919
# Core libraries
2020
add_subdirectory(${CORE_LIB_DIR}/threadx threadx)

STMicroelectronics/STM32L4_L4+/lib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ set(NX_USER_FILE "${CMAKE_CURRENT_LIST_DIR}/netxduo/nx_user.h" CACHE STRING "Ena
1313
set(NXD_ENABLE_AZURE_IOT ON CACHE BOOL "Enable Azure IoT")
1414
set(NXD_ENABLE_FILE_SERVERS OFF CACHE BOOL "Disable fileX dependency by netxduo")
1515

16-
# Disable ASC
17-
set(NX_AZURE_DISABLE_IOT_SECURITY_MODULE ON CACHE BOOL "Disable ASC")
16+
# Azure Security Center
17+
set(NX_AZURE_DISABLE_IOT_SECURITY_MODULE ON CACHE BOOL "Security Center")
1818

1919
# Core libraries
2020
add_subdirectory(${CORE_LIB_DIR}/threadx threadx)

STMicroelectronics/STM32L4_L4+/lib/netxduo/CMakeLists.txt

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ set(SOURCES
433433
${CORE_LIB_DIR}/netxduo/nx_secure/src/nx_secure_x509_store_certificate_remove.c
434434
${CORE_LIB_DIR}/netxduo/nx_secure/src/nx_secure_x509_subject_alt_names_find.c
435435
${CORE_LIB_DIR}/netxduo/nx_secure/src/nx_secure_x509_wildcard_compare.c
436-
436+
437437
${CORE_LIB_DIR}/netxduo/addons/dns/nxd_dns.c
438438
${CORE_LIB_DIR}/netxduo/addons/sntp/nxd_sntp_client.c
439439
${CORE_LIB_DIR}/netxduo/addons/mqtt/nxd_mqtt_client.c
@@ -445,9 +445,6 @@ set(TARGET netxduo)
445445
add_library(${TARGET} OBJECT)
446446
add_library("azrtos::${TARGET}" ALIAS ${TARGET})
447447

448-
#add_subdirectory(${CORE_LIB_DIR}/netxduo/crypto_libraries nextduo_crypto_libraries)
449-
#add_subdirectory(${CORE_LIB_DIR}/netxduo/nx_secure nextduo_nx_secure)
450-
451448
# Append Azure IoT file if the user wants it
452449
if(NXD_ENABLE_AZURE_IOT)
453450
list(APPEND SOURCES
@@ -460,16 +457,10 @@ if(NXD_ENABLE_AZURE_IOT)
460457

461458
set(ENV{AZ_SDK_C_NO_SAMPLES} TRUE)
462459
add_subdirectory(${CORE_LIB_DIR}/netxduo/addons/azure_iot/azure-sdk-for-c azure_sdk_for_c)
463-
target_link_libraries(${TARGET}
460+
target_link_libraries(${TARGET}
464461
PUBLIC
465-
az::iot::hub
462+
az::iot::hub
466463
az::iot::provisioning)
467-
468-
if(${NX_AZURE_DISABLE_IOT_SECURITY_MODULE})
469-
target_compile_definitions(${TARGET} PUBLIC -DNX_AZURE_DISABLE_IOT_SECURITY_MODULE)
470-
else()
471-
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/azure_iot/azure_iot_security_module)
472-
endif()
473464
endif()
474465

475466
target_sources(${TARGET}
@@ -480,6 +471,7 @@ target_sources(${TARGET}
480471
target_compile_definitions(${TARGET}
481472
PUBLIC
482473
NX_INCLUDE_USER_DEFINE_FILE
474+
NX_AZURE_DISABLE_IOT_SECURITY_MODULE
483475
)
484476

485477
target_include_directories(${TARGET}

core/lib/netxduo

core/lib/threadx

0 commit comments

Comments
 (0)