STM32F4xx modifications for HAL_STM32 (#12080)

This commit is contained in:
Karl Andersson
2018-10-16 13:42:41 +02:00
committed by Scott Lahteine
parent bf0c809ff2
commit 8b5e51c9aa
15 changed files with 97 additions and 47 deletions

View File

@ -47,7 +47,7 @@
/** @addtogroup EEPROM_Emulation
* @{
*/
#if defined(STM32F4) || defined(STM32F4xx)
#if defined(STM32GENERIC) && (defined(STM32F4) || defined(STM32F4xx))
/* Includes ------------------------------------------------------------------*/
#include "eeprom_emul.h"

View File

@ -17,7 +17,7 @@
*
*/
#if defined(STM32F4) || defined(STM32F4xx)
#if defined(STM32GENERIC) && (defined(STM32F4) || defined(STM32F4xx))
/**
* Description: functions for I2C connected external EEPROM.

View File

@ -21,7 +21,7 @@
*
*/
#if defined(STM32F4) || defined(STM32F4xx)
#if defined(STM32GENERIC) && (defined(STM32F4) || defined(STM32F4xx))
// --------------------------------------------------------------------------
// Includes

View File

@ -21,7 +21,7 @@
*
*/
#if defined(STM32F4) || defined(STM32F4xx)
#if defined(STM32GENERIC) && (defined(STM32F4) || defined(STM32F4xx))
#include "../../inc/MarlinConfig.h"

View File

@ -30,7 +30,7 @@
* Adapted to the STM32F4 HAL
*/
#if defined(STM32F4) || defined(STM32F4xx)
#if defined(STM32GENERIC) && (defined(STM32F4) || defined(STM32F4xx))
// --------------------------------------------------------------------------
// Includes

View File

@ -20,7 +20,7 @@
*
*/
#if defined(STM32F4) || defined(STM32F4xx)
#if defined(STM32GENERIC) && (defined(STM32F4) || defined(STM32F4xx))
// --------------------------------------------------------------------------
// Includes
@ -91,7 +91,7 @@ void HAL_timer_start(const uint8_t timer_num, const uint32_t frequency) {
TimerHandle[timer_num].irqHandle = TC5_Handler;
TimerHandleInit(&TimerHandle[timer_num], (((HAL_TIMER_RATE) / step_prescaler) / frequency) - 1, step_prescaler);
#endif
HAL_NVIC_SetPriority(STEP_TIMER_IRQ_ID, 6, 0);
HAL_NVIC_SetPriority(STEP_TIMER_IRQ_ID, 1, 0);
break;
case TEMP_TIMER_NUM:

View File

@ -21,7 +21,7 @@
*
*/
#if defined(STM32F4) || defined(STM32F4xx)
#if defined(STM32GENERIC) && (defined(STM32F4) || defined(STM32F4xx))
#include "../shared/persistent_store_api.h"

View File

@ -20,7 +20,7 @@
*
*/
#if defined(STM32F4) || defined(STM32F4xx)
#if defined(STM32GENERIC) && (defined(STM32F4) || defined(STM32F4xx))
#include "../../inc/MarlinConfig.h"