Browse Source
Merge pull request #9351 from Bob-the-Kuhn/Fix-USEABLE_HARDWARE_PWM-for-Due
[2.0.x] fix USEABLE_HARDWARE_PWM for DUE
pull/1/head
Bob-the-Kuhn
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
Marlin/src/HAL/HAL_DUE/fastio_Due.h
|
@ -45,7 +45,7 @@ |
|
|
|
|
|
|
|
|
// Due has 12 PWMs assigned to logical pins 2-13.
|
|
|
// Due has 12 PWMs assigned to logical pins 2-13.
|
|
|
// 6, 7, 8 & 9 come from the PWM controller. The others come from the timers.
|
|
|
// 6, 7, 8 & 9 come from the PWM controller. The others come from the timers.
|
|
|
#define USEABLE_HARDWARE_PWM(p) ((2 >= p) && (p <= 13)) |
|
|
#define USEABLE_HARDWARE_PWM(p) ((2 <= p) && (p <= 13)) |
|
|
|
|
|
|
|
|
#ifndef MASK |
|
|
#ifndef MASK |
|
|
#define MASK(PIN) (1 << PIN) |
|
|
#define MASK(PIN) (1 << PIN) |
|
|