diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-02-25 11:58:40 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-02-25 11:58:40 +0000 |
commit | cced334724aec1f39d683adcda6984543095ba8c (patch) | |
tree | b2b40c6c276399e2136228840985ca52145d5cac /os/hal/templates/can_lld.c | |
parent | 9afc25656cf245314157c310847f100acb54597a (diff) | |
download | ChibiOS-cced334724aec1f39d683adcda6984543095ba8c.tar.gz ChibiOS-cced334724aec1f39d683adcda6984543095ba8c.tar.bz2 ChibiOS-cced334724aec1f39d683adcda6984543095ba8c.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5318 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/templates/can_lld.c')
-rw-r--r-- | os/hal/templates/can_lld.c | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/os/hal/templates/can_lld.c b/os/hal/templates/can_lld.c index f9385fe77..b00cc2c8b 100644 --- a/os/hal/templates/can_lld.c +++ b/os/hal/templates/can_lld.c @@ -39,7 +39,9 @@ /* Driver exported variables. */
/*===========================================================================*/
-/** @brief CAN1 driver identifier.*/
+/**
+ * @brief CAN1 driver identifier.
+ */
#if PLATFORM_CAN_USE_CAN1 || defined(__DOXYGEN__)
CANDriver CAND1;
#endif
@@ -129,6 +131,8 @@ void can_lld_stop(CANDriver *canp) { */
bool_t can_lld_is_tx_empty(CANDriver *canp, canmbx_t mailbox) {
+ (void)canp;
+
switch (mailbox) {
case CAN_ANY_MAILBOX:
return FALSE;
@@ -156,6 +160,10 @@ void can_lld_transmit(CANDriver *canp, canmbx_t mailbox,
const CANTxFrame *ctfp) {
+ (void)canp;
+ (void)mailbox;
+ (void)ctfp;
+
}
/**
@@ -172,13 +180,16 @@ void can_lld_transmit(CANDriver *canp, */
bool_t can_lld_is_rx_nonempty(CANDriver *canp, canmbx_t mailbox) {
+ (void)canp;
+ (void)mailbox;
+
switch (mailbox) {
case CAN_ANY_MAILBOX:
- return FALSE
+ return FALSE;
case 1:
- return FALSE
+ return FALSE;
case 2:
- return FALSE
+ return FALSE;
default:
return FALSE;
}
@@ -197,6 +208,10 @@ void can_lld_receive(CANDriver *canp, canmbx_t mailbox,
CANRxFrame *crfp) {
+ (void)canp;
+ (void)mailbox;
+ (void)crfp;
+
}
#if CAN_USE_SLEEP_MODE || defined(__DOXYGEN__)
@@ -209,6 +224,8 @@ void can_lld_receive(CANDriver *canp, */
void can_lld_sleep(CANDriver *canp) {
+ (void)canp;
+
}
/**
@@ -220,6 +237,8 @@ void can_lld_sleep(CANDriver *canp) { */
void can_lld_wakeup(CANDriver *canp) {
+ (void)canp;
+
}
#endif /* CAN_USE_SLEEP_MODE */
|