1
0
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:
Hyungsin 2020-01-10 11:02:51 -08:00
parent 3e4a86d84b
commit 6eed5b9d43
13 changed files with 1 additions and 27 deletions

View File

@ -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)

View File

@ -50,7 +50,6 @@ extern "C" {
* @{
*/
#define XTIMER_WIDTH (16U)
#define XTIMER_OVERHEAD (6U)
/** @} */
/**

View File

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

View File

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

View File

@ -36,7 +36,6 @@ extern "C" {
*/
#define XTIMER_DEV TIMER_DEV(1)
#define XTIMER_CHAN (0)
#define XTIMER_OVERHEAD (0)
/** @} */
/**

View File

@ -45,13 +45,6 @@ extern "C" {
#define LED1_TOGGLE (FIO3PIN ^= LED1_MASK)
/** @} */
/**
* @name xtimer tuning values
* @{
*/
#define XTIMER_OVERHEAD 7
/** @} */
#ifdef __cplusplus
}
#endif

View File

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

View File

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

View File

@ -31,7 +31,6 @@ extern "C" {
* @name xtimer configuration
* @{
*/
#define XTIMER_OVERHEAD (6)
#define XTIMER_BACKOFF (10)
/** @} */

View File

@ -43,7 +43,6 @@ extern "C" {
#define XTIMER_CHAN (0)
#define XTIMER_BACKOFF (40)
#define XTIMER_ISR_BACKOFF (40)
#define XTIMER_OVERHEAD (30)
/** @} */
/**

View File

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

View File

@ -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.

View File

@ -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;