diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-02-24 10:07:54 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-02-24 10:07:54 +0000 |
commit | 4e6bb0ddf45ade46e5c95ea8d10933aeee0d3d4f (patch) | |
tree | 5b6a069016223a51111d0fff34a898a3715861c7 /os/hal/templates/can_lld.c | |
parent | 679520b160a61950c5746351ab97632ad48f377b (diff) | |
download | ChibiOS-4e6bb0ddf45ade46e5c95ea8d10933aeee0d3d4f.tar.gz ChibiOS-4e6bb0ddf45ade46e5c95ea8d10933aeee0d3d4f.tar.bz2 ChibiOS-4e6bb0ddf45ade46e5c95ea8d10933aeee0d3d4f.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5310 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/templates/can_lld.c')
-rw-r--r-- | os/hal/templates/can_lld.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/os/hal/templates/can_lld.c b/os/hal/templates/can_lld.c index 1496ea172..f9385fe77 100644 --- a/os/hal/templates/can_lld.c +++ b/os/hal/templates/can_lld.c @@ -70,7 +70,7 @@ void can_lld_init(void) { #if PLATFORM_CAN_USE_CAN1
/* Driver initialization.*/
canObjectInit(&CAND1);
-#endif
+#endif /* PLATFORM_CAN_USE_CAN1 */
}
/**
@@ -82,14 +82,16 @@ void can_lld_init(void) { */
void can_lld_start(CANDriver *canp) {
- /* Clock activation.*/
if (canp->state == CAN_STOP) {
+ /* Enables the pehipheral.*/
#if PLATFORM_CAN_USE_CAN1
if (&CAND1 == canp) {
}
-#endif
+#endif /* PLATFORM_CAN_USE_CAN1 */
}
+ /* Configures the peripheral.*/
+
}
/**
@@ -101,9 +103,15 @@ void can_lld_start(CANDriver *canp) { */
void can_lld_stop(CANDriver *canp) {
- /* If in ready state then disables the CAN peripheral.*/
if (canp->state == CAN_READY) {
+ /* Resets the peripheral.*/
+ /* Disables the peripheral.*/
+#if PLATFORM_CAN_USE_CAN1
+ if (&CAND1 == canp) {
+
+ }
+#endif /* PLATFORM_CAN_USE_CAN1 */
}
}
|