Reorganize HAL (#14832)

This commit is contained in:
Scott Lahteine
2019-09-02 19:49:58 -05:00
committed by GitHub
parent cdd5056aba
commit 75efa3cdac
142 changed files with 547 additions and 422 deletions

View File

@ -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

View File

@ -26,7 +26,7 @@
#if HAS_SERVOS
#include "HAL_Servo_STM32.h"
#include "Servo.h"
uint8_t servoPin[MAX_SERVOS] = { 0 };

View File

@ -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];

View File

@ -24,7 +24,7 @@
#include "HAL.h"
#include "HAL_timers_STM32.h"
#include "timers.h"
// ------------------------
// Local defines

View File

@ -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