Skip to content

Commit

Permalink
boards/olimex-msp430-h1611: fix ztimer config
Browse files Browse the repository at this point in the history
  • Loading branch information
maribu committed Apr 16, 2024
1 parent 889c261 commit 4933b9b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions boards/olimex-msp430-h1611/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,18 @@ 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 */
/**
* @brief Configure clock to ~1 MHz.
*
* HACK: Do not use exactly 1 MHz to force use of ztimer_convert_frac, as the
* internal oscillator is not precise enough for time keeping and compensation
* based on the actual measured CPU frequency is needed.
*/
#define CONFIG_ZTIMER_USEC_BASE_FREQ (MHZ(1) + 1)
/** @} */

#ifdef __cplusplus
Expand Down

0 comments on commit 4933b9b

Please sign in to comment.