[QPG6100] Addition of Qorvo QPG6100 platform - initial lock-app version (#2669)
* Addition of Qorvo QPG6100 platform - initial lock-app version
* Restyled by whitespace
* Restyled by clang-format
* Restyled by prettier-markdown
* Restyled by clang-format
* Restyled by prettier-markdown
* Restyled by prettier-markdown
* Markdown update
* Addition of Qorvo QPG6100 platform - initial lock-app version
* Restyled by whitespace
* Restyled by clang-format
* Restyled by prettier-markdown
* Restyled by clang-format
* Restyled by prettier-markdown
* Restyled by prettier-markdown
* Markdown update
* * Enabling GN/Ninja build system for Lock-app
* Moving Qorvo SDK code to third_party/qpg_sdk (awaiting availibility of external location)
* Restyled by whitespace
* Restyled by gn
* Restyled by prettier-markdown
* Update merge - missing }
* Update merge 2 - missing }
* Restyled by gn
* - Removal Qorvo specific SDK files. SDK available on Qorvo repository
- Updated README.md to reflect changes
- Fix conversion errors in ConfigurationManager
* Restyled by clang-format
* Restyled by gn
* Restyled by prettier-markdown
* * Updating review comments andy31415
* Created #2939 to follow up on OpenThread creation
* lwip assert enabled
* Commented out code removed where needed
* Restyled by gn
* * Use QPG qpg-connectedhomeip repository as submodule
* make QPG6100_SDK_ROOT point to repo by default
* Restyled by prettier-markdown
* * Removal automake support for QPG6100
* * Fix flash utils due to API update
* Restyled by prettier-markdown
* mspang comments
* Updating submodule reference to qpg_sdk
* Removing efr32 reference
* * Integration diff kpschoedel - aligning with updates in firmware_utils.py
* Addition checks for mBed copy
Co-authored-by: Restyled.io <commits@restyled.io>
diff --git a/src/platform/qpg6100/CHIPDevicePlatformEvent.h b/src/platform/qpg6100/CHIPDevicePlatformEvent.h
new file mode 100644
index 0000000..61b04d9
--- /dev/null
+++ b/src/platform/qpg6100/CHIPDevicePlatformEvent.h
@@ -0,0 +1,92 @@
+/*
+ *
+ * Copyright (c) 2020 Project CHIP Authors
+ *
+ * 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
+ * Defines platform-specific event types and data for the chip
+ * Device Layer on QPG6100 platforms.
+ */
+
+#ifndef CHIP_DEVICE_PLATFORM_EVENT_H
+#define CHIP_DEVICE_PLATFORM_EVENT_H
+
+#include <platform/CHIPDeviceEvent.h>
+
+namespace chip {
+namespace System {
+class PacketBuffer;
+}
+} // namespace chip
+
+namespace chip {
+namespace DeviceLayer {
+
+namespace DeviceEventType {
+
+/**
+ * Enumerates platform-specific event types that are visible to the application.
+ */
+enum PublicPlatformSpecificEventTypes
+{
+ /* None currently defined */
+};
+
+/**
+ * Enumerates platform-specific event types that are internal to the chip Device Layer.
+ */
+enum InternalPlatformSpecificEventTypes
+{
+ kQorvoBLEConnected = kRange_InternalPlatformSpecific,
+ kQorvoBLEDisconnected,
+ kCHIPoBLECCCWriteEvent,
+ kCHIPoBLERXCharWriteEvent,
+ kCHIPoBLETXCharWriteEvent,
+};
+
+} // namespace DeviceEventType
+
+/**
+ * Represents platform-specific event information.
+ */
+struct ChipDevicePlatformEvent final
+{
+ // TODO - add platform specific definition extension
+ union
+ {
+ struct
+ {
+ uint8_t dummy;
+ } QorvoBLEConnected;
+ struct
+ {
+ uint8_t dummy;
+ } CHIPoBLECCCWriteEvent;
+ struct
+ {
+ uint8_t dummy;
+ } CHIPoBLERXCharWriteEvent;
+ struct
+ {
+ uint8_t dummy;
+ } CHIPoBLETXCharWriteEvent;
+ };
+};
+
+} // namespace DeviceLayer
+} // namespace chip
+
+#endif // CHIP_DEVICE_PLATFORM_EVENT_H