Skip to content

Commit

Permalink
Uncrustify: triggered by comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 16, 2024
1 parent e768c01 commit 6708d43
Show file tree
Hide file tree
Showing 11 changed files with 155 additions and 155 deletions.
22 changes: 11 additions & 11 deletions main/demo_tasks/ota_over_mqtt_demo/ota_over_mqtt_demo.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@
*/

#ifndef OTA_OVER_MQTT_DEMO_H
#define OTA_OVER_MQTT_DEMO_H
#define OTA_OVER_MQTT_DEMO_H

#include "freertos/FreeRTOS.h"
#include "core_mqtt_agent.h"
#include "freertos/FreeRTOS.h"
#include "core_mqtt_agent.h"

#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif

/**
* @brief Starts the OTA codesigning demo.
*/
void vStartOTACodeSigningDemo( void );
void vStartOTACodeSigningDemo( void );

/**
* @brief Default callback used to receive default messages for OTA.
Expand All @@ -52,11 +52,11 @@ void vStartOTACodeSigningDemo( void );
*
* @return true if the message is processed by OTA.
*/
bool vOTAProcessMessage( void * pvIncomingPublishCallbackContext,
MQTTPublishInfo_t * pxPublishInfo );
bool vOTAProcessMessage( void * pvIncomingPublishCallbackContext,
MQTTPublishInfo_t * pxPublishInfo );

#ifdef __cplusplus
#ifdef __cplusplus
}
#endif
#endif

#endif /* OTA_OVER_MQTT_DEMO_H */
44 changes: 22 additions & 22 deletions main/demo_tasks/ota_over_mqtt_demo/ota_over_mqtt_demo_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,80 +25,80 @@
*/

#ifndef OTA_OVER_MQTT_DEMO_CONFIG_H
#define OTA_OVER_MQTT_DEMO_CONFIG_H
#define OTA_OVER_MQTT_DEMO_CONFIG_H

/* ESP-IDF sdkconfig include. */
#include <sdkconfig.h>
#include <sdkconfig.h>

#if CONFIG_GRI_RUN_QUALIFICATION_TEST
#include "qualification_wrapper_config.h"
#endif /* CONFIG_GRI_RUN_QUALIFICATION_TEST */
#if CONFIG_GRI_RUN_QUALIFICATION_TEST
#include "qualification_wrapper_config.h"
#endif /* CONFIG_GRI_RUN_QUALIFICATION_TEST */

#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif

/**
* @brief The thing name of the device.
*/
#define otademoconfigCLIENT_IDENTIFIER ( CONFIG_GRI_THING_NAME )
#define otademoconfigCLIENT_IDENTIFIER ( CONFIG_GRI_THING_NAME )

/**
* @brief The maximum size of the file paths used in the demo.
*/
#define otademoconfigMAX_FILE_PATH_SIZE ( CONFIG_GRI_OTA_DEMO_MAX_FILE_PATH_SIZE )
#define otademoconfigMAX_FILE_PATH_SIZE ( CONFIG_GRI_OTA_DEMO_MAX_FILE_PATH_SIZE )

/**
* @brief The maximum size of the stream name required for downloading update file
* from streaming service.
*/
#define otademoconfigMAX_STREAM_NAME_SIZE ( CONFIG_GRI_OTA_DEMO_MAX_STREAM_NAME_SIZE )
#define otademoconfigMAX_STREAM_NAME_SIZE ( CONFIG_GRI_OTA_DEMO_MAX_STREAM_NAME_SIZE )

/**
* @brief The delay used in the OTA demo task to periodically output the OTA
* statistics like number of packets received, dropped, processed and queued per connection.
*/
#define otademoconfigTASK_DELAY_MS ( CONFIG_GRI_OTA_DEMO_TASK_DELAY_MS )
#define otademoconfigTASK_DELAY_MS ( CONFIG_GRI_OTA_DEMO_TASK_DELAY_MS )

/**
* @brief The maximum time for which OTA demo waits for an MQTT operation to be complete.
* This involves receiving an acknowledgment for broker for SUBSCRIBE, UNSUBSCRIBE and non
* QOS0 publishes.
*/
#define otademoconfigMQTT_TIMEOUT_MS ( CONFIG_GRI_OTA_DEMO_MQTT_TIMEOUT_MS )
#define otademoconfigMQTT_TIMEOUT_MS ( CONFIG_GRI_OTA_DEMO_MQTT_TIMEOUT_MS )

/**
* @brief The task priority of OTA agent task.
*/
#define otademoconfigAGENT_TASK_PRIORITY ( CONFIG_GRI_OTA_DEMO_AGENT_TASK_PRIORITY )
#define otademoconfigAGENT_TASK_PRIORITY ( CONFIG_GRI_OTA_DEMO_AGENT_TASK_PRIORITY )

/**
* @brief The stack size of OTA agent task.
*/
#define otademoconfigAGENT_TASK_STACK_SIZE ( CONFIG_GRI_OTA_DEMO_AGENT_TASK_STACK_SIZE )
#define otademoconfigAGENT_TASK_STACK_SIZE ( CONFIG_GRI_OTA_DEMO_AGENT_TASK_STACK_SIZE )

/**
* @brief The task priority of the OTA demo task.
*/
#define otademoconfigDEMO_TASK_PRIORITY ( CONFIG_GRI_OTA_DEMO_DEMO_TASK_PRIORITY )
#define otademoconfigDEMO_TASK_PRIORITY ( CONFIG_GRI_OTA_DEMO_DEMO_TASK_PRIORITY )

/**
* @brief The task stack size of the OTA demo task.
*/
#define otademoconfigDEMO_TASK_STACK_SIZE ( CONFIG_GRI_OTA_DEMO_DEMO_TASK_STACK_SIZE )
#define otademoconfigDEMO_TASK_STACK_SIZE ( CONFIG_GRI_OTA_DEMO_DEMO_TASK_STACK_SIZE )

/**
* @brief The version for the firmware which is running. OTA agent uses this
* version number to perform anti-rollback validation. The firmware version for the
* download image should be higher than the current version, otherwise the new image is
* rejected in self test phase.
*/
#define APP_VERSION_MAJOR ( CONFIG_GRI_OTA_DEMO_APP_VERSION_MAJOR )
#define APP_VERSION_MINOR ( CONFIG_GRI_OTA_DEMO_APP_VERSION_MINOR )
#define APP_VERSION_BUILD ( CONFIG_GRI_OTA_DEMO_APP_VERSION_BUILD )
#define APP_VERSION_MAJOR ( CONFIG_GRI_OTA_DEMO_APP_VERSION_MAJOR )
#define APP_VERSION_MINOR ( CONFIG_GRI_OTA_DEMO_APP_VERSION_MINOR )
#define APP_VERSION_BUILD ( CONFIG_GRI_OTA_DEMO_APP_VERSION_BUILD )

#ifdef __cplusplus
#ifdef __cplusplus
}
#endif
#endif

#endif /* OTA_OVER_MQTT_DEMO_CONFIG_H */
14 changes: 7 additions & 7 deletions main/demo_tasks/sub_pub_unsub_demo/sub_pub_unsub_demo.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@
*/

#ifndef SUB_PUB_UNSUB_DEMO_H
#define SUB_PUB_UNSUB_DEMO_H
#define SUB_PUB_UNSUB_DEMO_H

#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif

/**
* @brief This function starts the SubPubUnsub demo.
*/
void vStartSubscribePublishUnsubscribeDemo( void );
void vStartSubscribePublishUnsubscribeDemo( void );

#ifdef __cplusplus
#ifdef __cplusplus
}
#endif
#endif

#endif /* SUB_PUB_UNSUB_DEMO_H */
34 changes: 17 additions & 17 deletions main/demo_tasks/sub_pub_unsub_demo/sub_pub_unsub_demo_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,62 +25,62 @@
*/

#ifndef SUB_PUB_UNSUB_DEMO_CONFIG_H
#define SUB_PUB_UNSUB_DEMO_CONFIG_H
#define SUB_PUB_UNSUB_DEMO_CONFIG_H

/* ESP-IDF sdkconfig include. */
#include <sdkconfig.h>
#include <sdkconfig.h>

#if CONFIG_GRI_RUN_QUALIFICATION_TEST
#include "qualification_wrapper_config.h"
#endif /* CONFIG_GRI_RUN_QUALIFICATION_TEST */
#if CONFIG_GRI_RUN_QUALIFICATION_TEST
#include "qualification_wrapper_config.h"
#endif /* CONFIG_GRI_RUN_QUALIFICATION_TEST */

#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif

/**
* @brief Size of statically allocated buffers for holding topic names and
* payloads.
*/
#define subpubunsubconfigSTRING_BUFFER_LENGTH ( ( unsigned int ) ( CONFIG_GRI_SUB_PUB_UNSUB_DEMO_STRING_BUFFER_LENGTH ) )
#define subpubunsubconfigSTRING_BUFFER_LENGTH ( ( unsigned int ) ( CONFIG_GRI_SUB_PUB_UNSUB_DEMO_STRING_BUFFER_LENGTH ) )

/**
* @brief Delay for each task between subscription, publish, unsubscription
* loops.
*/
#define subpubunsubconfigDELAY_BETWEEN_SUB_PUB_UNSUB_LOOPS_MS ( ( unsigned int ) ( CONFIG_GRI_SUB_PUB_UNSUB_DEMO_DELAY_BETWEEN_SUB_PUB_UNSUB_LOOPS_MS ) )
#define subpubunsubconfigDELAY_BETWEEN_SUB_PUB_UNSUB_LOOPS_MS ( ( unsigned int ) ( CONFIG_GRI_SUB_PUB_UNSUB_DEMO_DELAY_BETWEEN_SUB_PUB_UNSUB_LOOPS_MS ) )

/**
* @brief The maximum amount of time in milliseconds to wait for the commands
* to be posted to the MQTT agent should the MQTT agent's command queue be full.
* Tasks wait in the Blocked state, so don't use any CPU time.
*/
#define subpubunsubconfigMAX_COMMAND_SEND_BLOCK_TIME_MS ( ( unsigned int ) ( CONFIG_GRI_SUB_PUB_UNSUB_DEMO_MAX_COMMAND_SEND_BLOCK_TIME_MS ) )
#define subpubunsubconfigMAX_COMMAND_SEND_BLOCK_TIME_MS ( ( unsigned int ) ( CONFIG_GRI_SUB_PUB_UNSUB_DEMO_MAX_COMMAND_SEND_BLOCK_TIME_MS ) )

/**
* @brief The QoS level of MQTT messages sent by this demo. This must be 0 or 1
* if using AWS as AWS only supports levels 0 or 1. If using another MQTT broker
* that supports QoS level 2, this can be set to 2.
*/
#define subpubunsubconfigQOS_LEVEL ( ( unsigned long ) ( CONFIG_GRI_SUB_PUB_UNSUB_DEMO_QOS_LEVEL ) )
#define subpubunsubconfigQOS_LEVEL ( ( unsigned long ) ( CONFIG_GRI_SUB_PUB_UNSUB_DEMO_QOS_LEVEL ) )

/**
* @brief The number of SubPubUnsub tasks to create for this demo.
*/
#define subpubunsubconfigNUM_TASKS_TO_CREATE ( ( unsigned long ) ( CONFIG_GRI_SUB_PUB_UNSUB_DEMO_NUM_TASKS_TO_CREATE ) )
#define subpubunsubconfigNUM_TASKS_TO_CREATE ( ( unsigned long ) ( CONFIG_GRI_SUB_PUB_UNSUB_DEMO_NUM_TASKS_TO_CREATE ) )

/**
* @brief The task priority of each of the SubPubUnsub tasks.
*/
#define subpubunsubconfigTASK_PRIORITY ( ( unsigned int ) ( CONFIG_GRI_SUB_PUB_UNSUB_DEMO_TASK_PRIORITY ) )
#define subpubunsubconfigTASK_PRIORITY ( ( unsigned int ) ( CONFIG_GRI_SUB_PUB_UNSUB_DEMO_TASK_PRIORITY ) )

/**
* @brief The task stack size for each of the SubPubUnsub tasks.
*/
#define subpubunsubconfigTASK_STACK_SIZE ( ( unsigned int ) ( CONFIG_GRI_SUB_PUB_UNSUB_DEMO_TASK_STACK_SIZE ) )
#define subpubunsubconfigTASK_STACK_SIZE ( ( unsigned int ) ( CONFIG_GRI_SUB_PUB_UNSUB_DEMO_TASK_STACK_SIZE ) )

#ifdef __cplusplus
#ifdef __cplusplus
}
#endif
#endif

#endif /* SUB_PUB_UNSUB_DEMO_CONFIG_H */
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@
*/

#ifndef TEMP_SUB_PUB_AND_LED_CONTROL_DEMO_H
#define TEMP_SUB_PUB_AND_LED_CONTROL_DEMO_H
#define TEMP_SUB_PUB_AND_LED_CONTROL_DEMO_H

#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif

/**
* @brief This function starts the Temp Sub Pub and LED Control demo.
*/
void vStartTempSubPubAndLEDControlDemo( void );
void vStartTempSubPubAndLEDControlDemo( void );

#ifdef __cplusplus
#ifdef __cplusplus
}
#endif
#endif

#endif /* TEMP_SUB_PUB_AND_LED_CONTROL_DEMO_H */
Original file line number Diff line number Diff line change
Expand Up @@ -25,52 +25,52 @@
*/

#ifndef TEMP_SUB_PUB_AND_LED_CONTROL_DEMO_CONFIG_H
#define TEMP_SUB_PUB_AND_LED_CONTROL_DEMO_CONFIG_H
#define TEMP_SUB_PUB_AND_LED_CONTROL_DEMO_CONFIG_H

/* ESP-IDF sdkconfig include. */
#include <sdkconfig.h>
#include <sdkconfig.h>

#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif

/**
* @brief Size of statically allocated buffers for holding topic names and
* payloads.
*/
#define temppubsubandledcontrolconfigSTRING_BUFFER_LENGTH ( ( unsigned int ) ( CONFIG_GRI_TEMPERATURE_PUB_SUB_AND_LED_CONTROL_DEMO_STRING_BUFFER_LENGTH ) )
#define temppubsubandledcontrolconfigSTRING_BUFFER_LENGTH ( ( unsigned int ) ( CONFIG_GRI_TEMPERATURE_PUB_SUB_AND_LED_CONTROL_DEMO_STRING_BUFFER_LENGTH ) )

/**
* @brief Delay for the synchronous publisher task between publishes.
*/
#define temppubsubandledcontrolconfigDELAY_BETWEEN_PUBLISH_OPERATIONS_MS ( ( unsigned int ) ( CONFIG_GRI_TEMPERATURE_PUB_SUB_AND_LED_CONTROL_DEMO_DELAY_BETWEEN_PUBLISH_OPERATIONS_MS ) )
#define temppubsubandledcontrolconfigDELAY_BETWEEN_PUBLISH_OPERATIONS_MS ( ( unsigned int ) ( CONFIG_GRI_TEMPERATURE_PUB_SUB_AND_LED_CONTROL_DEMO_DELAY_BETWEEN_PUBLISH_OPERATIONS_MS ) )

/**
* @brief The maximum amount of time in milliseconds to wait for the commands
* to be posted to the MQTT agent should the MQTT agent's command queue be full.
* Tasks wait in the Blocked state, so don't use any CPU time.
*/
#define temppubsubandledcontrolconfigMAX_COMMAND_SEND_BLOCK_TIME_MS ( ( unsigned int ) ( CONFIG_GRI_TEMPERATURE_PUB_SUB_AND_LED_CONTROL_DEMO_MAX_COMMAND_SEND_BLOCK_TIME_MS ) )
#define temppubsubandledcontrolconfigMAX_COMMAND_SEND_BLOCK_TIME_MS ( ( unsigned int ) ( CONFIG_GRI_TEMPERATURE_PUB_SUB_AND_LED_CONTROL_DEMO_MAX_COMMAND_SEND_BLOCK_TIME_MS ) )

/**
* @brief The QoS level of MQTT messages sent by this demo. This must be 0 or 1
* if using AWS as AWS only supports levels 0 or 1. If using another MQTT broker
* that supports QoS level 2, this can be set to 2.
*/
#define temppubsubandledcontrolconfigQOS_LEVEL ( ( unsigned long ) ( CONFIG_GRI_TEMPERATURE_PUB_SUB_AND_LED_CONTROL_DEMO_QOS_LEVEL ) )
#define temppubsubandledcontrolconfigQOS_LEVEL ( ( unsigned long ) ( CONFIG_GRI_TEMPERATURE_PUB_SUB_AND_LED_CONTROL_DEMO_QOS_LEVEL ) )

/**
* @brief The task priority of temperature pub sub and LED control task.
*/
#define temppubsubandledcontrolconfigTASK_PRIORITY ( ( unsigned int ) ( CONFIG_GRI_TEMPERATURE_PUB_SUB_AND_LED_CONTROL_DEMO_TASK_PRIORITY ) )
#define temppubsubandledcontrolconfigTASK_PRIORITY ( ( unsigned int ) ( CONFIG_GRI_TEMPERATURE_PUB_SUB_AND_LED_CONTROL_DEMO_TASK_PRIORITY ) )

/**
* @brief The task stack size of temperature pub sub and LED control task.
*/
#define temppubsubandledcontrolconfigTASK_STACK_SIZE ( ( unsigned int ) ( CONFIG_GRI_TEMPERATURE_PUB_SUB_AND_LED_CONTROL_DEMO_TASK_STACK_SIZE ) )
#define temppubsubandledcontrolconfigTASK_STACK_SIZE ( ( unsigned int ) ( CONFIG_GRI_TEMPERATURE_PUB_SUB_AND_LED_CONTROL_DEMO_TASK_STACK_SIZE ) )

#ifdef __cplusplus
#ifdef __cplusplus
}
#endif
#endif

#endif /* TEMP_SUB_PUB_AND_LED_CONTROL_DEMO_CONFIG_H */
Loading

0 comments on commit 6708d43

Please sign in to comment.