mirror of
https://github.com/espressif/openthread.git
synced 2026-07-31 16:17:47 +00:00
otInstance Declarations (#473)
* Add otInstance type declaration and update ot APIs to take it as input.
This commit is contained in:
@@ -44,8 +44,10 @@ extern "C" {
|
||||
/**
|
||||
* This function performs a software reset on the platform, if supported.
|
||||
*
|
||||
* @param[in] aInstance The OpenThread instance structure.
|
||||
*
|
||||
*/
|
||||
void otPlatReset(void);
|
||||
void otPlatReset(otInstance *aInstance);
|
||||
|
||||
/**
|
||||
* Enumeration of possible reset reason codes.
|
||||
@@ -71,8 +73,10 @@ typedef enum
|
||||
/**
|
||||
* This function returns the reason for the last platform reset.
|
||||
*
|
||||
* @param[in] aInstance The OpenThread instance structure.
|
||||
*
|
||||
*/
|
||||
otPlatResetReason otPlatGetResetReason(void);
|
||||
otPlatResetReason otPlatGetResetReason(otInstance *aInstance);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
|
||||
Reference in New Issue
Block a user