-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QPG] Fix shell app #15094
Merged
Merged
[QPG] Fix shell app #15094
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
2213a33
Fix shell app build; separate project configs for each project; add Q…
lucicop 98c417d
Update qpg_sdk with changed file
lucicop c84893a
Remove last old config include points
tima-q 14d07c5
Merge pull request #2 from tima-q/luco/shell_fix
lucicop 9aa986b
Disable stack lock tracking in shell app (#3)
tima-q 4d56917
Fix chip-gn build (#4)
tima-q f41792c
Merge branch 'master' into fix_shell_app
tima-q File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
/* | ||
* | ||
* Copyright (c) 2020 Project CHIP Authors | ||
* Copyright (c) 2019 Google LLC. | ||
* All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* @file | ||
* Example project configuration file for CHIP. | ||
* | ||
* This is a place to put application or project-specific overrides | ||
* to the default configuration values for general CHIP features. | ||
* | ||
*/ | ||
|
||
#pragma once | ||
|
||
// Use a default setup PIN code if one hasn't been provisioned in flash. | ||
#ifndef CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE | ||
#define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 20202021 | ||
#endif | ||
#ifndef CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR | ||
#define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00 | ||
#endif | ||
|
||
// Use a default pairing code if one hasn't been provisioned in flash. | ||
#define CHIP_DEVICE_CONFIG_USE_TEST_PAIRING_CODE "CHIPUS" | ||
|
||
// For convenience, enable Chip Security Test Mode and disable the requirement for | ||
// authentication in various protocols. | ||
// | ||
// WARNING: These options make it possible to circumvent basic Chip security functionality, | ||
// including message encryption. Because of this they MUST NEVER BE ENABLED IN PRODUCTION BUILDS. | ||
// | ||
#define CHIP_CONFIG_SECURITY_TEST_MODE 0 | ||
#define CHIP_CONFIG_REQUIRE_AUTH 1 | ||
|
||
/** | ||
* CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID | ||
* | ||
* 0xFFF1: Test vendor | ||
*/ | ||
#define CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID 0xFFF1 | ||
|
||
/** | ||
* CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID | ||
* | ||
* 0x8005: example lighting app | ||
*/ | ||
#define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID 0x8005 | ||
|
||
/** | ||
* CHIP_DEVICE_CONFIG_DEVICE_HARDWARE_VERSION | ||
* | ||
* The hardware version number assigned to device or product by the device vendor. This | ||
* number is scoped to the device product id, and typically corresponds to a revision of the | ||
* physical device, a change to its packaging, and/or a change to its marketing presentation. | ||
* This value is generally *not* incremented for device software versions. | ||
*/ | ||
#define CHIP_DEVICE_CONFIG_DEVICE_HARDWARE_VERSION 1 | ||
|
||
/** | ||
* CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING | ||
* | ||
* A string identifying the software version running on the device. | ||
* CHIP service currently expects the software version to be in the format | ||
* {MAJOR_VERSION}.0d{MINOR_VERSION} | ||
*/ | ||
#ifndef CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING | ||
#define CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING "0.1ALPHA" | ||
#endif | ||
/** | ||
* CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE | ||
* | ||
* Enable support for Chip-over-BLE (CHIPoBLE). | ||
*/ | ||
#define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 1 | ||
|
||
/** | ||
* CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC | ||
* | ||
* Enables synchronizing the device's real time clock with a remote Chip Time service | ||
* using the Chip Time Sync protocol. | ||
*/ | ||
#define CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC 0 | ||
|
||
/** | ||
* CHIP_DEVICE_CONFIG_TEST_SERIAL_NUMBER | ||
* | ||
* Enables the use of a hard-coded default serial number if none | ||
* is found in Chip NV storage. | ||
*/ | ||
#define CHIP_DEVICE_CONFIG_TEST_SERIAL_NUMBER "TEST_SN" | ||
|
||
/** | ||
* CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE | ||
* | ||
* A size, in bytes, of the individual debug event logging buffer. | ||
*/ | ||
#define CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE (512) | ||
|
||
/** | ||
* CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI | ||
* | ||
* Enable Thread CLI interface at initialisation. | ||
*/ | ||
#define CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI 1 | ||
|
||
/** | ||
* @def CHIP_CONFIG_MAX_FABRICS | ||
* | ||
* @brief | ||
* Maximum number of fabrics the device can participate in. Each fabric can | ||
* provision the device with its unique operational credentials and manage | ||
* its own access control lists. | ||
*/ | ||
#define CHIP_CONFIG_MAX_FABRICS 4 // 3 fabrics + 1 for rotation slack | ||
|
||
/** | ||
* @name Interaction Model object pool configuration. | ||
* | ||
* @brief | ||
* The following definitions sets the maximum number of corresponding interaction model object pool size. | ||
* | ||
* * #CHIP_IM_MAX_NUM_COMMAND_HANDLER | ||
* * #CHIP_IM_MAX_NUM_READ_HANDLER | ||
* * #CHIP_IM_MAX_REPORTS_IN_FLIGHT | ||
* * #CHIP_IM_SERVER_MAX_NUM_PATH_GROUPS | ||
* * #CHIP_IM_MAX_NUM_WRITE_HANDLER | ||
* * #CHIP_IM_MAX_NUM_WRITE_CLIENT | ||
* | ||
* @{ | ||
*/ | ||
|
||
/** | ||
* @def CHIP_IM_MAX_NUM_COMMAND_HANDLER | ||
* | ||
* @brief Defines the maximum number of CommandHandler, limits the number of active commands transactions on server. | ||
*/ | ||
#define CHIP_IM_MAX_NUM_COMMAND_HANDLER 2 | ||
|
||
/** | ||
* @def CHIP_IM_MAX_NUM_READ_HANDLER | ||
* | ||
* @brief Defines the maximum number of ReadHandler, limits the number of active read transactions on server. | ||
*/ | ||
#define CHIP_IM_MAX_NUM_READ_HANDLER 3 | ||
|
||
/** | ||
* @def CHIP_IM_MAX_REPORTS_IN_FLIGHT | ||
* | ||
* @brief Defines the maximum number of Reports, limits the traffic of read and subscription transactions. | ||
*/ | ||
#define CHIP_IM_MAX_REPORTS_IN_FLIGHT 2 | ||
|
||
/** | ||
* @def CHIP_IM_SERVER_MAX_NUM_PATH_GROUPS | ||
* | ||
* @brief Defines the maximum number of path objects, limits the number of attributes being read or subscribed at the same time. | ||
*/ | ||
#define CHIP_IM_SERVER_MAX_NUM_PATH_GROUPS 9 | ||
|
||
/** | ||
* @def CHIP_IM_MAX_NUM_WRITE_HANDLER | ||
* | ||
* @brief Defines the maximum number of WriteHandler, limits the number of active write transactions on server. | ||
*/ | ||
#define CHIP_IM_MAX_NUM_WRITE_HANDLER 2 | ||
|
||
/** | ||
* @def CHIP_IM_MAX_NUM_WRITE_CLIENT | ||
* | ||
* @brief Defines the maximum number of WriteClient, limits the number of active write transactions on client. | ||
*/ | ||
#define CHIP_IM_MAX_NUM_WRITE_CLIENT 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is dead, please remove