Skip to content

Commit

Permalink
remove XTIMER_OVERHEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyungsin committed Jan 10, 2020
1 parent 3e4a86d commit 6eed5b9
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 27 deletions.
2 changes: 0 additions & 2 deletions boards/common/esp8266/include/board_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion boards/common/iotlab/include/board_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ extern "C" {
* @{
*/
#define XTIMER_WIDTH (16U)
#define XTIMER_OVERHEAD (6U)
/** @} */

/**
Expand Down
6 changes: 0 additions & 6 deletions boards/common/nucleo/include/board_nucleo.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,17 @@ 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)
#endif

#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
/** @} */

Expand Down
1 change: 0 additions & 1 deletion boards/frdm-kw41z/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
/** @} */
Expand Down
1 change: 0 additions & 1 deletion boards/hamilton/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ extern "C" {
*/
#define XTIMER_DEV TIMER_DEV(1)
#define XTIMER_CHAN (0)
#define XTIMER_OVERHEAD (0)
/** @} */

/**
Expand Down
7 changes: 0 additions & 7 deletions boards/msba2/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ extern "C" {
#define LED1_TOGGLE (FIO3PIN ^= LED1_MASK)
/** @} */

/**
* @name xtimer tuning values
* @{
*/
#define XTIMER_OVERHEAD 7
/** @} */

#ifdef __cplusplus
}
#endif
Expand Down
2 changes: 0 additions & 2 deletions boards/mulle/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,13 @@
#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 */
#define XTIMER_DEV (TIMER_PIT_DEV(0))
#define XTIMER_CHAN (0)
#define XTIMER_BACKOFF (40)
#define XTIMER_ISR_BACKOFF (40)
#define XTIMER_OVERHEAD (30)
#endif
/** @} */

Expand Down
1 change: 0 additions & 1 deletion boards/phynode-kw41z/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
/** @} */
Expand Down
1 change: 0 additions & 1 deletion boards/stm32f4discovery/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ extern "C" {
* @name xtimer configuration
* @{
*/
#define XTIMER_OVERHEAD (6)
#define XTIMER_BACKOFF (10)
/** @} */

Expand Down
1 change: 0 additions & 1 deletion boards/teensy31/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ extern "C" {
#define XTIMER_CHAN (0)
#define XTIMER_BACKOFF (40)
#define XTIMER_ISR_BACKOFF (40)
#define XTIMER_OVERHEAD (30)
/** @} */

/**
Expand Down
1 change: 0 additions & 1 deletion boards/usb-kw41z/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
/** @} */
Expand Down
2 changes: 0 additions & 2 deletions cpu/native/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion drivers/dose/dose.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6eed5b9

Please sign in to comment.