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 7b30954 commit a1a90c7
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 freqency is needed.

Check failure on line 48 in boards/olimex-msp430-h1611/include/board.h

View workflow job for this annotation

GitHub Actions / static-tests

There is a typo: freqency ==> frequency If this is a false positive, add it to dist/tools/codespell/ignored_words.txt. You can fix this interactively by calling CODESPELL_INTERACTIVE=1 BASE_BRANCH=master ./dist/tools/codespell/check.sh
*/
#define CONFIG_ZTIMER_USEC_BASE_FREQ (MHZ(1) + 1)
/** @} */

#ifdef __cplusplus
Expand Down

0 comments on commit a1a90c7

Please sign in to comment.