diff options
Diffstat (limited to 'os/hal/platforms/STM32/can_lld.c')
-rw-r--r-- | os/hal/platforms/STM32/can_lld.c | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/os/hal/platforms/STM32/can_lld.c b/os/hal/platforms/STM32/can_lld.c index 6fe3cf30d..6e20d856e 100644 --- a/os/hal/platforms/STM32/can_lld.c +++ b/os/hal/platforms/STM32/can_lld.c @@ -18,8 +18,9 @@ */
/**
- * @file STM32/can_lld.c
- * @brief STM32 CAN subsystem low level driver source.
+ * @file STM32/can_lld.c
+ * @brief STM32 CAN subsystem low level driver source.
+ *
* @addtogroup STM32_CAN
* @{
*/
@@ -53,7 +54,7 @@ CANDriver CAND1; /*
* CAN1 TX interrupt handler.
*/
-CH_IRQ_HANDLER(Vector8C) {
+CH_IRQ_HANDLER(CAN1_TX_IRQHandler) {
CH_IRQ_PROLOGUE();
@@ -71,7 +72,7 @@ CH_IRQ_HANDLER(Vector8C) { /*
* CAN1 RX0 interrupt handler.
*/
-CH_IRQ_HANDLER(Vector90) {
+CH_IRQ_HANDLER(CAN1_RX0_IRQHandler) {
uint32_t rf0r;
CH_IRQ_PROLOGUE();
@@ -101,7 +102,7 @@ CH_IRQ_HANDLER(Vector90) { /*
* CAN1 RX1 interrupt handler.
*/
-CH_IRQ_HANDLER(Vector94) {
+CH_IRQ_HANDLER(CAN1_RX1_IRQHandler) {
CH_IRQ_PROLOGUE();
@@ -113,7 +114,7 @@ CH_IRQ_HANDLER(Vector94) { /*
* CAN1 SCE interrupt handler.
*/
-CH_IRQ_HANDLER(Vector98) {
+CH_IRQ_HANDLER(CAN1_SCE_IRQHandler) {
uint32_t msr;
CH_IRQ_PROLOGUE();
@@ -149,7 +150,7 @@ CH_IRQ_HANDLER(Vector98) { /*===========================================================================*/
/**
- * @brief Low level CAN driver initialization.
+ * @brief Low level CAN driver initialization.
*/
void can_lld_init(void) {
@@ -165,9 +166,9 @@ void can_lld_init(void) { }
/**
- * @brief Configures and activates the CAN peripheral.
+ * @brief Configures and activates the CAN peripheral.
*
- * @param[in] canp pointer to the @p CANDriver object
+ * @param[in] canp pointer to the @p CANDriver object
*/
void can_lld_start(CANDriver *canp) {
@@ -249,9 +250,9 @@ void can_lld_start(CANDriver *canp) { }
/**
- * @brief Deactivates the CAN peripheral.
+ * @brief Deactivates the CAN peripheral.
*
- * @param[in] canp pointer to the @p CANDriver object
+ * @param[in] canp pointer to the @p CANDriver object
*/
void can_lld_stop(CANDriver *canp) {
@@ -272,13 +273,13 @@ void can_lld_stop(CANDriver *canp) { }
/**
- * @brief Determines whether a frame can be transmitted.
+ * @brief Determines whether a frame can be transmitted.
*
- * @param[in] canp pointer to the @p CANDriver object
+ * @param[in] canp pointer to the @p CANDriver object
*
* @return The queue space availability.
- * @retval FALSE no space in the transmit queue.
- * @retval TRUE transmit slot available.
+ * @retval FALSE no space in the transmit queue.
+ * @retval TRUE transmit slot available.
*/
bool_t can_lld_can_transmit(CANDriver *canp) {
@@ -286,7 +287,7 @@ bool_t can_lld_can_transmit(CANDriver *canp) { }
/**
- * @brief Inserts a frame into the transmit queue.
+ * @brief Inserts a frame into the transmit queue.
*
* @param[in] canp pointer to the @p CANDriver object
* @param[in] ctfp pointer to the CAN frame to be transmitted
@@ -311,13 +312,13 @@ void can_lld_transmit(CANDriver *canp, const CANTxFrame *ctfp) { }
/**
- * @brief Determines whether a frame has been received.
+ * @brief Determines whether a frame has been received.
*
- * @param[in] canp pointer to the @p CANDriver object
+ * @param[in] canp pointer to the @p CANDriver object
*
* @return The queue space availability.
- * @retval FALSE no space in the transmit queue.
- * @retval TRUE transmit slot available.
+ * @retval FALSE no space in the transmit queue.
+ * @retval TRUE transmit slot available.
*/
bool_t can_lld_can_receive(CANDriver *canp) {
@@ -325,7 +326,7 @@ bool_t can_lld_can_receive(CANDriver *canp) { }
/**
- * @brief Receives a frame from the input queue.
+ * @brief Receives a frame from the input queue.
*
* @param[in] canp pointer to the @p CANDriver object
* @param[out] crfp pointer to the buffer where the CAN frame is copied
@@ -359,7 +360,7 @@ void can_lld_receive(CANDriver *canp, CANRxFrame *crfp) { #if CAN_USE_SLEEP_MODE || defined(__DOXYGEN__)
/**
- * @brief Enters the sleep mode.
+ * @brief Enters the sleep mode.
*
* @param[in] canp pointer to the @p CANDriver object
*/
@@ -369,7 +370,7 @@ void can_lld_sleep(CANDriver *canp) { }
/**
- * @brief Enforces leaving the sleep mode.
+ * @brief Enforces leaving the sleep mode.
*
* @param[in] canp pointer to the @p CANDriver object
*/
|