mirror of
https://github.com/espressif/openthread.git
synced 2026-08-01 08:37:47 +00:00
[efr32] fix compilation issues efr32*/flash.c (#5189)
This commit is contained in:
@@ -100,6 +100,7 @@ void otPlatFlashRead(otInstance *aInstance, uint8_t aSwapIndex, uint32_t aOffset
|
||||
|
||||
#else // Defaults to Silabs nvm3 system
|
||||
|
||||
#include "nvm3.h"
|
||||
#include "nvm3_default.h"
|
||||
#include <string.h>
|
||||
#include <openthread/platform/settings.h>
|
||||
@@ -330,7 +331,6 @@ static otError addSetting(uint16_t aKey, const uint8_t *aValue, uint16_t aValueL
|
||||
}
|
||||
}
|
||||
|
||||
exit:
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
@@ -100,6 +100,7 @@ void otPlatFlashRead(otInstance *aInstance, uint8_t aSwapIndex, uint32_t aOffset
|
||||
|
||||
#else // Defaults to Silabs nvm3 system
|
||||
|
||||
#include "nvm3.h"
|
||||
#include "nvm3_default.h"
|
||||
#include <string.h>
|
||||
#include <openthread/platform/settings.h>
|
||||
@@ -330,7 +331,6 @@ static otError addSetting(uint16_t aKey, const uint8_t *aValue, uint16_t aValueL
|
||||
}
|
||||
}
|
||||
|
||||
exit:
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
@@ -100,6 +100,7 @@ void otPlatFlashRead(otInstance *aInstance, uint8_t aSwapIndex, uint32_t aOffset
|
||||
|
||||
#else // Defaults to Silabs nvm3 system
|
||||
|
||||
#include "nvm3.h"
|
||||
#include "nvm3_default.h"
|
||||
#include <string.h>
|
||||
#include <openthread/platform/settings.h>
|
||||
@@ -330,7 +331,6 @@ static otError addSetting(uint16_t aKey, const uint8_t *aValue, uint16_t aValueL
|
||||
}
|
||||
}
|
||||
|
||||
exit:
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user