2 * Marlin 3D Printer Firmware
4 * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
5 * SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
21 #ifdef ADAFRUIT_GRAND_CENTRAL_M4
24 * Framework doesn't define some serials to save sercom resources
25 * hence if these are used I need to define them
28 #include "../../inc/MarlinConfig.h"
31 Uart
Serial2(&sercom4
, PIN_SERIAL2_RX
, PIN_SERIAL2_TX
, PAD_SERIAL2_RX
, PAD_SERIAL2_TX
);
32 void SERCOM4_0_Handler() { Serial2
.IrqHandler(); }
33 void SERCOM4_1_Handler() { Serial2
.IrqHandler(); }
34 void SERCOM4_2_Handler() { Serial2
.IrqHandler(); }
35 void SERCOM4_3_Handler() { Serial2
.IrqHandler(); }
39 Uart
Serial3(&sercom1
, PIN_SERIAL3_RX
, PIN_SERIAL3_TX
, PAD_SERIAL3_RX
, PAD_SERIAL3_TX
);
40 void SERCOM1_0_Handler() { Serial3
.IrqHandler(); }
41 void SERCOM1_1_Handler() { Serial3
.IrqHandler(); }
42 void SERCOM1_2_Handler() { Serial3
.IrqHandler(); }
43 void SERCOM1_3_Handler() { Serial3
.IrqHandler(); }
47 Uart
Serial4(&sercom5
, PIN_SERIAL4_RX
, PIN_SERIAL4_TX
, PAD_SERIAL4_RX
, PAD_SERIAL4_TX
);
48 void SERCOM5_0_Handler() { Serial4
.IrqHandler(); }
49 void SERCOM5_1_Handler() { Serial4
.IrqHandler(); }
50 void SERCOM5_2_Handler() { Serial4
.IrqHandler(); }
51 void SERCOM5_3_Handler() { Serial4
.IrqHandler(); }
54 #endif // ADAFRUIT_GRAND_CENTRAL_M4