Skip to content

Commit

Permalink
boards/common/nucleo: increase XTIMER_BACKOFF for STM32F1 boards
Browse files Browse the repository at this point in the history
- Boards using stm32f103xx use the same custom config for xtimer
  which relies on the same underlying hardware timers that hang
  when sleeping for <20us so spin when approaching that limit.
  • Loading branch information
fjmolinas committed Aug 7, 2019
1 parent db08af4 commit ed3a716
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion boards/blackpill/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void board_init(void);
* @{
*/
#define XTIMER_WIDTH (16)
#define XTIMER_BACKOFF 5
#define XTIMER_BACKOFF (19)
/** @} */

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion boards/bluepill/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void board_init(void);
* @{
*/
#define XTIMER_WIDTH (16)
#define XTIMER_BACKOFF 5
#define XTIMER_BACKOFF (19)
/** @} */

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion boards/common/nucleo/include/board_nucleo.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ extern "C" {

#if defined(CPU_FAM_STM32F1)
#define XTIMER_WIDTH (16)
#define XTIMER_BACKOFF (5)
#define XTIMER_BACKOFF (19)
#endif

#if defined(CPU_FAM_STM32L1)
Expand Down
2 changes: 1 addition & 1 deletion boards/maple-mini/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extern "C" {
* @{
*/
#define XTIMER_WIDTH (16)
#define XTIMER_BACKOFF 5
#define XTIMER_BACKOFF (19)
/** @} */

/**
Expand Down
2 changes: 1 addition & 1 deletion boards/opencm904/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extern "C" {
* @{
*/
#define XTIMER_WIDTH (16)
#define XTIMER_BACKOFF 5
#define XTIMER_BACKOFF (19)
/** @} */

/**
Expand Down

0 comments on commit ed3a716

Please sign in to comment.