Skip to content

Commit 4aace4c

Browse files
Grouped extern C statements
1 parent bc000ac commit 4aace4c

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

examples/platform/silabs/BaseApplication.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ class BaseApplication
165165
static void UpdateCommissioningStatus(bool newState);
166166

167167
/**
168-
* @brief Called when the last Fabric is removed, clears all Fabric related data and Thread Wifi provision.
169-
* @note This function preserves some NVM3 data that is not Fabric scoped like Attribute Value or Boot Count.
168+
* @brief Called when the last Fabric is removed, clears all Fabric related data, including Thread and Wifi provision.
169+
* @note This function preserves some NVM3 data that is not Fabric scoped, like Attribute Value or Boot Count.
170170
*/
171171
static void DoProvisioningReset();
172172

src/platform/OpenThread/GenericThreadStackManagerImpl_OpenThread.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ CHIP_ERROR GenericThreadStackManagerImpl_OpenThread<ImplClass>::_GetPollPeriod(u
10901090

10911091
/**
10921092
* @brief Helper that sets callbacks for OpenThread state changes and configures the Thread stack.
1093-
* Assigns mOTInst to and instance and configures the OT stack on a device by setting state change callbacks enabling features
1093+
* Assigns mOTInst to an instance, and configures the OT stack on a device by setting state change callbacks enabling features
10941094
* for IPv6 address configuration, enabling the Thread network if necessary, and handling SRP if enabled.
10951095
* Allows for the configuration of the Thread stack on a device where the instance and the otCLI are already initialised.
10961096
*

src/platform/silabs/efr32/ThreadStackManagerImpl.cpp

+4-7
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,11 @@
4141

4242
extern "C" {
4343
#include "platform-efr32.h"
44-
}
45-
46-
// Forward declaration
47-
extern "C" otInstance * otGetInstance(void);
48-
44+
otInstance * otGetInstance(void);
4945
#if CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
50-
extern "C" void otAppCliInit(otInstance * aInstance);
51-
#endif
46+
void otAppCliInit(otInstance * aInstance);
47+
#endif // CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
48+
}
5249

5350
namespace chip {
5451
namespace DeviceLayer {

0 commit comments

Comments
 (0)