1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/net/cord : Move 'CORD_UPDATE_INTERVAL' to 'CONFIG_'

This commit is contained in:
Akshai M 2020-06-17 20:16:41 +05:30
parent de2d33f65b
commit e09063e7f1
3 changed files with 4 additions and 4 deletions

View File

@ -140,7 +140,7 @@ int main(void)
else if (res == CORD_EPSIM_ERROR) {
puts("error: unable to trigger simple registration process");
}
xtimer_sleep(CORD_UPDATE_INTERVAL);
xtimer_sleep(CONFIG_CORD_UPDATE_INTERVAL);
}
return 0;

View File

@ -43,8 +43,8 @@ extern "C" {
/**
* @brief Default client update interval (default is 3/4 the lifetime)
*/
#ifndef CORD_UPDATE_INTERVAL
#define CORD_UPDATE_INTERVAL ((CONFIG_CORD_LT / 4) * 3)
#ifndef CONFIG_CORD_UPDATE_INTERVAL
#define CONFIG_CORD_UPDATE_INTERVAL ((CONFIG_CORD_LT / 4) * 3)
#endif
/**

View File

@ -38,7 +38,7 @@
#define UPDATE_TIMEOUT (0xe537)
#define TIMEOUT_US ((uint64_t)(CORD_UPDATE_INTERVAL * US_PER_SEC))
#define TIMEOUT_US ((uint64_t)(CONFIG_CORD_UPDATE_INTERVAL * US_PER_SEC))
static char _stack[STACKSIZE];