From c8cc98ce5dce3771cf2728eee7b1bdb026504f75 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 11 Jun 2022 19:37:30 -0400 Subject: canserial: Rename canbus.c to canserial.c Rename the canbus.c code to canserial.c and introduce new wrapper functions in canbus.c that connect the low-level canbus hardware code to the high-level canserial.c code. This is in preparation for adding "usb to canbus bridge mode". Signed-off-by: Kevin O'Connor --- src/stm32/chipid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/stm32/chipid.c') diff --git a/src/stm32/chipid.c b/src/stm32/chipid.c index 03517739..e30563cd 100644 --- a/src/stm32/chipid.c +++ b/src/stm32/chipid.c @@ -4,7 +4,7 @@ // // This file may be distributed under the terms of the GNU GPLv3 license. -#include "generic/canbus.h" // canbus_set_uuid +#include "generic/canserial.h" // canserial_set_uuid #include "generic/usb_cdc.h" // usb_fill_serial #include "generic/usbstd.h" // usb_string_descriptor #include "internal.h" // UID_BASE @@ -29,7 +29,7 @@ chipid_init(void) if (CONFIG_USB_SERIAL_NUMBER_CHIPID) usb_fill_serial(&cdc_chipid.desc, ARRAY_SIZE(cdc_chipid.data) , (void*)UID_BASE); - if (CONFIG_CANSERIAL) - canbus_set_uuid((void*)UID_BASE, CHIP_UID_LEN); + if (CONFIG_CANBUS) + canserial_set_uuid((void*)UID_BASE, CHIP_UID_LEN); } DECL_INIT(chipid_init); -- cgit v1.2.3-70-g09d2