Working fork to test F0 application

Dependents:   ppCANOpen_Example

Fork of CANnucleo by Zoltan Hudak

Embed: (wiki syntax)

« Back to documentation index

stm32f3xx_hal_msp.c File Reference

stm32f3xx_hal_msp.c File Reference

HAL MSP module. More...

Go to the source code of this file.

Functions

void initCAN (can_t *obj, PinName rxPin, PinName txPin, FunctionalState abom)
 CAN initialization.
void HAL_CAN_MspInit (CAN_HandleTypeDef *hcan)
 CAN MSP Initialization.
void HAL_CAN_MspDeInit (CAN_HandleTypeDef *hcan)
 CAN MSP De-Initialization This function frees the hardware resources used:

  • Disable the Peripheral's clock
  • Revert GPIO to their default state.

void USB_LP_CAN_RX0_IRQHandler (void)
 Handles CAN RX0 interrupt request.
void HAL_CAN_RxCpltCallback (CAN_HandleTypeDef *_canHandle)
 Reception complete callback in non blocking mode.

Detailed Description

HAL MSP module.

Author:
MCD Application Team
Version:
V1.0.0
Date:
17-December-2014
Attention:

© COPYRIGHT(c) 2014 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Modified by Zoltan Hudak <hudakz@inbox.com>

Definition in file stm32f3xx_hal_msp.c.


Function Documentation

void HAL_CAN_MspDeInit ( CAN_HandleTypeDef *  hcan )

CAN MSP De-Initialization This function frees the hardware resources used:

  • Disable the Peripheral's clock
  • Revert GPIO to their default state.

Parameters:
hcan,:CAN handle pointer
Return values:
None

Definition at line 168 of file stm32f3xx_hal_msp.c.

void HAL_CAN_MspInit ( CAN_HandleTypeDef *  hcan )

CAN MSP Initialization.

Parameters:
hcan,:CAN handle pointer
Return values:
None

Definition at line 97 of file stm32f3xx_hal_msp.c.

void HAL_CAN_RxCpltCallback ( CAN_HandleTypeDef *  _canHandle )

Reception complete callback in non blocking mode.

Transmission complete callback in non blocking mode.

Parameters:
_canHandle,:pointer to a CAN_HandleTypeDef structure that contains the configuration information for the specified CAN.
Return values:
None

Definition at line 212 of file stm32f3xx_hal_msp.c.

void initCAN ( can_t *  obj,
PinName  rxPin,
PinName  txPin,
FunctionalState  abom 
)

CAN initialization.

Parameters:
obj,:can_t object
rxPin,:RX pin name
txPin,:TX pin name
abom,:Automatic recovery from bus-off state
Return values:
None

Definition at line 66 of file stm32f3xx_hal_msp.c.

void USB_LP_CAN_RX0_IRQHandler ( void   )

Handles CAN RX0 interrupt request.

Handles CAN1 RX0 interrupt request.

Parameters:
None
Return values:
None

Definition at line 202 of file stm32f3xx_hal_msp.c.