-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bugfix-2.1.x' of https://github.com/MarlinFirmware/Marlin…
… into bugfix-2.1.x-Dec
- Loading branch information
Showing
120 changed files
with
1,261 additions
and
755 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# | ||
# ci-validate-pins.yml | ||
# Validate that all of the pins files are unchanged by pinsformat.py | ||
# | ||
|
||
name: CI - Validate Pins Files | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- bugfix-2.1.x | ||
# Cannot be enabled on 2.1.x until it contains the unit test framework | ||
#- 2.1.x | ||
paths: | ||
- 'Marlin/src/pins/*/**' | ||
push: | ||
branches: | ||
- bugfix-2.1.x | ||
# Cannot be enabled on 2.1.x until it contains the unit test framework | ||
#- 2.1.x | ||
paths: | ||
- 'Marlin/src/pins/*/**' | ||
|
||
jobs: | ||
validate_pins_files: | ||
name: Validate Pins Files | ||
if: github.repository == 'MarlinFirmware/Marlin' | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out the PR | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache pip | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Select Python 3.9 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.9' | ||
architecture: 'x64' | ||
|
||
- name: Validate all pins files | ||
run: | | ||
make validate-pins -j |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/** | ||
* app_config.h is included by the hc32f460 arduino build script for every source file. | ||
* it is used to configure the arduino core (and ddl) automatically according | ||
* to the settings in Configuration.h and Configuration_adv.h. | ||
*/ | ||
#pragma once | ||
#ifndef _HC32_APP_CONFIG_H_ | ||
#define _HC32_APP_CONFIG_H_ | ||
|
||
#include "../../inc/MarlinConfigPre.h" | ||
|
||
// | ||
// dev mode | ||
// | ||
#if ENABLED(MARLIN_DEV_MODE) | ||
#define __DEBUG 1 | ||
#define __CORE_DEBUG 1 | ||
#endif | ||
|
||
// | ||
// Fault Handlers and Panic | ||
// | ||
|
||
#if ENABLED(POSTMORTEM_DEBUGGING) | ||
// disable arduino core fault handler, as we define our own | ||
#define CORE_DISABLE_FAULT_HANDLER 1 | ||
#endif | ||
|
||
// force-enable panic handler so that we can use our custom one (in MinSerial) | ||
#define PANIC_ENABLE 1 | ||
|
||
// use short filenames in ddl debug and core panic output | ||
#define __DEBUG_SHORT_FILENAMES 1 | ||
#define __PANIC_SHORT_FILENAMES 1 | ||
|
||
// omit panic messages in core panic output | ||
#define __OMIT_PANIC_MESSAGE 1 | ||
|
||
// | ||
// Usart | ||
// | ||
|
||
// disable serial globals (Serial1, Serial2, ...), as we define our own | ||
#define DISABLE_SERIAL_GLOBALS 1 | ||
|
||
// increase the size of the Usart buffers (both RX and TX) | ||
// NOTE: | ||
// the heap usage will increase by (SERIAL_BUFFER_SIZE - 64) * "number of serial ports used" | ||
// if running out of heap, the system may become unstable | ||
//#define SERIAL_BUFFER_SIZE 256 | ||
|
||
// enable support for Usart Clock Divider / Oversampling auto config | ||
#define USART_AUTO_CLKDIV_OS_CONFIG 1 | ||
|
||
// enable USART_RX_DMA_SUPPORT core option when SERIAL_DMA is enabled | ||
#if ENABLED(SERIAL_DMA) | ||
#define USART_RX_DMA_SUPPORT 1 | ||
#endif | ||
|
||
// | ||
// Misc. | ||
// | ||
|
||
// redirect printf to host serial | ||
#define REDIRECT_PRINTF_TO_SERIAL 1 | ||
|
||
// FIXME override F_CPU to PCLK1, as marlin freaks out otherwise | ||
#define F_CPU (SYSTEM_CLOCK_FREQUENCIES.pclk1) | ||
|
||
#endif // _HC32_APP_CONFIG_H_ |
Oops, something went wrong.