Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
marlin-anet-a8
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
marlin-anet-a8
Commits
580d314f
Commit
580d314f
authored
Mar 22, 2020
by
Scott Lahteine
Browse files
Options
Downloads
Patches
Plain Diff
Skip impossible PWM sanity-checks
parent
fe154fa5
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Marlin/src/HAL/STM32F1/HAL.h
+1
-0
1 addition, 0 deletions
Marlin/src/HAL/STM32F1/HAL.h
Marlin/src/inc/SanityCheck.h
+1
-1
1 addition, 1 deletion
Marlin/src/inc/SanityCheck.h
with
2 additions
and
1 deletion
Marlin/src/HAL/STM32F1/HAL.h
+
1
−
0
View file @
580d314f
...
@@ -160,6 +160,7 @@ void HAL_idletask();
...
@@ -160,6 +160,7 @@ void HAL_idletask();
#ifndef digitalPinHasPWM
#ifndef digitalPinHasPWM
#define digitalPinHasPWM(P) (PIN_MAP[P].timer_device != nullptr)
#define digitalPinHasPWM(P) (PIN_MAP[P].timer_device != nullptr)
#define NO_COMPILE_TIME_PWM
#endif
#endif
#define CRITICAL_SECTION_START() uint32_t primask = __get_primask(); (void)__iCliRetVal()
#define CRITICAL_SECTION_START() uint32_t primask = __get_primask(); (void)__iCliRetVal()
...
...
This diff is collapsed.
Click to expand it.
Marlin/src/inc/SanityCheck.h
+
1
−
1
View file @
580d314f
...
@@ -1985,7 +1985,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
...
@@ -1985,7 +1985,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
/**
/**
* Auto Fan check for PWM pins
* Auto Fan check for PWM pins
*/
*/
#if HAS_AUTO_FAN && EXTRUDER_AUTO_FAN_SPEED != 255
#if HAS_AUTO_FAN && EXTRUDER_AUTO_FAN_SPEED != 255
&& DISABLED(NO_COMPILE_TIME_PWM)
#define AF_ERR_SUFF "_AUTO_FAN_PIN is not a PWM pin. Set EXTRUDER_AUTO_FAN_SPEED to 255."
#define AF_ERR_SUFF "_AUTO_FAN_PIN is not a PWM pin. Set EXTRUDER_AUTO_FAN_SPEED to 255."
#if HAS_AUTO_FAN_0
#if HAS_AUTO_FAN_0
static_assert
(
PWM_PIN
(
E0_AUTO_FAN_PIN
),
"E0"
AF_ERR_SUFF
);
static_assert
(
PWM_PIN
(
E0_AUTO_FAN_PIN
),
"E0"
AF_ERR_SUFF
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment