From cced334724aec1f39d683adcda6984543095ba8c Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 25 Feb 2013 11:58:40 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5318 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/templates/can_lld.c | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) (limited to 'os/hal/templates/can_lld.c') 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 */ -- cgit v1.2.3