Skip to content

Commit a19b540

Browse files
authored
Merge branch 'master' into initialization_fiasco
2 parents 42026d5 + 8a4dffc commit a19b540

File tree

200 files changed

+1964
-722
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+1964
-722
lines changed

examples/all-clusters-app/asr/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#pragma once
2020

2121
#include "AppEvent.h"
22-
#include <ble/BLEEndPoint.h>
22+
#include <ble/Ble.h>
2323
#include <lega_rtos_api.h>
2424
#include <platform/CHIPDeviceLayer.h>
2525
#include <stdbool.h>

examples/all-clusters-app/infineon/psoc6/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "AppEvent.h"
2727
#include "FreeRTOS.h"
2828
#include "timers.h" // provides FreeRTOS timer support
29-
#include <ble/BLEEndPoint.h>
29+
#include <ble/Ble.h>
3030
#include <platform/CHIPDeviceLayer.h>
3131

3232
// Application-defined error codes in the CHIP_ERROR space.

examples/all-clusters-minimal-app/asr/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "AppEvent.h"
2525
#include "FreeRTOS.h"
2626
#include "timers.h" // provides FreeRTOS timer support
27-
#include <ble/BLEEndPoint.h>
27+
#include <ble/Ble.h>
2828
#include <platform/CHIPDeviceLayer.h>
2929

3030
// Application-defined error codes in the CHIP_ERROR space.

examples/all-clusters-minimal-app/infineon/psoc6/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "AppEvent.h"
2727
#include "FreeRTOS.h"
2828
#include "timers.h" // provides FreeRTOS timer support
29-
#include <ble/BLEEndPoint.h>
29+
#include <ble/Ble.h>
3030
#include <platform/CHIPDeviceLayer.h>
3131

3232
// Application-defined error codes in the CHIP_ERROR space.

examples/chef/silabs/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#include "AppEvent.h"
3030
#include "BaseApplication.h"
31-
#include <ble/BLEEndPoint.h>
31+
#include <ble/Ble.h>
3232
#include <cmsis_os2.h>
3333
#include <lib/core/CHIPError.h>
3434
#include <platform/CHIPDeviceLayer.h>

examples/light-switch-app/asr/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#include "FreeRTOS.h"
2727
#include "timers.h" // provides FreeRTOS timer support
28-
#include <ble/BLEEndPoint.h>
28+
#include <ble/Ble.h>
2929
#include <platform/CHIPDeviceLayer.h>
3030

3131
// Application-defined error codes in the CHIP_ERROR space.

examples/light-switch-app/silabs/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#include "AppEvent.h"
3030
#include "BaseApplication.h"
31-
#include <ble/BLEEndPoint.h>
31+
#include <ble/Ble.h>
3232
#include <cmsis_os2.h>
3333
#include <lib/core/CHIPError.h>
3434
#include <platform/CHIPDeviceLayer.h>

examples/lighting-app/infineon/psoc6/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
#include "FreeRTOS.h"
2929
#include "timers.h" // provides FreeRTOS timer support
30-
#include <ble/BLEEndPoint.h>
30+
#include <ble/Ble.h>
3131
#include <platform/CHIPDeviceLayer.h>
3232

3333
// Application-defined error codes in the CHIP_ERROR space.

examples/lighting-app/silabs/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "AppEvent.h"
3030
#include "BaseApplication.h"
3131
#include "LightingManager.h"
32-
#include <ble/BLEEndPoint.h>
32+
#include <ble/Ble.h>
3333
#include <cmsis_os2.h>
3434
#include <lib/core/CHIPError.h>
3535
#include <platform/CHIPDeviceLayer.h>

examples/lit-icd-app/silabs/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#include "AppEvent.h"
3030
#include "BaseApplication.h"
31-
#include <ble/BLEEndPoint.h>
31+
#include <ble/Ble.h>
3232
#include <cmsis_os2.h>
3333
#include <lib/core/CHIPError.h>
3434
#include <platform/CHIPDeviceLayer.h>

examples/lock-app/asr/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
#include "FreeRTOS.h"
2929
#include "timers.h" // provides FreeRTOS timer support
30-
#include <ble/BLEEndPoint.h>
30+
#include <ble/Ble.h>
3131
#include <platform/CHIPDeviceLayer.h>
3232

3333
// Application-defined error codes in the CHIP_ERROR space.

examples/lock-app/esp32/main/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <lock/BoltLockManager.h>
2525

2626
#include "freertos/FreeRTOS.h"
27-
#include <ble/BLEEndPoint.h>
27+
#include <ble/Ble.h>
2828
#include <lib/support/CodeUtils.h>
2929
#include <platform/CHIPDeviceLayer.h>
3030

examples/lock-app/infineon/psoc6/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
#include "FreeRTOS.h"
2929
#include "timers.h" // provides FreeRTOS timer support
30-
#include <ble/BLEEndPoint.h>
30+
#include <ble/Ble.h>
3131
#include <platform/CHIPDeviceLayer.h>
3232

3333
// Application-defined error codes in the CHIP_ERROR space.

examples/lock-app/qpg/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
#include "FreeRTOS.h"
2929
#include "timers.h" // provides FreeRTOS timer support
30-
#include <ble/BLEEndPoint.h>
30+
#include <ble/Ble.h>
3131
#include <lib/core/CHIPError.h>
3232
#include <platform/CHIPDeviceLayer.h>
3333

examples/lock-app/silabs/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "AppEvent.h"
3030
#include "BaseApplication.h"
3131
#include "LockManager.h"
32-
#include <ble/BLEEndPoint.h>
32+
#include <ble/Ble.h>
3333
#include <cmsis_os2.h>
3434
#include <lib/core/CHIPError.h>
3535
#include <platform/CHIPDeviceLayer.h>

examples/platform/nxp/common/app_task/source/AppTaskBase.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@
6262
#include <app/clusters/ota-requestor/OTATestEventTriggerDelegate.h>
6363
#endif
6464

65+
#ifdef ENABLE_CHIP_SHELL
66+
#include <lib/shell/commands/WiFi.h>
67+
#endif
68+
6569
using namespace chip;
6670
using namespace chip::TLV;
6771
using namespace ::chip::Credentials;
@@ -202,6 +206,9 @@ CHIP_ERROR chip::NXP::App::AppTaskBase::Init()
202206

203207
#if CONFIG_CHIP_WIFI || CHIP_DEVICE_CONFIG_ENABLE_WPA
204208
sNetworkCommissioningInstance.Init();
209+
#ifdef ENABLE_CHIP_SHELL
210+
Shell::SetWiFiDriver(chip::NXP::App::GetAppTask().GetWifiDriverInstance());
211+
#endif
205212
#endif
206213
#if CONFIG_CHIP_OTA_REQUESTOR
207214
if (err == CHIP_NO_ERROR)

examples/platform/silabs/BaseApplication.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include <app/clusters/identify-server/identify-server.h>
3131
#include <app/server/AppDelegate.h>
3232
#include <app/util/config.h>
33-
#include <ble/BLEEndPoint.h>
33+
#include <ble/Ble.h>
3434
#include <cmsis_os2.h>
3535
#include <lib/core/CHIPError.h>
3636
#include <platform/CHIPDeviceEvent.h>

examples/pump-app/silabs/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "AppEvent.h"
3030
#include "BaseApplication.h"
3131
#include "PumpManager.h"
32-
#include <ble/BLEEndPoint.h>
32+
#include <ble/Ble.h>
3333
#include <cmsis_os2.h>
3434
#include <lib/core/CHIPError.h>
3535
#include <platform/CHIPDeviceLayer.h>

examples/smoke-co-alarm-app/silabs/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "AppEvent.h"
2828
#include "BaseApplication.h"
2929
#include "SmokeCoAlarmManager.h"
30-
#include <ble/BLEEndPoint.h>
30+
#include <ble/Ble.h>
3131
#include <cmsis_os2.h>
3232
#include <lib/core/CHIPError.h>
3333
#include <platform/CHIPDeviceLayer.h>

examples/temperature-measurement-app/asr/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "AppEvent.h"
2525
#include "FreeRTOS.h"
2626
#include "timers.h" // provides FreeRTOS timer support
27-
#include <ble/BLEEndPoint.h>
27+
#include <ble/Ble.h>
2828
#include <platform/CHIPDeviceLayer.h>
2929

3030
// Application-defined error codes in the CHIP_ERROR space.

examples/thermostat/asr/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "SensorManager.h"
2727
#include "TemperatureManager.h"
2828
#include "timers.h" // provides FreeRTOS timer support
29-
#include <ble/BLEEndPoint.h>
29+
#include <ble/Ble.h>
3030
#include <platform/CHIPDeviceLayer.h>
3131

3232
#include <FreeRTOS.h>

examples/thermostat/silabs/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "BaseApplication.h"
3535
#include "SensorManager.h"
3636
#include "TemperatureManager.h"
37-
#include <ble/BLEEndPoint.h>
37+
#include <ble/Ble.h>
3838
#include <cmsis_os2.h>
3939
#include <lib/core/CHIPError.h>
4040
#include <platform/CHIPDeviceLayer.h>

examples/tv-casting-app/tv-casting-common/include/TargetVideoPlayerInfo.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class TargetVideoPlayerInfo
7272
public:
7373
TargetVideoPlayerInfo() {}
7474

75-
bool operator==(const TargetVideoPlayerInfo & other) { return this->mNodeId == other.mNodeId; }
75+
bool operator==(const TargetVideoPlayerInfo & other) const { return this->mNodeId == other.mNodeId; }
7676

7777
bool IsInitialized() { return mInitialized; }
7878
void Reset();

examples/window-app/silabs/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <stdint.h>
2828

2929
#include "BaseApplication.h"
30-
#include <ble/BLEEndPoint.h>
30+
#include <ble/Ble.h>
3131
#include <cmsis_os2.h>
3232
#include <lib/core/CHIPError.h>
3333
#include <platform/CHIPDeviceLayer.h>

scripts/helpers/iwyu-check.py

+27-28
Original file line numberDiff line numberDiff line change
@@ -51,42 +51,38 @@ def find_program(names):
5151
@click.command()
5252
@click.option(
5353
'--log-level',
54-
default='INFO',
54+
show_default=True,
55+
default='info',
5556
type=click.Choice(__LOG_LEVELS__.keys(), case_sensitive=False),
56-
help='Determines the verbosity of script output.')
57+
help='Set the verbosity of script output.')
5758
@click.option(
5859
'--no-log-timestamps',
5960
default=False,
6061
is_flag=True,
61-
help='Skip timestamps in log output')
62+
help='Skip timestamps in log output.')
6263
@click.option(
6364
'--compile-commands-glob',
6465
show_default=True,
65-
default=os.path.join(proj_root_dir, "out", "debug", "compile_commands*.json"),
66-
help='Set global pattern for compile_commands.json files'
67-
)
68-
@click.option(
69-
'--scanning-destination',
70-
show_default=True,
71-
default=os.path.join(proj_root_dir, "src", "platform"),
72-
help='Set scanning destination file(s) or directory /ies in project'
73-
)
66+
default=os.path.join(proj_root_dir, "out", "debug",
67+
"compile_commands*.json"),
68+
help='Set global pattern for compile_commands.json files.')
7469
@click.option(
7570
'--mapping-file-dir',
76-
help='Set mapping file directory /ies manually. File should have name iwyu.imp'
77-
)
71+
help='Set directory with iwyu.imp mapping file.')
7872
@click.option(
7973
'--iwyu-args',
8074
show_default=True,
8175
default="-Xiwyu --no_fwd_decls",
82-
help='Set custom arg(s) for include what you use'
83-
)
76+
help='Set custom arg(s) for include what you use.')
8477
@click.option(
8578
'--clang-args',
8679
default="",
87-
help='Set custom arg(s) for clang'
88-
)
89-
def main(compile_commands_glob, scanning_destination, mapping_file_dir,
80+
help='Set custom arg(s) for clang.')
81+
@click.argument(
82+
'source',
83+
nargs=-1,
84+
type=click.Path(exists=True))
85+
def main(compile_commands_glob, source, mapping_file_dir,
9086
iwyu_args, clang_args, log_level, no_log_timestamps):
9187
# Ensures somewhat pretty logging of what is going on
9288
log_fmt = '%(asctime)s %(levelname)-7s %(message)s'
@@ -114,8 +110,10 @@ def main(compile_commands_glob, scanning_destination, mapping_file_dir,
114110
for compile_commands in compile_commands_glob:
115111

116112
compile_commands_path = os.path.dirname(compile_commands)
117-
compile_commands_file = os.path.join(compile_commands_path, "compile_commands.json")
118-
logging.debug("Copy compile command file %s to %s", compile_commands, compile_commands_file)
113+
compile_commands_file = os.path.join(
114+
compile_commands_path, "compile_commands.json")
115+
logging.debug("Copy compile command file %s to %s",
116+
compile_commands, compile_commands_file)
119117

120118
with contextlib.suppress(shutil.SameFileError):
121119
shutil.copyfile(compile_commands, compile_commands_file)
@@ -153,14 +151,14 @@ def main(compile_commands_glob, scanning_destination, mapping_file_dir,
153151

154152
command_arr = [
155153
iwyu,
156-
"-p", compile_commands_path, scanning_destination,
154+
"-p", compile_commands_path, *source,
157155
"--", iwyu_args,
158156
"-Xiwyu", "--mapping_file=" + mapping_file_dir + "/iwyu.imp",
159157
] + platform_clang_args + [clang_args]
160158

161159
logging.info("Used compile commands: %s", compile_commands)
162160
logging.info("Scanning includes for platform: %s", platform)
163-
logging.info("Scanning destination: %s", scanning_destination)
161+
logging.info("Scanning sources(s): %s", ", ".join(source))
164162

165163
logging.debug("Command: %s", " ".join(command_arr))
166164
status = subprocess.Popen(" ".join(command_arr),
@@ -175,13 +173,13 @@ def main(compile_commands_glob, scanning_destination, mapping_file_dir,
175173
for line in status.stdout:
176174
line = line.rstrip()
177175

178-
if re.match(r"^warning:.*$", line):
176+
if re.search(r"^warning:", line):
179177
logger = logging.warning
180-
elif re.match(r"^.*([A-Za-z0-9]+(/[A-Za-z0-9]+)+)\.cpp should [a-zA-Z]+ these lines:$", line):
178+
elif re.search(r"should (add|remove)? these lines:$", line):
181179
logger = logging.warning
182-
elif re.match(r"^.*([A-Za-z0-9]+(/[A-Za-z0-9]+)+)\.[a-zA-Z]+ has correct #includes/fwd-decls\)$", line):
180+
elif re.search(r"has correct #includes/fwd-decls\)$", line):
183181
logger = logging.info
184-
elif re.match(r"^The full include-list for .*$", line):
182+
elif re.search(r"^The full include-list for", line):
185183
logger = logging.warning
186184
warning_in_files += 1
187185

@@ -190,7 +188,8 @@ def main(compile_commands_glob, scanning_destination, mapping_file_dir,
190188
logging.info("============== IWYU output end ================")
191189

192190
if warning_in_files:
193-
logging.error("Number of files with include issues: %d", warning_in_files)
191+
logging.error("Number of files with include issues: %d",
192+
warning_in_files)
194193
sys.exit(2)
195194
else:
196195
logging.info("Every include looks good!")

scripts/setup/zap.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"mac-amd64",
99
"windows-amd64"
1010
],
11-
"tags": ["version:2@v2024.03.14-nightly.1"]
11+
"tags": ["version:2@v2024.04.15-nightly.1"]
1212
},
1313
{
1414
"_comment": "Always get the amd64 version on mac until usable arm64 zap build is available",
1515
"path": "fuchsia/third_party/zap/mac-amd64",
1616
"platforms": ["mac-arm64"],
17-
"tags": ["version:2@v2024.03.14-nightly.1"]
17+
"tags": ["version:2@v2024.04.15-nightly.1"]
1818
}
1919
]
2020
}

scripts/setup/zap.version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2024.03.14-nightly
1+
v2024.04.15-nightly

scripts/tools/zap/zap_execution.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# Use scripts/tools/zap/version_update.py to manage ZAP versioning as many
2424
# files may need updating for versions
2525
#
26-
MIN_ZAP_VERSION = '2024.3.14'
26+
MIN_ZAP_VERSION = '2024.4.15'
2727

2828

2929
class ZapTool:

src/app/ConcreteAttributePath.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,10 @@ struct ConcreteDataAttributePath : public ConcreteAttributePath
142142
ChipLogValueMEI(mClusterId), ChipLogValueMEI(mAttributeId));
143143
}
144144

145-
bool MatchesConcreteAttributePath(const ConcreteAttributePath & aOther) { return ConcreteAttributePath::operator==(aOther); }
145+
bool MatchesConcreteAttributePath(const ConcreteAttributePath & aOther) const
146+
{
147+
return ConcreteAttributePath::operator==(aOther);
148+
}
146149

147150
bool operator==(const ConcreteDataAttributePath & aOther) const
148151
{

src/app/clusters/bindings/PendingNotificationMap.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ class PendingNotificationMap
8888
return *this;
8989
}
9090

91-
bool operator!=(const Iterator & rhs) { return mIndex != rhs.mIndex; }
91+
bool operator!=(const Iterator & rhs) const { return mIndex != rhs.mIndex; }
9292

93-
bool operator==(const Iterator & rhs) { return mIndex == rhs.mIndex; }
93+
bool operator==(const Iterator & rhs) const { return mIndex == rhs.mIndex; }
9494

9595
private:
9696
PendingNotificationMap * mMap;

0 commit comments

Comments
 (0)