2022-06-30 13:19:27 +02:00
|
|
|
// Copyright 2022 Stefan Kerkmann
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define CH_CFG_SMP_MODE TRUE
|
|
|
|
#define CH_CFG_ST_RESOLUTION 32
|
2022-09-13 04:09:28 +02:00
|
|
|
#define CH_CFG_ST_FREQUENCY 10000
|
2022-06-30 13:19:27 +02:00
|
|
|
#define CH_CFG_INTERVALS_SIZE 32
|
|
|
|
#define CH_CFG_TIME_TYPES_SIZE 32
|
2022-09-13 04:09:28 +02:00
|
|
|
#define CH_CFG_ST_TIMEDELTA 0
|
|
|
|
|
|
|
|
/* Workaround a bug in chibios where port_timer_enable is not defined for RP2040 in tick mode */
|
2022-09-14 08:04:14 +02:00
|
|
|
#if !defined(_FROM_ASM_)
|
2022-09-13 04:09:28 +02:00
|
|
|
void stBind(void);
|
|
|
|
#define port_timer_enable(oip) stBind()
|
2022-09-14 08:04:14 +02:00
|
|
|
#endif
|
2022-06-30 13:19:27 +02:00
|
|
|
|
|
|
|
#include_next <chconf.h>
|