Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boards/olimex-msp430-h2618: fix ztimer config #20575

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading