2017-05-19 01:02:19 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2017 Fundacion Inria Chile
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @{
|
|
|
|
* @ingroup net
|
|
|
|
* @file
|
|
|
|
* @brief Implementation of OpenThread settings platform abstraction
|
|
|
|
*
|
|
|
|
* @author Jose Ignacio Alamos <jialamos@uc.cl>
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
2019-05-16 23:08:30 +02:00
|
|
|
#include "openthread/error.h"
|
|
|
|
#include "openthread/instance.h"
|
2017-05-19 01:02:19 +02:00
|
|
|
|
2020-10-22 11:35:04 +02:00
|
|
|
#define ENABLE_DEBUG 0
|
2017-05-19 01:02:19 +02:00
|
|
|
#include "debug.h"
|
|
|
|
|
|
|
|
void otPlatSettingsInit(otInstance *aInstance)
|
|
|
|
{
|
make: fix various compile errors with Wextra
pkg, nordic_softdevice_ble: disable CFLAGS to omit compiler error
sys, pm_layered: fix casting nonscalar to the same type
cpu, stm32_common: fix type-limits, remove always true assert
cpu, stm32f4: fix pointer arithmetic in periph/i2c
drivers, at86rf2xx: fix type-limits where condition always true
saul, gpio: fix if no gpio configured for saul
cpu, saml21: add frequency check to periph/timer
driver, cc110x: fix unused param and type-limts errors
boards, wsn430-common: fix old-style-declaration
make: fix old style definition
drivers, sdcard_spi: fix old style typedef
driver, at30tse: remove unnecessary check
driver, nrf24: fix type-limit
driver, pn532: change buffer from char to uint8_t
tests/driver_sdcard: fix type limits
boards, feather-m0: add missing field inits
driver, tcs37727: fix type limits
pkg, emb6: disable some compiler warnings
tests/emb6: disable some compiler warings
pkg, openthread: fix sign compare and unused params
tests/trickle: fix struct init
tests/pthread_cooperation: fix type limits
board, mips-malta: remove feature periph_uart
shell: fix var size for netif command
gnrc, netif: fix sign-compare
gnrc, nib: fix sign-compare
shell: fix output in netif command
posix: fix type-limits in pthread_cond
2017-10-31 11:52:18 +01:00
|
|
|
(void)aInstance;
|
2017-05-19 01:02:19 +02:00
|
|
|
}
|
|
|
|
|
2018-06-12 17:40:27 +02:00
|
|
|
otError otPlatSettingsBeginChange(otInstance *aInstance)
|
2017-05-19 01:02:19 +02:00
|
|
|
{
|
|
|
|
(void)aInstance;
|
2018-06-12 17:40:27 +02:00
|
|
|
return OT_ERROR_NONE;
|
2017-05-19 01:02:19 +02:00
|
|
|
}
|
|
|
|
|
2018-06-12 17:40:27 +02:00
|
|
|
otError otPlatSettingsCommitChange(otInstance *aInstance)
|
2017-05-19 01:02:19 +02:00
|
|
|
{
|
|
|
|
DEBUG("openthread: otPlatSettingsCommitChange\n");
|
|
|
|
(void)aInstance;
|
2018-06-12 17:40:27 +02:00
|
|
|
return OT_ERROR_NONE;
|
2017-05-19 01:02:19 +02:00
|
|
|
}
|
|
|
|
|
2018-06-12 17:40:27 +02:00
|
|
|
otError otPlatSettingsAbandonChange(otInstance *aInstance)
|
2017-05-19 01:02:19 +02:00
|
|
|
{
|
|
|
|
(void)aInstance;
|
2018-06-12 17:40:27 +02:00
|
|
|
return OT_ERROR_NONE;
|
2017-05-19 01:02:19 +02:00
|
|
|
}
|
|
|
|
|
2018-06-12 17:40:27 +02:00
|
|
|
otError otPlatSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint16_t *aValueLength)
|
2017-05-19 01:02:19 +02:00
|
|
|
{
|
make: fix various compile errors with Wextra
pkg, nordic_softdevice_ble: disable CFLAGS to omit compiler error
sys, pm_layered: fix casting nonscalar to the same type
cpu, stm32_common: fix type-limits, remove always true assert
cpu, stm32f4: fix pointer arithmetic in periph/i2c
drivers, at86rf2xx: fix type-limits where condition always true
saul, gpio: fix if no gpio configured for saul
cpu, saml21: add frequency check to periph/timer
driver, cc110x: fix unused param and type-limts errors
boards, wsn430-common: fix old-style-declaration
make: fix old style definition
drivers, sdcard_spi: fix old style typedef
driver, at30tse: remove unnecessary check
driver, nrf24: fix type-limit
driver, pn532: change buffer from char to uint8_t
tests/driver_sdcard: fix type limits
boards, feather-m0: add missing field inits
driver, tcs37727: fix type limits
pkg, emb6: disable some compiler warnings
tests/emb6: disable some compiler warings
pkg, openthread: fix sign compare and unused params
tests/trickle: fix struct init
tests/pthread_cooperation: fix type limits
board, mips-malta: remove feature periph_uart
shell: fix var size for netif command
gnrc, netif: fix sign-compare
gnrc, nib: fix sign-compare
shell: fix output in netif command
posix: fix type-limits in pthread_cond
2017-10-31 11:52:18 +01:00
|
|
|
(void)aInstance;
|
|
|
|
(void)aKey;
|
|
|
|
(void)aIndex;
|
|
|
|
(void)aValue;
|
|
|
|
|
2017-05-19 01:02:19 +02:00
|
|
|
DEBUG("openthread: otPlatSettingsGet\n");
|
|
|
|
*aValueLength = 0;
|
2018-06-12 17:40:27 +02:00
|
|
|
return OT_ERROR_NOT_IMPLEMENTED;
|
2017-05-19 01:02:19 +02:00
|
|
|
}
|
|
|
|
|
2018-06-12 17:40:27 +02:00
|
|
|
otError otPlatSettingsSet(otInstance *aInstance, uint16_t aKey, const uint8_t *aValue, uint16_t aValueLength)
|
2017-05-19 01:02:19 +02:00
|
|
|
{
|
make: fix various compile errors with Wextra
pkg, nordic_softdevice_ble: disable CFLAGS to omit compiler error
sys, pm_layered: fix casting nonscalar to the same type
cpu, stm32_common: fix type-limits, remove always true assert
cpu, stm32f4: fix pointer arithmetic in periph/i2c
drivers, at86rf2xx: fix type-limits where condition always true
saul, gpio: fix if no gpio configured for saul
cpu, saml21: add frequency check to periph/timer
driver, cc110x: fix unused param and type-limts errors
boards, wsn430-common: fix old-style-declaration
make: fix old style definition
drivers, sdcard_spi: fix old style typedef
driver, at30tse: remove unnecessary check
driver, nrf24: fix type-limit
driver, pn532: change buffer from char to uint8_t
tests/driver_sdcard: fix type limits
boards, feather-m0: add missing field inits
driver, tcs37727: fix type limits
pkg, emb6: disable some compiler warnings
tests/emb6: disable some compiler warings
pkg, openthread: fix sign compare and unused params
tests/trickle: fix struct init
tests/pthread_cooperation: fix type limits
board, mips-malta: remove feature periph_uart
shell: fix var size for netif command
gnrc, netif: fix sign-compare
gnrc, nib: fix sign-compare
shell: fix output in netif command
posix: fix type-limits in pthread_cond
2017-10-31 11:52:18 +01:00
|
|
|
(void)aInstance;
|
|
|
|
(void)aKey;
|
|
|
|
(void)aValue;
|
|
|
|
(void)aValueLength;
|
2018-06-12 17:40:27 +02:00
|
|
|
return OT_ERROR_NONE;
|
2017-05-19 01:02:19 +02:00
|
|
|
}
|
|
|
|
|
2018-06-12 17:40:27 +02:00
|
|
|
otError otPlatSettingsAdd(otInstance *aInstance, uint16_t aKey, const uint8_t *aValue, uint16_t aValueLength)
|
2017-05-19 01:02:19 +02:00
|
|
|
{
|
make: fix various compile errors with Wextra
pkg, nordic_softdevice_ble: disable CFLAGS to omit compiler error
sys, pm_layered: fix casting nonscalar to the same type
cpu, stm32_common: fix type-limits, remove always true assert
cpu, stm32f4: fix pointer arithmetic in periph/i2c
drivers, at86rf2xx: fix type-limits where condition always true
saul, gpio: fix if no gpio configured for saul
cpu, saml21: add frequency check to periph/timer
driver, cc110x: fix unused param and type-limts errors
boards, wsn430-common: fix old-style-declaration
make: fix old style definition
drivers, sdcard_spi: fix old style typedef
driver, at30tse: remove unnecessary check
driver, nrf24: fix type-limit
driver, pn532: change buffer from char to uint8_t
tests/driver_sdcard: fix type limits
boards, feather-m0: add missing field inits
driver, tcs37727: fix type limits
pkg, emb6: disable some compiler warnings
tests/emb6: disable some compiler warings
pkg, openthread: fix sign compare and unused params
tests/trickle: fix struct init
tests/pthread_cooperation: fix type limits
board, mips-malta: remove feature periph_uart
shell: fix var size for netif command
gnrc, netif: fix sign-compare
gnrc, nib: fix sign-compare
shell: fix output in netif command
posix: fix type-limits in pthread_cond
2017-10-31 11:52:18 +01:00
|
|
|
(void)aInstance;
|
|
|
|
(void)aKey;
|
|
|
|
(void)aValue;
|
|
|
|
(void)aValueLength;
|
2018-06-12 17:40:27 +02:00
|
|
|
return OT_ERROR_NONE;
|
2017-05-19 01:02:19 +02:00
|
|
|
}
|
|
|
|
|
2018-06-12 17:40:27 +02:00
|
|
|
otError otPlatSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex)
|
2017-05-19 01:02:19 +02:00
|
|
|
{
|
make: fix various compile errors with Wextra
pkg, nordic_softdevice_ble: disable CFLAGS to omit compiler error
sys, pm_layered: fix casting nonscalar to the same type
cpu, stm32_common: fix type-limits, remove always true assert
cpu, stm32f4: fix pointer arithmetic in periph/i2c
drivers, at86rf2xx: fix type-limits where condition always true
saul, gpio: fix if no gpio configured for saul
cpu, saml21: add frequency check to periph/timer
driver, cc110x: fix unused param and type-limts errors
boards, wsn430-common: fix old-style-declaration
make: fix old style definition
drivers, sdcard_spi: fix old style typedef
driver, at30tse: remove unnecessary check
driver, nrf24: fix type-limit
driver, pn532: change buffer from char to uint8_t
tests/driver_sdcard: fix type limits
boards, feather-m0: add missing field inits
driver, tcs37727: fix type limits
pkg, emb6: disable some compiler warnings
tests/emb6: disable some compiler warings
pkg, openthread: fix sign compare and unused params
tests/trickle: fix struct init
tests/pthread_cooperation: fix type limits
board, mips-malta: remove feature periph_uart
shell: fix var size for netif command
gnrc, netif: fix sign-compare
gnrc, nib: fix sign-compare
shell: fix output in netif command
posix: fix type-limits in pthread_cond
2017-10-31 11:52:18 +01:00
|
|
|
(void)aInstance;
|
|
|
|
(void)aKey;
|
|
|
|
(void)aIndex;
|
2018-06-12 17:40:27 +02:00
|
|
|
return OT_ERROR_NONE;
|
2017-05-19 01:02:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void otPlatSettingsWipe(otInstance *aInstance)
|
|
|
|
{
|
make: fix various compile errors with Wextra
pkg, nordic_softdevice_ble: disable CFLAGS to omit compiler error
sys, pm_layered: fix casting nonscalar to the same type
cpu, stm32_common: fix type-limits, remove always true assert
cpu, stm32f4: fix pointer arithmetic in periph/i2c
drivers, at86rf2xx: fix type-limits where condition always true
saul, gpio: fix if no gpio configured for saul
cpu, saml21: add frequency check to periph/timer
driver, cc110x: fix unused param and type-limts errors
boards, wsn430-common: fix old-style-declaration
make: fix old style definition
drivers, sdcard_spi: fix old style typedef
driver, at30tse: remove unnecessary check
driver, nrf24: fix type-limit
driver, pn532: change buffer from char to uint8_t
tests/driver_sdcard: fix type limits
boards, feather-m0: add missing field inits
driver, tcs37727: fix type limits
pkg, emb6: disable some compiler warnings
tests/emb6: disable some compiler warings
pkg, openthread: fix sign compare and unused params
tests/trickle: fix struct init
tests/pthread_cooperation: fix type limits
board, mips-malta: remove feature periph_uart
shell: fix var size for netif command
gnrc, netif: fix sign-compare
gnrc, nib: fix sign-compare
shell: fix output in netif command
posix: fix type-limits in pthread_cond
2017-10-31 11:52:18 +01:00
|
|
|
(void)aInstance;
|
2017-05-19 01:02:19 +02:00
|
|
|
}
|