From db6346e7e55d34763904488deff4a67338b1acbd Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 25 Jul 2022 20:50:19 -0400 Subject: serialqueue: Improve canbus timing Adjust timing based on the minimum transmission time of canbus messages. Signed-off-by: Kevin O'Connor --- src/generic/canbus.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/generic/canbus.c b/src/generic/canbus.c index a4f33aa1..941ccd00 100644 --- a/src/generic/canbus.c +++ b/src/generic/canbus.c @@ -4,8 +4,12 @@ // // This file may be distributed under the terms of the GNU GPLv3 license. +#include "autoconf.h" // CONFIG_CANBUS_FREQUENCY #include "canbus.h" // canbus_send #include "canserial.h" // canserial_send +#include "command.h" // DECL_CONSTANT + +DECL_CONSTANT("CANBUS_FREQUENCY", CONFIG_CANBUS_FREQUENCY); int canserial_send(struct canbus_msg *msg) -- cgit v1.2.3-70-g09d2