mirror of
https://github.com/candle-usb/candleLight_fw.git
synced 2025-01-14 05:42:53 +08:00
9 lines
333 B
C
9 lines
333 B
C
|
#pragma once
|
||
|
|
||
|
#include <stdbool.h>
|
||
|
#include "stm32f0xx_hal.h"
|
||
|
|
||
|
void can_set_bittiming(CAN_HandleTypeDef *hcan, uint16_t brp, uint8_t phase_seg1, uint8_t phase_seg2, uint8_t sjw);
|
||
|
void can_enable(CAN_HandleTypeDef *hcan, bool loop_back, bool listen_only, bool one_shot, bool triple_sample);
|
||
|
void can_disable(CAN_HandleTypeDef *hcan);
|