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:
parent
de2d33f65b
commit
e09063e7f1
@ -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;
|
||||
|
@ -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
|
||||
|
||||
/**
|
||||
|
@ -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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user