Compile only selected PIO environment (#11519)
This commit is contained in:
parent
5be2559eda
commit
c64199941e
58 changed files with 248 additions and 84 deletions
|
@ -34,7 +34,7 @@
|
|||
#include <avr/interrupt.h>
|
||||
#include <avr/io.h>
|
||||
|
||||
#include "../HAL_SPI.h"
|
||||
#include "../shared/HAL_SPI.h"
|
||||
#include "fastio_AVR.h"
|
||||
#include "watchdog_AVR.h"
|
||||
#include "math_AVR.h"
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
|
||||
#include "../persistent_store_api.h"
|
||||
#include "../shared/persistent_store_api.h"
|
||||
|
||||
bool PersistentStore::access_start() { return true; }
|
||||
bool PersistentStore::access_finish() { return true; }
|
||||
|
|
51
Marlin/src/HAL/HAL_AVR/persistent_store_impl.cpp
Normal file
51
Marlin/src/HAL/HAL_AVR/persistent_store_impl.cpp
Normal file
|
@ -0,0 +1,51 @@
|
|||
#ifdef __AVR__
|
||||
|
||||
#include "../shared/persistent_store_api.h"
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
|
||||
namespace HAL {
|
||||
namespace PersistentStore {
|
||||
|
||||
bool access_start() { return true; }
|
||||
bool access_finish() { return true; }
|
||||
|
||||
bool write_data(int &pos, const uint8_t *value, uint16_t size, uint16_t *crc) {
|
||||
while (size--) {
|
||||
uint8_t * const p = (uint8_t * const)pos;
|
||||
uint8_t v = *value;
|
||||
// EEPROM has only ~100,000 write cycles,
|
||||
// so only write bytes that have changed!
|
||||
if (v != eeprom_read_byte(p)) {
|
||||
eeprom_write_byte(p, v);
|
||||
if (eeprom_read_byte(p) != v) {
|
||||
SERIAL_ECHO_START();
|
||||
SERIAL_ECHOLNPGM(MSG_ERR_EEPROM_WRITE);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
crc16(crc, &v, 1);
|
||||
pos++;
|
||||
value++;
|
||||
};
|
||||
return false;
|
||||
}
|
||||
|
||||
bool read_data(int &pos, uint8_t* value, uint16_t size, uint16_t *crc, const bool writing/*=true*/) {
|
||||
do {
|
||||
uint8_t c = eeprom_read_byte((unsigned char*)pos);
|
||||
if (writing) *value = c;
|
||||
crc16(crc, &c, 1);
|
||||
pos++;
|
||||
value++;
|
||||
} while (--size);
|
||||
return false; // always assume success for AVR's
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // EEPROM_SETTINGS
|
||||
#endif // __AVR__
|
|
@ -60,8 +60,8 @@
|
|||
#include <avr/interrupt.h>
|
||||
#include <Arduino.h>
|
||||
|
||||
#include "../servo.h"
|
||||
#include "../servo_private.h"
|
||||
#include "../shared/servo.h"
|
||||
#include "../shared/servo_private.h"
|
||||
|
||||
static volatile int8_t Channel[_Nbr_16timers]; // counter for the servo being pulsed for each timer (or -1 if refresh interval)
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
#ifdef ARDUINO_ARCH_SAM
|
||||
|
||||
#include "../persistent_store_api.h"
|
||||
#include "../shared/persistent_store_api.h"
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS) && DISABLED(I2C_EEPROM) && DISABLED(SPI_EEPROM)
|
||||
|
|
|
@ -35,8 +35,8 @@
|
|||
|
||||
#include <Arduino.h>
|
||||
|
||||
#include "../math_32bit.h"
|
||||
#include "../HAL_SPI.h"
|
||||
#include "../shared/math_32bit.h"
|
||||
#include "../shared/HAL_SPI.h"
|
||||
#include "fastio_Due.h"
|
||||
#include "watchdog_Due.h"
|
||||
#include "HAL_timers_Due.h"
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
// --------------------------------------------------------------------------
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
#include "../Delay.h"
|
||||
#include "../shared/Delay.h"
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
// Public Variables
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
#include <Arduino.h>
|
||||
#include "../servo.h"
|
||||
#include "../servo_private.h"
|
||||
#include "../shared/servo_private.h"
|
||||
|
||||
static volatile int8_t Channel[_Nbr_16timers]; // counter for the servo being pulsed for each timer (or -1 if refresh interval)
|
||||
|
||||
|
|
|
@ -22,12 +22,12 @@
|
|||
*/
|
||||
#ifdef ARDUINO_ARCH_SAM
|
||||
|
||||
#include "../persistent_store_api.h"
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
#include "../../inc/MarlinConfigPre.h"
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
|
||||
#include "../shared/persistent_store_api.h"
|
||||
|
||||
extern void eeprom_flush(void);
|
||||
|
||||
bool PersistentStore::access_start() { return true; }
|
||||
|
|
59
Marlin/src/HAL/HAL_DUE/persistent_store_impl.cpp
Normal file
59
Marlin/src/HAL/HAL_DUE/persistent_store_impl.cpp
Normal file
|
@ -0,0 +1,59 @@
|
|||
#ifdef ARDUINO_ARCH_SAM
|
||||
|
||||
#include "../shared/persistent_store_api.h"
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
|
||||
extern void eeprom_flush(void);
|
||||
|
||||
namespace HAL {
|
||||
namespace PersistentStore {
|
||||
|
||||
bool access_start() { return true; }
|
||||
|
||||
bool access_finish() {
|
||||
#if DISABLED(I2C_EEPROM) && DISABLED(SPI_EEPROM)
|
||||
eeprom_flush();
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
bool write_data(int &pos, const uint8_t *value, uint16_t size, uint16_t *crc) {
|
||||
while (size--) {
|
||||
uint8_t * const p = (uint8_t * const)pos;
|
||||
uint8_t v = *value;
|
||||
// EEPROM has only ~100,000 write cycles,
|
||||
// so only write bytes that have changed!
|
||||
if (v != eeprom_read_byte(p)) {
|
||||
eeprom_write_byte(p, v);
|
||||
if (eeprom_read_byte(p) != v) {
|
||||
SERIAL_ECHO_START();
|
||||
SERIAL_ECHOLNPGM(MSG_ERR_EEPROM_WRITE);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
crc16(crc, &v, 1);
|
||||
pos++;
|
||||
value++;
|
||||
};
|
||||
return false;
|
||||
}
|
||||
|
||||
bool read_data(int &pos, uint8_t* value, uint16_t size, uint16_t *crc, const bool writing/*=true*/) {
|
||||
do {
|
||||
uint8_t c = eeprom_read_byte((unsigned char*)pos);
|
||||
if (writing) *value = c;
|
||||
crc16(crc, &c, 1);
|
||||
pos++;
|
||||
value++;
|
||||
} while (--size);
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // EEPROM_SETTINGS
|
||||
#endif // __AVR__
|
|
@ -61,7 +61,7 @@
|
|||
|
||||
#include <U8glib.h>
|
||||
#include <Arduino.h>
|
||||
#include "../Delay.h"
|
||||
#include "../shared/Delay.h"
|
||||
|
||||
void u8g_SetPIOutput_DUE(u8g_t *u8g, uint8_t pin_index) {
|
||||
PIO_Configure(g_APinDescription[u8g->pin_list[pin_index]].pPort, PIO_OUTPUT_1,
|
||||
|
|
|
@ -40,8 +40,8 @@
|
|||
#undef DISABLED
|
||||
#define DISABLED(b) (!_CAT(SWITCH_ENABLED_, b))
|
||||
|
||||
#include "../math_32bit.h"
|
||||
#include "../HAL_SPI.h"
|
||||
#include "../shared/math_32bit.h"
|
||||
#include "../shared/HAL_SPI.h"
|
||||
|
||||
#include "fastio_ESP32.h"
|
||||
#include "watchdog_ESP32.h"
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
// --------------------------------------------------------------------------
|
||||
|
||||
#include "HAL.h"
|
||||
#include "../HAL_SPI.h"
|
||||
#include "../shared/HAL_SPI.h"
|
||||
#include "pins_arduino.h"
|
||||
#include "spi_pins.h"
|
||||
#include "../../core/macros.h"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#ifdef TARGET_LPC1768
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
#include "../Delay.h"
|
||||
#include "../shared/Delay.h"
|
||||
|
||||
HalSerial usb_serial;
|
||||
|
||||
|
|
|
@ -60,8 +60,8 @@ extern "C" volatile uint32_t _millis;
|
|||
#include <Arduino.h>
|
||||
#include <pinmapping.h>
|
||||
|
||||
#include "../math_32bit.h"
|
||||
#include "../HAL_SPI.h"
|
||||
#include "../shared/math_32bit.h"
|
||||
#include "../shared/HAL_SPI.h"
|
||||
#include "fastio.h"
|
||||
#include "watchdog.h"
|
||||
#include "serial.h"
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include <lpc17xx_pinsel.h>
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
#include "../Delay.h"
|
||||
#include "../shared/Delay.h"
|
||||
|
||||
// Interrupts
|
||||
void cli(void) { __disable_irq(); } // Disable
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "../../HAL_SPI.h"
|
||||
#include "../../shared/HAL_SPI.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
//
|
||||
//#include <WInterrupts.h>
|
||||
#include "../../../inc/MarlinConfig.h"
|
||||
#include "../../Delay.h"
|
||||
#include "../../shared/Delay.h"
|
||||
#include <stdint.h>
|
||||
#include <stdarg.h>
|
||||
#include <Arduino.h>
|
||||
|
|
|
@ -19,6 +19,6 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#include "../persistent_store_api.h"
|
||||
#include "../shared/persistent_store_api.h"
|
||||
|
||||
//#define FLASH_EEPROM
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
|
||||
//#include <inttypes.h>
|
||||
#include <U8glib.h>
|
||||
#include "../Delay.h"
|
||||
#include "../shared/Delay.h"
|
||||
|
||||
#define SPI_FULL_SPEED 0
|
||||
#define SPI_HALF_SPEED 1
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
|
||||
#include <U8glib.h>
|
||||
#include "SoftwareSPI.h"
|
||||
#include "../Delay.h"
|
||||
#include "../shared/Delay.h"
|
||||
|
||||
#define SPI_SPEED 3 // About 1 MHz
|
||||
|
||||
|
|
|
@ -56,8 +56,8 @@
|
|||
// Includes
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
#include "../math_32bit.h"
|
||||
#include "../HAL_SPI.h"
|
||||
#include "../shared/math_32bit.h"
|
||||
#include "../shared/HAL_SPI.h"
|
||||
|
||||
#include "fastio_Stm32f1.h"
|
||||
#include "watchdog_Stm32f1.h"
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
// --------------------------------------------------------------------------
|
||||
|
||||
#include "HAL.h"
|
||||
#include "../HAL_SPI.h"
|
||||
#include "../shared/HAL_SPI.h"
|
||||
#include "pins_arduino.h"
|
||||
#include "spi_pins.h"
|
||||
#include "../../core/macros.h"
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
// This is for EEPROM emulation in flash
|
||||
#if ENABLED(EEPROM_SETTINGS) && ENABLED(FLASH_EEPROM_EMULATION)
|
||||
|
||||
#include "../persistent_store_api.h"
|
||||
#include "../shared/persistent_store_api.h"
|
||||
|
||||
#include <flash_stm32.h>
|
||||
#include <EEPROM.h>
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
|
||||
#if ENABLED(EEPROM_SETTINGS) && DISABLED(FLASH_EEPROM_EMULATION)
|
||||
|
||||
#include "../persistent_store_api.h"
|
||||
#include "../shared/persistent_store_api.h"
|
||||
|
||||
#include "../../sd/cardreader.h"
|
||||
|
||||
#define HAL_STM32F1_EEPROM_SIZE 4096
|
||||
|
|
|
@ -43,8 +43,8 @@
|
|||
#include <USBSerial.h>
|
||||
#endif
|
||||
|
||||
#include "../math_32bit.h"
|
||||
#include "../HAL_SPI.h"
|
||||
#include "../shared/math_32bit.h"
|
||||
#include "../shared/HAL_SPI.h"
|
||||
#include "fastio_STM32F4.h"
|
||||
#include "watchdog_STM32F4.h"
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
// --------------------------------------------------------------------------
|
||||
|
||||
#include "HAL.h"
|
||||
#include "../HAL_SPI.h"
|
||||
#include "../shared/HAL_SPI.h"
|
||||
#include "pins_arduino.h"
|
||||
#include "spi_pins.h"
|
||||
#include "../../core/macros.h"
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#if defined(STM32F4) || defined(STM32F4xx)
|
||||
|
||||
#include "../persistent_store_api.h"
|
||||
#include "../shared/persistent_store_api.h"
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
|
||||
|
|
|
@ -39,8 +39,8 @@
|
|||
|
||||
#include "Arduino.h"
|
||||
|
||||
#include "../math_32bit.h"
|
||||
#include "../HAL_SPI.h"
|
||||
#include "../shared/math_32bit.h"
|
||||
#include "../shared/HAL_SPI.h"
|
||||
|
||||
#include "fastio_STM32F7.h"
|
||||
#include "watchdog_STM32F7.h"
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
// --------------------------------------------------------------------------
|
||||
|
||||
#include "HAL.h"
|
||||
#include "../HAL_SPI.h"
|
||||
#include "../shared/HAL_SPI.h"
|
||||
#include "pins_arduino.h"
|
||||
#include "spi_pins.h"
|
||||
#include "../../core/macros.h"
|
||||
|
|
|
@ -23,11 +23,11 @@
|
|||
|
||||
#ifdef STM32F7
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
#include "../../inc/MarlinConfigPre.h"
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
|
||||
#include "../persistent_store_api.h"
|
||||
#include "../shared/persistent_store_api.h"
|
||||
|
||||
bool PersistentStore::access_start() { return true; }
|
||||
bool PersistentStore::access_finish() { return true; }
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#if defined(__MK64FX512__) || defined(__MK66FX1M0__)
|
||||
|
||||
#include "HAL.h"
|
||||
#include "../Delay.h"
|
||||
#include "../shared/Delay.h"
|
||||
|
||||
#include <Wire.h>
|
||||
|
||||
|
|
|
@ -42,8 +42,8 @@
|
|||
#undef sq
|
||||
#define sq(x) ((x)*(x))
|
||||
|
||||
#include "../math_32bit.h"
|
||||
#include "../HAL_SPI.h"
|
||||
#include "../shared/math_32bit.h"
|
||||
#include "../shared/HAL_SPI.h"
|
||||
|
||||
#include "fastio_Teensy.h"
|
||||
#include "watchdog_Teensy.h"
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
|
||||
#include "../persistent_store_api.h"
|
||||
#include "../shared/persistent_store_api.h"
|
||||
#include <avr/eeprom.h>
|
||||
|
||||
bool PersistentStore::access_start() { return true; }
|
||||
|
|
51
Marlin/src/HAL/HAL_TEENSY35_36/persistent_store_impl.cpp
Normal file
51
Marlin/src/HAL/HAL_TEENSY35_36/persistent_store_impl.cpp
Normal file
|
@ -0,0 +1,51 @@
|
|||
#if defined(__MK64FX512__) || defined(__MK66FX1M0__)
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
|
||||
#include "../shared/persistent_store_api.h"
|
||||
|
||||
namespace HAL {
|
||||
namespace PersistentStore {
|
||||
|
||||
bool access_start() { return true; }
|
||||
bool access_finish() { return true; }
|
||||
|
||||
bool write_data(int &pos, const uint8_t *value, uint16_t size, uint16_t *crc) {
|
||||
while (size--) {
|
||||
uint8_t * const p = (uint8_t * const)pos;
|
||||
uint8_t v = *value;
|
||||
// EEPROM has only ~100,000 write cycles,
|
||||
// so only write bytes that have changed!
|
||||
if (v != eeprom_read_byte(p)) {
|
||||
eeprom_write_byte(p, v);
|
||||
if (eeprom_read_byte(p) != v) {
|
||||
SERIAL_ECHO_START();
|
||||
SERIAL_ECHOLNPGM(MSG_ERR_EEPROM_WRITE);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
crc16(crc, &v, 1);
|
||||
pos++;
|
||||
value++;
|
||||
};
|
||||
return false;
|
||||
}
|
||||
|
||||
bool read_data(int &pos, uint8_t* value, uint16_t size, uint16_t *crc, const bool writing/*=true*/) {
|
||||
do {
|
||||
uint8_t c = eeprom_read_byte((unsigned char*)pos);
|
||||
if (writing) *value = c;
|
||||
crc16(crc, &c, 1);
|
||||
pos++;
|
||||
value++;
|
||||
} while (--size);
|
||||
return false;
|
||||
}
|
||||
|
||||
} // PersistentStore
|
||||
} // HAL
|
||||
|
||||
#endif // EEPROM_SETTINGS
|
||||
#endif // __MK64FX512__ || __MK66FX1M0__
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
|
||||
#include "persistent_store_api.h"
|
||||
#include "shared/persistent_store_api.h"
|
||||
PersistentStore persistentStore;
|
||||
|
||||
#endif
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#ifndef MARLIN_DELAY_H
|
||||
#define MARLIN_DELAY_H
|
||||
|
||||
#include "../core/macros.h"
|
||||
#include "../../core/macros.h"
|
||||
|
||||
#if defined(__arm__) || defined(__thumb__)
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* Not platform dependent.
|
||||
*/
|
||||
|
||||
#include "../inc/MarlinConfig.h"
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
|
||||
#if ENABLED(I2C_EEPROM)
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* Not platform dependent.
|
||||
*/
|
||||
|
||||
#include "../inc/MarlinConfig.h"
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
|
||||
#if ENABLED(SPI_EEPROM)
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
#ifndef MATH_32BIT_H
|
||||
#define MATH_32BIT_H
|
||||
|
||||
#include "../core/macros.h"
|
||||
#include "../../core/macros.h"
|
||||
|
||||
/**
|
||||
* Math helper functions for 32 bit CPUs
|
|
@ -51,7 +51,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "../inc/MarlinConfig.h"
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
|
||||
#if HAS_SERVOS && !(IS_32BIT_TEENSY || defined(TARGET_LPC1768) || defined(STM32F4) || defined(STM32F4xx))
|
||||
|
|
@ -70,12 +70,12 @@
|
|||
#define SERVO_H
|
||||
|
||||
#if IS_32BIT_TEENSY
|
||||
#include "HAL_TEENSY35_36/HAL_Servo_Teensy.h" // Teensy HAL uses an inherited library
|
||||
#include "../HAL_TEENSY35_36/HAL_Servo_Teensy.h" // Teensy HAL uses an inherited library
|
||||
|
||||
#elif defined(TARGET_LPC1768)
|
||||
#include "HAL_LPC1768/LPC1768_Servo.h"
|
||||
#include "../HAL_LPC1768/LPC1768_Servo.h"
|
||||
#elif defined(STM32F4) || defined(STM32F4xx)
|
||||
#include "HAL_STM32F4/HAL_Servo_STM32F4.h"
|
||||
#include "../HAL_STM32F4/HAL_Servo_STM32F4.h"
|
||||
#else
|
||||
#include <stdint.h>
|
||||
|
|
@ -46,9 +46,9 @@
|
|||
|
||||
// Architecture specific include
|
||||
#ifdef __AVR__
|
||||
#include "HAL_AVR/ServoTimers.h"
|
||||
#include "../HAL_AVR/ServoTimers.h"
|
||||
#elif defined(ARDUINO_ARCH_SAM)
|
||||
#include "HAL_DUE/ServoTimers.h"
|
||||
#include "../HAL_DUE/ServoTimers.h"
|
||||
#else
|
||||
#error "This library only supports boards with an AVR or SAM3X processor."
|
||||
#endif
|
|
@ -46,7 +46,7 @@
|
|||
#include "../module/planner.h"
|
||||
#include "../module/stepper.h"
|
||||
#include "../Marlin.h"
|
||||
#include "../HAL/Delay.h"
|
||||
#include "../HAL/shared/Delay.h"
|
||||
|
||||
uint8_t LEDs[8 * (MAX7219_NUMBER_UNITS)] = { 0 };
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include "ubl.h"
|
||||
|
||||
#include "../../../Marlin.h"
|
||||
#include "../../../HAL/persistent_store_api.h"
|
||||
#include "../../../HAL/shared/persistent_store_api.h"
|
||||
#include "../../../libs/hex_print_routines.h"
|
||||
#include "../../../module/configuration_store.h"
|
||||
#include "../../../lcd/ultralcd.h"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include "../../Marlin.h"
|
||||
#include "../../module/stepper.h"
|
||||
#include "../../HAL/Delay.h"
|
||||
#include "../../HAL/shared/Delay.h"
|
||||
|
||||
dac084s085::dac084s085() { }
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#ifndef _MARLIN_CONFIGPRE_H_
|
||||
#define _MARLIN_CONFIGPRE_H_
|
||||
|
||||
#include "../HAL/platforms.h"
|
||||
#include "../HAL/shared/platforms.h"
|
||||
#include "../core/boards.h"
|
||||
#include "../core/macros.h"
|
||||
#include "../core/types.h"
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
#if !(defined(U8G_HAL_LINKS) || defined(__SAM3X8E__))
|
||||
|
||||
#include "../../HAL/Delay.h"
|
||||
#include "../../HAL/shared/Delay.h"
|
||||
|
||||
#define ST7920_CLK_PIN LCD_PINS_D4
|
||||
#define ST7920_DAT_PIN LCD_PINS_ENABLE
|
||||
|
|
|
@ -344,7 +344,7 @@ void MarlinSettings::postprocess() {
|
|||
}
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
#include "../HAL/persistent_store_api.h"
|
||||
#include "../HAL/shared/persistent_store_api.h"
|
||||
|
||||
#define DUMMY_PID_VALUE 3000.0f
|
||||
#define EEPROM_START() int eeprom_index = EEPROM_OFFSET; persistentStore.access_start()
|
||||
|
|
|
@ -24,8 +24,9 @@
|
|||
#define CONFIGURATION_STORE_H
|
||||
|
||||
#include "../inc/MarlinConfig.h"
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
#include "../HAL/persistent_store_api.h"
|
||||
#include "../HAL/shared/persistent_store_api.h"
|
||||
#endif
|
||||
|
||||
#define ADD_PORT_ARG ENABLED(EEPROM_CHITCHAT) && NUM_SERIAL > 1
|
||||
|
|
|
@ -31,7 +31,7 @@ Stopwatch print_job_timer; // Global Print Job Timer instance
|
|||
|
||||
#include "printcounter.h"
|
||||
#include "../Marlin.h"
|
||||
#include "../HAL/persistent_store_api.h"
|
||||
#include "../HAL/shared/persistent_store_api.h"
|
||||
|
||||
PrintCounter print_job_timer; // Global Print Job Timer instance
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#ifndef _SERVO_H_
|
||||
#define _SERVO_H_
|
||||
|
||||
#include "../HAL/servo.h"
|
||||
#include "../HAL/shared/servo.h"
|
||||
|
||||
extern HAL_SERVO_LIB servo[NUM_SERVOS];
|
||||
extern void servo_init();
|
||||
|
|
|
@ -93,7 +93,7 @@
|
|||
#include "../gcode/queue.h"
|
||||
#include "../sd/cardreader.h"
|
||||
#include "../Marlin.h"
|
||||
#include "../HAL/Delay.h"
|
||||
#include "../HAL/shared/Delay.h"
|
||||
|
||||
#if MB(ALLIGATOR)
|
||||
#include "../feature/dac/dac_dac084s085.h"
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include "../lcd/ultralcd.h"
|
||||
#include "planner.h"
|
||||
#include "../core/language.h"
|
||||
#include "../HAL/Delay.h"
|
||||
#include "../HAL/shared/Delay.h"
|
||||
|
||||
#if ENABLED(HEATER_0_USES_MAX6675)
|
||||
#include "../libs/private_spi.h"
|
||||
|
|
|
@ -58,7 +58,7 @@ board = megaatmega2560
|
|||
build_flags = ${common.build_flags}
|
||||
board_build.f_cpu = 16000000L
|
||||
lib_deps = ${common.lib_deps}
|
||||
src_filter = ${common.default_src_filter}
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
|
||||
monitor_speed = 250000
|
||||
|
||||
#
|
||||
|
@ -71,7 +71,7 @@ board = megaatmega1280
|
|||
build_flags = ${common.build_flags}
|
||||
board_build.f_cpu = 16000000L
|
||||
lib_deps = ${common.lib_deps}
|
||||
src_filter = ${common.default_src_filter}
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
|
||||
monitor_speed = 250000
|
||||
|
||||
#
|
||||
|
@ -88,7 +88,7 @@ board = at90usb1286
|
|||
build_flags = ${common.build_flags}
|
||||
lib_deps = ${common.lib_deps}
|
||||
lib_ldf_mode = deep+
|
||||
src_filter = ${common.default_src_filter}
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
|
||||
extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_CDC.py
|
||||
monitor_speed = 250000
|
||||
|
||||
|
@ -122,7 +122,7 @@ board = due
|
|||
build_flags = ${common.build_flags}
|
||||
lib_deps = ${common.lib_deps}
|
||||
lib_ignore = c1921b4
|
||||
src_filter = ${common.default_src_filter}
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
|
||||
monitor_speed = 250000
|
||||
[env:DUE_USB]
|
||||
platform = atmelsam
|
||||
|
@ -131,7 +131,7 @@ board = dueUSB
|
|||
build_flags = ${common.build_flags}
|
||||
lib_deps = ${common.lib_deps}
|
||||
lib_ignore = c1921b4
|
||||
src_filter = ${common.default_src_filter}
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
|
||||
monitor_speed = 250000
|
||||
[env:DUE_debug]
|
||||
# Used when WATCHDOG_RESET_MANUAL is enabled
|
||||
|
@ -143,7 +143,7 @@ build_flags = ${common.build_flags}
|
|||
-mpoke-function-name
|
||||
lib_deps = ${common.lib_deps}
|
||||
lib_ignore = c1921b4
|
||||
src_filter = ${common.default_src_filter}
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
|
||||
monitor_speed = 250000
|
||||
|
||||
#
|
||||
|
@ -165,7 +165,7 @@ lib_deps = CMSIS-LPC1768
|
|||
TMC2130Stepper@>=2.2.1
|
||||
TMC2208Stepper@>=0.2.1
|
||||
extra_scripts = Marlin/src/HAL/HAL_LPC1768/debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py, Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
|
||||
src_filter = ${common.default_src_filter}
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_LPC1768>
|
||||
monitor_speed = 250000
|
||||
debug_tool = custom
|
||||
debug_server =
|
||||
|
@ -187,7 +187,7 @@ board = sanguino_atmega1284p
|
|||
build_flags = ${common.build_flags}
|
||||
upload_speed = 57600
|
||||
lib_deps = ${common.lib_deps}
|
||||
src_filter = ${common.default_src_filter}
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
|
||||
monitor_speed = 250000
|
||||
|
||||
#
|
||||
|
@ -200,7 +200,7 @@ board = sanguino_atmega1284p
|
|||
build_flags = ${common.build_flags}
|
||||
upload_speed = 115200
|
||||
lib_deps = ${common.lib_deps}
|
||||
src_filter = ${common.default_src_filter}
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
|
||||
monitor_speed = 250000
|
||||
|
||||
#
|
||||
|
@ -213,7 +213,7 @@ board = reprap_rambo
|
|||
build_flags = ${common.build_flags}
|
||||
board_build.f_cpu = 16000000L
|
||||
lib_deps = ${common.lib_deps}
|
||||
src_filter = ${common.default_src_filter}
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
|
||||
monitor_speed = 250000
|
||||
|
||||
#
|
||||
|
@ -225,7 +225,7 @@ framework = arduino
|
|||
board = sanguino_atmega644p
|
||||
build_flags = ${common.build_flags}
|
||||
lib_deps = ${common.lib_deps}
|
||||
src_filter = ${common.default_src_filter}
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
|
||||
monitor_speed = 250000
|
||||
|
||||
#
|
||||
|
@ -237,7 +237,7 @@ framework = arduino
|
|||
board = sanguino_atmega1284p
|
||||
build_flags = ${common.build_flags}
|
||||
lib_deps = ${common.lib_deps}
|
||||
src_filter = ${common.default_src_filter}
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
|
||||
monitor_speed = 250000
|
||||
|
||||
#
|
||||
|
@ -259,7 +259,7 @@ lib_ignore = U8glib-HAL
|
|||
libf3e
|
||||
TMC26XStepper
|
||||
lib_ldf_mode = 1
|
||||
src_filter = ${common.default_src_filter}
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
|
||||
monitor_speed = 250000
|
||||
|
||||
#
|
||||
|
@ -272,7 +272,7 @@ board = disco_f407vg
|
|||
build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB
|
||||
lib_deps = ${common.lib_deps}
|
||||
lib_ignore = Adafruit NeoPixel, c1921b4, TMC2130Stepper
|
||||
src_filter = ${common.default_src_filter}
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F4>
|
||||
monitor_speed = 250000
|
||||
|
||||
#
|
||||
|
@ -285,7 +285,7 @@ board = teensy35
|
|||
build_flags = ${common.build_flags}
|
||||
lib_deps = ${common.lib_deps}
|
||||
lib_ignore = Adafruit NeoPixel
|
||||
src_filter = ${common.default_src_filter}
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_TEENSY35_36>
|
||||
monitor_speed = 250000
|
||||
|
||||
[env:malyanm200]
|
||||
|
@ -293,7 +293,7 @@ platform = ststm32
|
|||
framework = arduino
|
||||
board = malyanM200
|
||||
build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py -DMCU_STM32F103CB -D __STM32F1__=1 -std=c++1y -D MOTHERBOARD="BOARD_MALYAN_M200" -DSERIAL_USB -ffunction-sections -fdata-sections -Wl,--gc-sections
|
||||
src_filter = ${common.default_src_filter}
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
|
||||
#-<frameworks>
|
||||
lib_ignore =
|
||||
U8glib
|
||||
|
@ -324,3 +324,4 @@ lib_ignore =
|
|||
LiquidTWI2
|
||||
TMC26XStepper
|
||||
c1921b4
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_ESP32>
|
||||
|
|
Loading…
Reference in a new issue