Browse Source

Cleanup, hex formatting, includes

vanilla_fb_2.0.x
Scott Lahteine 4 years ago
parent
commit
db90a180c2
  1. 8
      Marlin/src/HAL/AVR/MarlinSerial.cpp
  2. 1
      Marlin/src/HAL/LPC1768/HAL_MinSerial.cpp
  3. 3
      Marlin/src/HAL/STM32/timers.h
  4. 6
      Marlin/src/HAL/STM32F1/timers.h
  5. 3
      Marlin/src/HAL/TEENSY31_32/HAL_SPI.cpp
  6. 3
      Marlin/src/HAL/TEENSY35_36/HAL_SPI.cpp
  7. 3
      Marlin/src/HAL/TEENSY40_41/HAL.cpp
  8. 3
      Marlin/src/HAL/TEENSY40_41/HAL_SPI.cpp
  9. 4
      Marlin/src/HAL/shared/Marduino.h
  10. 2
      Marlin/src/inc/MarlinConfigPre.h
  11. 7
      Marlin/src/lcd/extui/lib/dgus/mks/DGUSScreenHandler.cpp
  12. 6
      Marlin/src/libs/softspi.h

8
Marlin/src/HAL/AVR/MarlinSerial.cpp

@ -582,7 +582,8 @@ MSerialT customizedSerial1(MSerialT::HasEmergencyParser);
template class MarlinSerial< MarlinSerialCfg<SERIAL_PORT_2> >;
MSerialT2 customizedSerial2(MSerialT2::HasEmergencyParser);
#endif
#endif // SERIAL_PORT_2
#ifdef MMU2_SERIAL_PORT
@ -596,7 +597,8 @@ MSerialT customizedSerial1(MSerialT::HasEmergencyParser);
template class MarlinSerial< MMU2SerialCfg<MMU2_SERIAL_PORT> >;
MSerialT3 mmuSerial(MSerialT3::HasEmergencyParser);
#endif
#endif // MMU2_SERIAL_PORT
#ifdef LCD_SERIAL_PORT
@ -622,7 +624,7 @@ MSerialT customizedSerial1(MSerialT::HasEmergencyParser);
}
#endif
#endif
#endif // LCD_SERIAL_PORT
#endif // !USBCON && (UBRRH || UBRR0H || UBRR1H || UBRR2H || UBRR3H)

1
Marlin/src/HAL/LPC1768/HAL_MinSerial.cpp

@ -21,6 +21,7 @@
*/
#ifdef TARGET_LPC1768
#include "../../inc/MarlinConfig.h"
#include "HAL.h"
#if ENABLED(POSTMORTEM_DEBUGGING)

3
Marlin/src/HAL/STM32/timers.h

@ -21,15 +21,12 @@
*/
#pragma once
#include <stdint.h>
#include "../../inc/MarlinConfig.h"
// ------------------------
// Defines
// ------------------------
#define FORCE_INLINE __attribute__((always_inline)) inline
// STM32 timers may be 16 or 32 bit. Limiting HAL_TIMER_TYPE_MAX to 16 bits
// avoids issues with STM32F0 MCUs, which seem to pause timers if UINT32_MAX
// is written to the register. STM32F4 timers do not manifest this issue,

6
Marlin/src/HAL/STM32F1/timers.h

@ -25,9 +25,10 @@
* HAL for stm32duino.com based on Libmaple and compatible (STM32F1)
*/
#include <stdint.h>
#include "../../inc/MarlinConfig.h"
#include "HAL.h"
#include <libmaple/timer.h>
#include "../../core/boards.h"
// ------------------------
// Defines
@ -37,7 +38,6 @@
* TODO: Check and confirm what timer we will use for each Temps and stepper driving.
* We should probable drive temps with PWM.
*/
#define FORCE_INLINE __attribute__((always_inline)) inline
typedef uint16_t hal_timer_t;
#define HAL_TIMER_TYPE_MAX 0xFFFF

3
Marlin/src/HAL/TEENSY31_32/HAL_SPI.cpp

@ -21,11 +21,12 @@
*/
#ifdef __MK20DX256__
#include "../../inc/MarlinConfig.h"
#include "HAL.h"
#include <SPI.h>
#include <pins_arduino.h>
#include "spi_pins.h"
#include "../../core/macros.h"
static SPISettings spiConfig;

3
Marlin/src/HAL/TEENSY35_36/HAL_SPI.cpp

@ -26,11 +26,12 @@
#if defined(__MK64FX512__) || defined(__MK66FX1M0__)
#include "../../inc/MarlinConfig.h"
#include "HAL.h"
#include <SPI.h>
#include <pins_arduino.h>
#include "spi_pins.h"
#include "../../core/macros.h"
static SPISettings spiConfig;

3
Marlin/src/HAL/TEENSY40_41/HAL.cpp

@ -26,10 +26,11 @@
#ifdef __IMXRT1062__
#include "../../inc/MarlinConfig.h"
#include "HAL.h"
#include "../shared/Delay.h"
#include "timers.h"
#include <Wire.h>
#define _IMPLEMENT_SERIAL(X) DefaultSerial##X MSerial##X(false, Serial##X)

3
Marlin/src/HAL/TEENSY40_41/HAL_SPI.cpp

@ -26,11 +26,12 @@
#ifdef __IMXRT1062__
#include "../../inc/MarlinConfig.h"
#include "HAL.h"
#include <SPI.h>
#include <pins_arduino.h>
#include "spi_pins.h"
#include "../../core/macros.h"
static SPISettings spiConfig;

4
Marlin/src/HAL/shared/Marduino.h

@ -82,4 +82,8 @@
#define UNUSED(x) ((void)(x))
#endif
#ifndef FORCE_INLINE
#define FORCE_INLINE inline __attribute__((always_inline))
#endif
#include "progmem.h"

2
Marlin/src/inc/MarlinConfigPre.h

@ -34,8 +34,8 @@
#include "../HAL/platforms.h"
#endif
#include "../core/boards.h"
#include "../core/macros.h"
#include "../core/boards.h"
#include "../../Configuration.h"
#ifdef CUSTOM_VERSION_FILE

7
Marlin/src/lcd/extui/lib/dgus/mks/DGUSScreenHandler.cpp

@ -26,19 +26,16 @@
#include "../DGUSScreenHandler.h"
#include "../../../../../inc/MarlinConfig.h"
#include "../../../../../MarlinCore.h"
#include "../../../../../gcode/queue.h"
#include "../../../../../libs/duration_t.h"
#include "../../../../../module/settings.h"
#include "../../../../../module/temperature.h"
#include "../../../../../module/motion.h"
#include "../../../../../module/planner.h"
#include "../../../../../module/printcounter.h"
#include "../../../../../sd/cardreader.h"
#include "../../../../../gcode/gcode.h"
#include "../../../../../pins/pins.h"
#include "../../../../../libs/nozzle.h"
#if ENABLED(HAS_STEALTHCHOP)
#include "../../../../../module/stepper/trinamic.h"

6
Marlin/src/libs/softspi.h

@ -25,11 +25,7 @@
// Based on https://github.com/niteris/ArduinoSoftSpi
//
#include "../HAL/shared/Marduino.h"
#ifndef FORCE_INLINE
#define FORCE_INLINE inline __attribute__((always_inline))
#endif
#include "../HAL/shared/Marduino.h" // CORE_TEENSY
#define nop __asm__ volatile ("nop") // NOP for timing

Loading…
Cancel
Save