mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
remove XTIMER_OVERHEAD
This commit is contained in:
parent
3e4a86d84b
commit
6eed5b9d43
@ -73,8 +73,6 @@ extern "C" {
|
||||
* @name XTimer configuration
|
||||
* @{
|
||||
*/
|
||||
#define XTIMER_OVERHEAD (0U)
|
||||
|
||||
#if defined(MODULE_ESP_SW_TIMER)
|
||||
#define XTIMER_BACKOFF (100U)
|
||||
#define XTIMER_ISR_BACKOFF (100U)
|
||||
|
@ -50,7 +50,6 @@ extern "C" {
|
||||
* @{
|
||||
*/
|
||||
#define XTIMER_WIDTH (16U)
|
||||
#define XTIMER_OVERHEAD (6U)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -37,10 +37,6 @@ extern "C" {
|
||||
#define XTIMER_WIDTH (16)
|
||||
#endif
|
||||
|
||||
#if defined(CPU_MODEL_STM32F334R8)
|
||||
#define XTIMER_OVERHEAD (5)
|
||||
#endif
|
||||
|
||||
#if defined(CPU_FAM_STM32F1)
|
||||
#define XTIMER_WIDTH (16)
|
||||
#define XTIMER_BACKOFF (19)
|
||||
@ -48,12 +44,10 @@ extern "C" {
|
||||
|
||||
#if defined(CPU_FAM_STM32L1)
|
||||
#define XTIMER_BACKOFF (11)
|
||||
#define XTIMER_OVERHEAD (6)
|
||||
#endif
|
||||
|
||||
#if defined(CPU_FAM_STM32F4) || defined(CPU_MODEL_STM32F303ZE)
|
||||
#define XTIMER_BACKOFF (8)
|
||||
#define XTIMER_OVERHEAD (6)
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
|
@ -85,7 +85,6 @@ extern "C"
|
||||
#define XTIMER_WIDTH (16)
|
||||
#define XTIMER_BACKOFF (5)
|
||||
#define XTIMER_ISR_BACKOFF (5)
|
||||
#define XTIMER_OVERHEAD (4)
|
||||
#define XTIMER_HZ (32768ul)
|
||||
#endif
|
||||
/** @} */
|
||||
|
@ -36,7 +36,6 @@ extern "C" {
|
||||
*/
|
||||
#define XTIMER_DEV TIMER_DEV(1)
|
||||
#define XTIMER_CHAN (0)
|
||||
#define XTIMER_OVERHEAD (0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -45,13 +45,6 @@ extern "C" {
|
||||
#define LED1_TOGGLE (FIO3PIN ^= LED1_MASK)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name xtimer tuning values
|
||||
* @{
|
||||
*/
|
||||
#define XTIMER_OVERHEAD 7
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -49,7 +49,6 @@
|
||||
#define XTIMER_WIDTH (16)
|
||||
#define XTIMER_BACKOFF (4)
|
||||
#define XTIMER_ISR_BACKOFF (4)
|
||||
#define XTIMER_OVERHEAD (3)
|
||||
#define XTIMER_HZ (32768ul)
|
||||
#else
|
||||
/* PIT xtimer configuration */
|
||||
@ -57,7 +56,6 @@
|
||||
#define XTIMER_CHAN (0)
|
||||
#define XTIMER_BACKOFF (40)
|
||||
#define XTIMER_ISR_BACKOFF (40)
|
||||
#define XTIMER_OVERHEAD (30)
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
|
@ -100,7 +100,6 @@ extern "C"
|
||||
#define XTIMER_WIDTH (16)
|
||||
#define XTIMER_BACKOFF (5)
|
||||
#define XTIMER_ISR_BACKOFF (5)
|
||||
#define XTIMER_OVERHEAD (4)
|
||||
#define XTIMER_HZ (32768ul)
|
||||
#endif
|
||||
/** @} */
|
||||
|
@ -31,7 +31,6 @@ extern "C" {
|
||||
* @name xtimer configuration
|
||||
* @{
|
||||
*/
|
||||
#define XTIMER_OVERHEAD (6)
|
||||
#define XTIMER_BACKOFF (10)
|
||||
/** @} */
|
||||
|
||||
|
@ -43,7 +43,6 @@ extern "C" {
|
||||
#define XTIMER_CHAN (0)
|
||||
#define XTIMER_BACKOFF (40)
|
||||
#define XTIMER_ISR_BACKOFF (40)
|
||||
#define XTIMER_OVERHEAD (30)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -96,7 +96,6 @@ extern "C"
|
||||
#define XTIMER_WIDTH (16)
|
||||
#define XTIMER_BACKOFF (5)
|
||||
#define XTIMER_ISR_BACKOFF (5)
|
||||
#define XTIMER_OVERHEAD (4)
|
||||
#define XTIMER_HZ (32768ul)
|
||||
#endif
|
||||
/** @} */
|
||||
|
@ -44,8 +44,6 @@ extern "C" {
|
||||
/**
|
||||
* @brief xtimer configuration
|
||||
*/
|
||||
#define XTIMER_OVERHEAD 14
|
||||
|
||||
/* timer_set_absolute() has a high margin for possible underflow if set with
|
||||
* value not far in the future. To prevent this, we set high backoff values
|
||||
* here.
|
||||
|
@ -534,7 +534,7 @@ static const netdev_driver_t netdev_driver_dose = {
|
||||
|
||||
void dose_setup(dose_t *ctx, const dose_params_t *params)
|
||||
{
|
||||
static const xtimer_ticks32_t min_timeout = {.ticks32 = XTIMER_BACKOFF + XTIMER_OVERHEAD};
|
||||
static const xtimer_ticks32_t min_timeout = {.ticks32 = XTIMER_BACKOFF};
|
||||
|
||||
ctx->netdev.driver = &netdev_driver_dose;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user