Skip to content

Commit

Permalink
🎨 Update SAMD51 headers
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Dec 16, 2022
1 parent 2778b00 commit a121c80
Show file tree
Hide file tree
Showing 18 changed files with 127 additions and 36 deletions.
9 changes: 7 additions & 2 deletions Marlin/src/HAL/SAMD51/HAL.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -18,6 +19,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

/**
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*/
#ifdef __SAMD51__

#include "../../inc/MarlinConfig.h"
Expand Down
9 changes: 7 additions & 2 deletions Marlin/src/HAL/SAMD51/HAL.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -20,6 +21,10 @@
*/
#pragma once

/**
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*/

#define CPU_32_BIT

#include "../shared/Marduino.h"
Expand Down
9 changes: 7 additions & 2 deletions Marlin/src/HAL/SAMD51/HAL_SPI.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -19,6 +20,10 @@
*
*/

/**
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*/

/**
* Hardware and software SPI implementations are included in this file.
*
Expand Down
9 changes: 7 additions & 2 deletions Marlin/src/HAL/SAMD51/MarlinSerial_AGCM4.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -18,6 +19,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

/**
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*/
#ifdef ADAFRUIT_GRAND_CENTRAL_M4

/**
Expand Down
9 changes: 7 additions & 2 deletions Marlin/src/HAL/SAMD51/MarlinSerial_AGCM4.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -20,6 +21,10 @@
*/
#pragma once

/**
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*/

#include "../../core/serial_hook.h"

typedef Serial1Class<Uart> UartT;
Expand Down
9 changes: 7 additions & 2 deletions Marlin/src/HAL/SAMD51/SAMD51.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -20,6 +21,10 @@
*/
#pragma once

/**
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*/

#define SYNC(sc) while (sc) { \
asm(""); \
}
Expand Down
9 changes: 7 additions & 2 deletions Marlin/src/HAL/SAMD51/Servo.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -19,6 +20,10 @@
*
*/

/**
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*/

/**
* This comes from Arduino library which at the moment is buggy and uncompilable
*/
Expand Down
9 changes: 7 additions & 2 deletions Marlin/src/HAL/SAMD51/ServoTimers.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -20,6 +21,10 @@
*/
#pragma once

/**
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*/

#define _useTimer1
#define _useTimer2

Expand Down
9 changes: 7 additions & 2 deletions Marlin/src/HAL/SAMD51/eeprom_flash.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -18,6 +19,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

/**
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*/
#ifdef __SAMD51__

#include "../../inc/MarlinConfig.h"
Expand Down
9 changes: 7 additions & 2 deletions Marlin/src/HAL/SAMD51/eeprom_qspi.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -18,6 +19,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

/**
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*/
#ifdef __SAMD51__

#include "../../inc/MarlinConfig.h"
Expand Down
9 changes: 7 additions & 2 deletions Marlin/src/HAL/SAMD51/eeprom_wired.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -18,6 +19,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

/**
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*/
#ifdef __SAMD51__

#include "../../inc/MarlinConfig.h"
Expand Down
9 changes: 7 additions & 2 deletions Marlin/src/HAL/SAMD51/endstop_interrupts.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -20,6 +21,10 @@
*/
#pragma once

/**
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*/

/**
* Endstop interrupts for ATMEL SAMD51 based targets.
*
Expand Down
9 changes: 7 additions & 2 deletions Marlin/src/HAL/SAMD51/fastio.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -20,6 +21,10 @@
*/
#pragma once

/**
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*/

/**
* Fast IO functions for SAMD51
*/
Expand Down
10 changes: 8 additions & 2 deletions Marlin/src/HAL/SAMD51/inc/SanityCheck.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -18,6 +19,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once

/**
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*/

/**
* Test SAMD51 specific configuration values for errors at compile-time.
Expand Down
9 changes: 7 additions & 2 deletions Marlin/src/HAL/SAMD51/pinsDebug.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -20,6 +21,10 @@
*/
#pragma once

/**
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*/

#define NUMBER_PINS_TOTAL PINS_COUNT

#define digitalRead_mod(p) extDigitalRead(p)
Expand Down
9 changes: 7 additions & 2 deletions Marlin/src/HAL/SAMD51/spi_pins.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -20,6 +21,10 @@
*/
#pragma once

/**
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*/

#ifdef ADAFRUIT_GRAND_CENTRAL_M4

/*
Expand Down
9 changes: 7 additions & 2 deletions Marlin/src/HAL/SAMD51/timers.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* Marlin 3D Printer Firmware
*
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -18,6 +19,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

/**
* SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
*/
#ifdef __SAMD51__

// --------------------------------------------------------------------------
Expand Down
Loading

0 comments on commit a121c80

Please sign in to comment.