Skip to content

Commit

Permalink
Merge pull request #20575 from maribu/boards/olimex-msp430-h2618/ztimer
Browse files Browse the repository at this point in the history
boards/olimex-msp430-h2618: fix ztimer config
  • Loading branch information
maribu authored Apr 15, 2024
2 parents 53edb4e + 43fa3bc commit 714feaf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions boards/olimex-msp430-h2618/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define BOARD_H

#include "cpu.h"
#include "macros/units.h"

#ifdef __cplusplus
extern "C" {
Expand All @@ -35,11 +36,12 @@ extern "C" {
#endif

/**
* @name Xtimer configuration
* @name ztimer configuration
* @{
*/
#define XTIMER_WIDTH (16)
#define XTIMER_BACKOFF (40)
#define CONFIG_ZTIMER_USEC_WIDTH 16 /**< running on a 16-bit timer */
#define CONFIG_ZTIMER_USEC_BASE_FREQ MHZ(2) /**< Cannot divide 16 MHz clock
to 1 MHz, go for 2 MHz instead */
/** @} */

#ifdef __cplusplus
Expand Down

0 comments on commit 714feaf

Please sign in to comment.