Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Ciesielski <jeff.ciesielski@convergeddevices.net>2012-10-20 03:27:17 +0400
committerJeff Ciesielski <jeff.ciesielski@convergeddevices.net>2012-10-20 03:27:17 +0400
commit4b86c281410aa330a1640e4211ae9da476dd0f56 (patch)
tree2f0fa6e5a3801fe2beff629c622bd3b6a4704bea /include/libopencm3/stm32/can.h
parent4e4496f70d00fe24b2c5d594d6500f537eeb6478 (diff)
stm32/f1/can: Add loopback/silent vars to init function.
Also: add helper function for mailbox checking
Diffstat (limited to 'include/libopencm3/stm32/can.h')
-rw-r--r--include/libopencm3/stm32/can.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/libopencm3/stm32/can.h b/include/libopencm3/stm32/can.h
index d6636d5f..f787df76 100644
--- a/include/libopencm3/stm32/can.h
+++ b/include/libopencm3/stm32/can.h
@@ -619,7 +619,8 @@ BEGIN_DECLS
void can_reset(u32 canport);
int can_init(u32 canport, bool ttcm, bool abom, bool awum, bool nart,
- bool rflm, bool txfp, u32 sjw, u32 ts1, u32 ts2, u32 brp);
+ bool rflm, bool txfp, u32 sjw, u32 ts1, u32 ts2, u32 brp,
+ bool loopback, bool silent);
void can_filter_init(u32 canport, u32 nr, bool scale_32bit, bool id_list_mode,
u32 fr1, u32 fr2, u32 fifo, bool enable);
@@ -640,7 +641,7 @@ void can_receive(u32 canport, u8 fifo, bool release, u32 *id, bool *ext,
bool *rtr, u32 *fmi, u8 *length, u8 *data);
void can_fifo_release(u32 canport, u8 fifo);
-
+bool can_available_mailbox(u32 canport);
END_DECLS
#endif