mirror of
https://github.com/QIDITECH/klipper.git
synced 2026-01-31 16:08:42 +03:00
klipper update
This commit is contained in:
32
src/generic/canbus.c
Normal file
32
src/generic/canbus.c
Normal file
@@ -0,0 +1,32 @@
|
||||
// Wrapper functions connecting canserial.c to low-level can hardware
|
||||
//
|
||||
// Copyright (C) 2022 Kevin O'Connor <kevin@koconnor.net>
|
||||
//
|
||||
// This file may be distributed under the terms of the GNU GPLv3 license.
|
||||
|
||||
#include "canbus.h" // canbus_send
|
||||
#include "canserial.h" // canserial_send
|
||||
|
||||
int
|
||||
canserial_send(struct canbus_msg *msg)
|
||||
{
|
||||
return canbus_send(msg);
|
||||
}
|
||||
|
||||
void
|
||||
canserial_set_filter(uint32_t id)
|
||||
{
|
||||
canbus_set_filter(id);
|
||||
}
|
||||
|
||||
void
|
||||
canbus_notify_tx(void)
|
||||
{
|
||||
canserial_notify_tx();
|
||||
}
|
||||
|
||||
void
|
||||
canbus_process_data(struct canbus_msg *msg)
|
||||
{
|
||||
canserial_process_data(msg);
|
||||
}
|
||||
Reference in New Issue
Block a user