Reorganize HAL (#14832)
This commit is contained in:
@ -28,8 +28,8 @@
|
||||
#include "../shared/Marduino.h"
|
||||
#include "../shared/math_32bit.h"
|
||||
#include "../shared/HAL_SPI.h"
|
||||
#include "fastio_STM32.h"
|
||||
#include "watchdog_STM32.h"
|
||||
#include "fastio.h"
|
||||
#include "watchdog.h"
|
||||
|
||||
#include "../../inc/MarlinConfigPre.h"
|
||||
|
||||
@ -96,7 +96,7 @@
|
||||
#define NUM_SERIAL 1
|
||||
#endif
|
||||
|
||||
#include "HAL_timers_STM32.h"
|
||||
#include "timers.h"
|
||||
|
||||
/**
|
||||
* TODO: review this to return 1 for pins that are not analog input
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
#if HAS_SERVOS
|
||||
|
||||
#include "HAL_Servo_STM32.h"
|
||||
#include "Servo.h"
|
||||
|
||||
uint8_t servoPin[MAX_SERVOS] = { 0 };
|
||||
|
@ -29,9 +29,11 @@
|
||||
#ifdef BOARD_NR_GPIO_PINS // Only in STM32GENERIC (Maple)
|
||||
|
||||
#ifdef __STM32F1__
|
||||
#include "../HAL_STM32F1/fastio_STM32F1.h"
|
||||
#include "../HAL_STM32F1/fastio.h"
|
||||
#elif defined(STM32F4) || defined(STM32F7)
|
||||
#include "../HAL_STM32_F4_F7/fastio_STM32_F4_F7.h"
|
||||
#include "../HAL_STM32_F4_F7/fastio.h"
|
||||
#else
|
||||
#include "fastio.h"
|
||||
#endif
|
||||
|
||||
extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS];
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
#include "HAL.h"
|
||||
|
||||
#include "HAL_timers_STM32.h"
|
||||
#include "timers.h"
|
||||
|
||||
// ------------------------
|
||||
// Local defines
|
@ -28,7 +28,7 @@
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
|
||||
#include "watchdog_STM32.h"
|
||||
#include "watchdog.h"
|
||||
#include <IWatchdog.h>
|
||||
|
||||
void watchdog_init() { IWatchdog.begin(4000000); } // 4 sec timeout
|
Reference in New Issue
Block a user