Skip to content

Commit

Permalink
blinky: Remove not needed connectivity macros
Browse files Browse the repository at this point in the history
blinky application doesn't connect to AWS so there is no
need to have MQTT and OTA tasks configurations as part of its
application configuration.

Signed-off-by: Ahmed Ismail <Ahmed.Ismail@arm.com>
  • Loading branch information
AhmedIsmail02 authored and urutva committed Mar 28, 2024
1 parent d77ca69 commit 2c555d0
Showing 1 changed file with 4 additions and 34 deletions.
38 changes: 4 additions & 34 deletions applications/blinky/configs/app_config/app_config.h
Original file line number Diff line number Diff line change
@@ -1,39 +1,9 @@
/* Copyright 2023 Arm Limited and/or its affiliates
/* Copyright 2023-2024 Arm Limited and/or its affiliates
* <open-source-office@arm.com>
* SPDX-License-Identifier: MIT
*/

/**
* @brief Subscribe Publish demo tasks configuration.
* Subscribe publish demo task shows the basic functionality of connecting to an MQTT broker, subscribing
* to a topic, publishing messages to a topic and reporting the incoming messages on subscribed topic.
* Number of subscribe publish demo tasks to be spawned is configurable.
*/
#define appCONFIG_MQTT_NUM_PUBSUB_TASKS ( 1 )
#define appCONFIG_MQTT_PUBSUB_TASK_STACK_SIZE ( 2048 )
#define appCONFIG_MQTT_PUBSUB_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 )

/**
* @brief Stack size and priority for MQTT agent task.
* Stack size is capped to an adequate value based on requirements from MbedTLS stack
* for establishing a TLS connection. Task priority of MQTT agent is set to a priority
* higher than other MQTT application tasks, so that the agent can drain the queue
* as work is being produced.
*/
#define appCONFIG_MQTT_AGENT_TASK_STACK_SIZE ( 4096 )
#define appCONFIG_MQTT_AGENT_TASK_PRIORITY ( tskIDLE_PRIORITY + 2 )

/**
* @brief Stack size and priority for OTA MQTT agent task.
* Stack size is capped to an adequate value based on requirements from MbedTLS stack
* for establishing a TLS connection. Task priority of OTA MQTT agent is set to a priority
* higher than other MQTT application tasks, so that the agent can drain the queue
* as work is being produced.
*/
#define appCONFIG_OTA_MQTT_AGENT_TASK_STACK_SIZE ( 4096 )
#define appCONFIG_OTA_MQTT_AGENT_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 )

/** @brief Set logging task as high priority task */
#define appCONFIG_LOGGING_TASK_PRIORITY ( configMAX_PRIORITIES - 1 )
#define appCONFIG_LOGGING_TASK_STACK_SIZE ( 2048 )
#define appCONFIG_LOGGING_MESSAGE_QUEUE_LENGTH ( 32 )
#define appCONFIG_LOGGING_TASK_PRIORITY ( configMAX_PRIORITIES - 1 )
#define appCONFIG_LOGGING_TASK_STACK_SIZE ( 2048 )
#define appCONFIG_LOGGING_MESSAGE_QUEUE_LENGTH ( 32 )

0 comments on commit 2c555d0

Please sign in to comment.