Skip to content

Commit

Permalink
Apply 2.12.0 release update
Browse files Browse the repository at this point in the history
Signed-off-by: Susan Su <[email protected]>
  • Loading branch information
MCUSDK Jenkins CI authored and mcuxsusan committed Jul 22, 2022
1 parent ed1fbc8 commit 48ad5c0
Show file tree
Hide file tree
Showing 60,488 changed files with 3,280,273 additions and 2,525,979 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ add_executable(${MCUX_SDK_PROJECT_NAME}
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/inc/azure/core/_az_cfg.h"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/inc/azure/core/_az_cfg_prefix.h"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/inc/azure/core/_az_cfg_suffix.h"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/inc/azure/core/az_base64.h"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/inc/azure/core/az_config.h"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/inc/azure/core/az_context.h"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/inc/azure/core/az_credentials.h"
Expand All @@ -80,8 +81,10 @@ add_executable(${MCUX_SDK_PROJECT_NAME}
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/inc/azure/core/internal/az_span_internal.h"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/inc/azure/iot/az_iot_common.h"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/inc/azure/iot/az_iot_hub_client.h"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/inc/azure/iot/az_iot_hub_client_properties.h"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/inc/azure/iot/az_iot_provisioning_client.h"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/inc/azure/iot/internal/az_iot_common_internal.h"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/src/azure/core/az_base64.c"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/src/azure/core/az_context.c"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/src/azure/core/az_hex_private.h"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/src/azure/core/az_http_header_validation_private.h"
Expand All @@ -104,7 +107,9 @@ add_executable(${MCUX_SDK_PROJECT_NAME}
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/src/azure/iot/az_iot_common.c"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/src/azure/iot/az_iot_hub_client.c"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/src/azure/iot/az_iot_hub_client_c2d.c"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/src/azure/iot/az_iot_hub_client_commands.c"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/src/azure/iot/az_iot_hub_client_methods.c"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/src/azure/iot/az_iot_hub_client_properties.c"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/src/azure/iot/az_iot_hub_client_sas.c"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/src/azure/iot/az_iot_hub_client_telemetry.c"
"${ProjDirPath}/../azure_iot/azure-sdk-for-c/sdk/src/azure/iot/az_iot_hub_client_twin.c"
Expand Down Expand Up @@ -288,8 +293,13 @@ add_executable(${MCUX_SDK_PROJECT_NAME}
"${ProjDirPath}/../azure_iot/azure_iot_security_module/src/utils/os_utils.c"
"${ProjDirPath}/../azure_iot/nx_azure_iot.c"
"${ProjDirPath}/../azure_iot/nx_azure_iot.h"
"${ProjDirPath}/../azure_iot/nx_azure_iot_adu_agent.c"
"${ProjDirPath}/../azure_iot/nx_azure_iot_adu_agent.h"
"${ProjDirPath}/../azure_iot/nx_azure_iot_adu_root_key.c"
"${ProjDirPath}/../azure_iot/nx_azure_iot_hub_client.c"
"${ProjDirPath}/../azure_iot/nx_azure_iot_hub_client.h"
"${ProjDirPath}/../azure_iot/nx_azure_iot_hub_client_properties.c"
"${ProjDirPath}/../azure_iot/nx_azure_iot_hub_client_properties.h"
"${ProjDirPath}/../azure_iot/nx_azure_iot_json_reader.c"
"${ProjDirPath}/../azure_iot/nx_azure_iot_json_reader.h"
"${ProjDirPath}/../azure_iot/nx_azure_iot_json_writer.c"
Expand Down Expand Up @@ -399,7 +409,7 @@ include(driver_enet)

include(driver_phy-common)

include(utilities_misc_utilities)
include(utilities_misc_utilities_MIMXRT1052)

include(device_system)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,12 @@ SET(CMAKE_ASM_FLAGS_SDRAM_DEBUG " \
-DDEBUG \
-D__STARTUP_INITIALIZE_NONCACHEDATA \
-DTX_ENABLE_FPU_SUPPORT=1 \
-g \
-mcpu=cortex-m7 \
-Wall \
-mfloat-abi=hard \
-mfpu=fpv5-d16 \
-mthumb \
-x \
assembler-with-cpp \
-fno-common \
-ffunction-sections \
-fdata-sections \
-ffreestanding \
-fno-builtin \
-mapcs \
-std=gnu99 \
")
SET(CMAKE_ASM_FLAGS_SDRAM_RELEASE " \
${CMAKE_ASM_FLAGS_SDRAM_RELEASE} \
Expand All @@ -27,41 +18,24 @@ SET(CMAKE_ASM_FLAGS_SDRAM_RELEASE " \
-D__STARTUP_INITIALIZE_NONCACHEDATA \
-DTX_ENABLE_FPU_SUPPORT=1 \
-mcpu=cortex-m7 \
-Wall \
-mfloat-abi=hard \
-mfpu=fpv5-d16 \
-mthumb \
-x \
assembler-with-cpp \
-fno-common \
-ffunction-sections \
-fdata-sections \
-ffreestanding \
-fno-builtin \
-mapcs \
-std=gnu99 \
")
SET(CMAKE_ASM_FLAGS_FLEXSPI_NOR_DEBUG " \
${CMAKE_ASM_FLAGS_FLEXSPI_NOR_DEBUG} \
-D__STARTUP_CLEAR_BSS \
-DDEBUG \
-D__STARTUP_INITIALIZE_NONCACHEDATA \
-DTX_ENABLE_FPU_SUPPORT=1 \
-g \
-mcpu=cortex-m7 \
-Wall \
-mfloat-abi=hard \
-mfpu=fpv5-d16 \
-mthumb \
-x \
assembler-with-cpp \
-fno-common \
-ffunction-sections \
-fdata-sections \
-ffreestanding \
-fno-builtin \
-mapcs \
-std=gnu99 \
")
SET(CMAKE_ASM_FLAGS_FLEXSPI_NOR_RELEASE " \
${CMAKE_ASM_FLAGS_FLEXSPI_NOR_RELEASE} \
Expand All @@ -70,19 +44,11 @@ SET(CMAKE_ASM_FLAGS_FLEXSPI_NOR_RELEASE " \
-D__STARTUP_INITIALIZE_NONCACHEDATA \
-DTX_ENABLE_FPU_SUPPORT=1 \
-mcpu=cortex-m7 \
-Wall \
-mfloat-abi=hard \
-mfpu=fpv5-d16 \
-mthumb \
-x \
assembler-with-cpp \
-fno-common \
-ffunction-sections \
-fdata-sections \
-ffreestanding \
-fno-builtin \
-mapcs \
-std=gnu99 \
")
SET(CMAKE_C_FLAGS_SDRAM_DEBUG " \
${CMAKE_C_FLAGS_SDRAM_DEBUG} \
Expand All @@ -101,6 +67,7 @@ SET(CMAKE_C_FLAGS_SDRAM_DEBUG " \
-DNX_INCLUDE_USER_DEFINE_FILE \
-DFX_INCLUDE_USER_DEFINE_FILE \
-DTX_INCLUDE_USER_DEFINE_FILE \
-DFSL_RTOS_THREADX \
-DMCUXPRESSO_SDK \
-g \
-O0 \
Expand Down Expand Up @@ -136,6 +103,7 @@ SET(CMAKE_C_FLAGS_SDRAM_RELEASE " \
-DNX_INCLUDE_USER_DEFINE_FILE \
-DFX_INCLUDE_USER_DEFINE_FILE \
-DTX_INCLUDE_USER_DEFINE_FILE \
-DFSL_RTOS_THREADX \
-DMCUXPRESSO_SDK \
-Os \
-mcpu=cortex-m7 \
Expand Down Expand Up @@ -166,10 +134,12 @@ SET(CMAKE_C_FLAGS_FLEXSPI_NOR_DEBUG " \
-DPRINTF_ADVANCED_ENABLE=1 \
-DSCANF_ADVANCED_ENABLE=0 \
-DSERIAL_PORT_TYPE_UART=1 \
-DDATA_SECTION_IS_CACHEABLE=1 \
-DAZ_NO_PRECONDITION_CHECKING \
-DNX_INCLUDE_USER_DEFINE_FILE \
-DFX_INCLUDE_USER_DEFINE_FILE \
-DTX_INCLUDE_USER_DEFINE_FILE \
-DFSL_RTOS_THREADX \
-DMCUXPRESSO_SDK \
-g \
-O0 \
Expand Down Expand Up @@ -201,10 +171,12 @@ SET(CMAKE_C_FLAGS_FLEXSPI_NOR_RELEASE " \
-DPRINTF_ADVANCED_ENABLE=1 \
-DSCANF_ADVANCED_ENABLE=0 \
-DSERIAL_PORT_TYPE_UART=1 \
-DDATA_SECTION_IS_CACHEABLE=1 \
-DAZ_NO_PRECONDITION_CHECKING \
-DNX_INCLUDE_USER_DEFINE_FILE \
-DFX_INCLUDE_USER_DEFINE_FILE \
-DTX_INCLUDE_USER_DEFINE_FILE \
-DFSL_RTOS_THREADX \
-DMCUXPRESSO_SDK \
-Os \
-mcpu=cortex-m7 \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#ifndef _az_CORE_H
#define _az_CORE_H

#include <azure/core/az_base64.h>
#include <azure/core/az_config.h>
#include <azure/core/az_context.h>
#include <azure/core/az_credentials.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include <azure/iot/az_iot_common.h>
#include <azure/iot/az_iot_hub_client.h>
#include <azure/iot/az_iot_hub_client_properties.h>
#include <azure/iot/az_iot_provisioning_client.h>

#endif // _az_IOT_CORE_H
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT

/**
* @file
*
* @brief Defines APIs to convert between binary data and UTF-8 encoded text that is represented in
* base 64.
*
* @note You MUST NOT use any symbols (macros, functions, structures, enums, etc.)
* prefixed with an underscore ('_') directly in your application code. These symbols
* are part of Azure SDK's internal implementation; we do not document these symbols
* and they are subject to change in future versions of the SDK which would break your code.
*/

#ifndef _az_BASE64_H
#define _az_BASE64_H

#include <azure/core/az_result.h>
#include <azure/core/az_span.h>

#include <stdint.h>

#include <azure/core/_az_cfg_prefix.h>

/**
* @brief Encodes the span of binary data into UTF-8 encoded text represented as base 64.
*
* @param destination_base64_text The output #az_span where the encoded base 64 text should be
* copied to as a result of the operation.
* @param[in] source_bytes The input #az_span that contains binary data to be encoded.
* @param[out] out_written A pointer to an `int32_t` that receives the number of bytes written into
* the destination #az_span. This can be used to slice the output for subsequent calls, if
* necessary.
*
* @return An #az_result value indicating the result of the operation.
* @retval #AZ_OK Success.
* @retval #AZ_ERROR_NOT_ENOUGH_SPACE The \p destination_base64_text is not large enough to contain
* the encoded bytes.
*/
AZ_NODISCARD az_result
az_base64_encode(az_span destination_base64_text, az_span source_bytes, int32_t* out_written);

/**
* @brief Returns the maximum length of the result if you were to encode an #az_span of the
* specified length which contained binary data.
*
* @param source_bytes_size The size of the span containing binary data.
*
* @return The maximum length of the result.
*/
AZ_NODISCARD int32_t az_base64_get_max_encoded_size(int32_t source_bytes_size);

/**
* @brief Decodes the span of UTF-8 encoded text represented as base 64 into binary data.
*
* @param destination_bytes The output #az_span where the decoded binary data should be copied to as
* a result of the operation.
* @param[in] source_base64_text The input #az_span that contains the base 64 text to be decoded.
* @param[out] out_written A pointer to an `int32_t` that receives the number of bytes written into
* the destination #az_span. This can be used to slice the output for subsequent calls, if
* necessary.
*
* @return An #az_result value indicating the result of the operation.
* @retval #AZ_OK Success.
* @retval #AZ_ERROR_NOT_ENOUGH_SPACE The \p destination_bytes is not large enough to contain
* the decoded text.
* @retval #AZ_ERROR_UNEXPECTED_CHAR The input \p source_base64_text contains characters outside of
* the expected base 64 range, has invalid or more than two padding characters, or is incomplete
* (that is, not a multiple of 4).
* @retval #AZ_ERROR_UNEXPECTED_END The input \p source_base64_text is incomplete (that is, it is
* not of a size which is a multiple of 4).
*/
AZ_NODISCARD az_result
az_base64_decode(az_span destination_bytes, az_span source_base64_text, int32_t* out_written);

/**
* @brief Returns the maximum length of the result if you were to decode an #az_span of the
* specified length which contained base 64 encoded text.
*
* @param source_base64_text_size The size of the span containing base 64 encoded text.
*
* @return The maximum length of the result.
*/
AZ_NODISCARD int32_t az_base64_get_max_decoded_size(int32_t source_base64_text_size);

#include <azure/core/_az_cfg_suffix.h>

#endif // _az_BASE64_H
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,11 @@ typedef struct
/// and it shouldn't be modified by the caller.
az_json_token token;

/// The depth of the current token. This read-only field tracks the recursive depth of the nested
/// objects or arrays within the JSON text processed so far, and it shouldn't be modified by the
/// caller.
int32_t current_depth;

struct
{
/// The first buffer containing the JSON payload.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@

/// The version in string format used for telemetry following the `semver.org` standard
/// (https://semver.org).
#define AZ_SDK_VERSION_STRING "1.1.0"
#define AZ_SDK_VERSION_STRING "1.2.0"

/// Major numeric identifier.
#define AZ_SDK_VERSION_MAJOR 1

/// Minor numeric identifier.
#define AZ_SDK_VERSION_MINOR 1
#define AZ_SDK_VERSION_MINOR 2

/// Patch numeric identifier.
#define AZ_SDK_VERSION_PATCH 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ typedef enum
/// #AZ_SPAN_FROM_STR macro as a parameter, where needed.
#define AZ_IOT_MESSAGE_PROPERTIES_CREATION_TIME "%24.ctime"

/// Name of the component
/// @note It can be used with IoT message property APIs by wrapping the macro in a
/// #AZ_SPAN_FROM_STR macro as a parameter, where needed.
#define AZ_IOT_MESSAGE_COMPONENT_NAME "%24.sub"

/**
* @brief Telemetry or C2D properties.
*
Expand Down
Loading

0 comments on commit 48ad5c0

Please sign in to comment.