forked from Archive/PX4-Autopilot
canbootloader:stm32_boarddeinitialize->board_deinitialize
This commit is contained in:
parent
944536fa50
commit
fd0494555c
|
@ -76,7 +76,7 @@ __EXPORT void stm32_boardinitialize(void)
|
|||
}
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_boarddeinitialize
|
||||
* Name: board_deinitialize
|
||||
*
|
||||
* Description:
|
||||
* This function is called by the bootloader code prior to booting
|
||||
|
@ -84,7 +84,7 @@ __EXPORT void stm32_boardinitialize(void)
|
|||
*
|
||||
************************************************************************************/
|
||||
|
||||
void stm32_boarddeinitialize(void)
|
||||
void board_deinitialize(void)
|
||||
{
|
||||
putreg32(getreg32(STM32_RCC_APB1RSTR) | RCC_APB1RSTR_CAN1RST, STM32_RCC_APB1RSTR);
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ __EXPORT void stm32_boardinitialize(void)
|
|||
}
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_boarddeinitialize
|
||||
* Name: board_deinitialize
|
||||
*
|
||||
* Description:
|
||||
* This function is called by the bootloader code prior to booting
|
||||
|
@ -84,7 +84,7 @@ __EXPORT void stm32_boardinitialize(void)
|
|||
*
|
||||
************************************************************************************/
|
||||
|
||||
void stm32_boarddeinitialize(void)
|
||||
void board_deinitialize(void)
|
||||
{
|
||||
putreg32(getreg32(STM32_RCC_APB1RSTR) | RCC_APB1RSTR_CAN1RST, STM32_RCC_APB1RSTR);
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ __EXPORT void stm32_boardinitialize(void)
|
|||
}
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_boarddeinitialize
|
||||
* Name: board_deinitialize
|
||||
*
|
||||
* Description:
|
||||
* This function is called by the bootloader code prior to booting
|
||||
|
@ -88,7 +88,7 @@ __EXPORT void stm32_boardinitialize(void)
|
|||
*
|
||||
************************************************************************************/
|
||||
|
||||
void stm32_boarddeinitialize(void)
|
||||
void board_deinitialize(void)
|
||||
{
|
||||
putreg32(getreg32(STM32_RCC_APB1RSTR) | RCC_APB1RSTR_CAN1RST, STM32_RCC_APB1RSTR);
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ __EXPORT void s32k1xx_board_initialize(void)
|
|||
}
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_boarddeinitialize
|
||||
* Name: board_deinitialize
|
||||
*
|
||||
* Description:
|
||||
* This function is called by the bootloader code prior to booting
|
||||
|
@ -88,7 +88,7 @@ __EXPORT void s32k1xx_board_initialize(void)
|
|||
*
|
||||
************************************************************************************/
|
||||
|
||||
void stm32_boarddeinitialize(void)
|
||||
void board_deinitialize(void)
|
||||
{
|
||||
uint32_t regval = getreg32(S32K1XX_CAN0_MCR);
|
||||
regval |= CAN_MCR_MDIS;
|
||||
|
|
|
@ -62,7 +62,7 @@ typedef enum {
|
|||
#ifndef __ASSEMBLY__
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_boarddeinitialize
|
||||
* Name: board_deinitialize
|
||||
*
|
||||
* Description:
|
||||
* This function is called by the bootloader code priore to booting
|
||||
|
@ -70,7 +70,7 @@ typedef enum {
|
|||
*
|
||||
************************************************************************************/
|
||||
|
||||
void stm32_boarddeinitialize(void);
|
||||
void board_deinitialize(void);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_get_product_name
|
||||
|
|
|
@ -952,7 +952,7 @@ static void application_run(size_t fw_image_size, bootloader_app_shared_t *commo
|
|||
|
||||
__asm__ __volatile__("\tcpsid i\n");
|
||||
|
||||
stm32_boarddeinitialize();
|
||||
board_deinitialize();
|
||||
|
||||
/* kill the systick interrupt */
|
||||
putreg32(0, NVIC_SYSTICK_CTRL);
|
||||
|
|
Loading…
Reference in New Issue