|
@@ -59,8 +59,8 @@ bool endstop_monitor_flag = false;
|
59
|
59
|
|
60
|
60
|
// manually add pins that have names that are macros which don't play well with these macros
|
61
|
61
|
#if SERIAL_PORT == 0 && (AVR_ATmega2560_FAMILY || AVR_ATmega1284_FAMILY)
|
62
|
|
- static const unsigned char RXD_NAME[] PROGMEM = {"RXD"};
|
63
|
|
- static const unsigned char TXD_NAME[] PROGMEM = {"TXD"};
|
|
62
|
+ static const char RXD_NAME[] PROGMEM = {"RXD"};
|
|
63
|
+ static const char TXD_NAME[] PROGMEM = {"TXD"};
|
64
|
64
|
#endif
|
65
|
65
|
|
66
|
66
|
/////////////////////////////////////////////////////////////////////////////
|
|
@@ -92,11 +92,11 @@ const char* const pin_array[][3] PROGMEM = {
|
92
|
92
|
// manually add pins ...
|
93
|
93
|
#if SERIAL_PORT == 0
|
94
|
94
|
#if AVR_ATmega2560_FAMILY
|
95
|
|
- {RXD_NAME, 0, 1},
|
96
|
|
- {TXD_NAME, 1, 1},
|
|
95
|
+ {RXD_NAME, "0", "1"},
|
|
96
|
+ {TXD_NAME, "1", "1"},
|
97
|
97
|
#elif AVR_ATmega1284_FAMILY
|
98
|
|
- {RXD_NAME, 8, 1},
|
99
|
|
- {TXD_NAME, 9, 1},
|
|
98
|
+ {RXD_NAME, "8", "1"},
|
|
99
|
+ {TXD_NAME, "9", "1"},
|
100
|
100
|
#endif
|
101
|
101
|
#endif
|
102
|
102
|
|
|
@@ -181,7 +181,7 @@ static bool pwm_status(uint8_t pin) {
|
181
|
181
|
|
182
|
182
|
|
183
|
183
|
|
184
|
|
-const uint8_t* const PWM_other[][3] PROGMEM = {
|
|
184
|
+const volatile uint8_t* const PWM_other[][3] PROGMEM = {
|
185
|
185
|
{&TCCR0A, &TCCR0B, &TIMSK0},
|
186
|
186
|
{&TCCR1A, &TCCR1B, &TIMSK1},
|
187
|
187
|
#if defined(TCCR2A) && defined(COM2A1)
|
|
@@ -199,7 +199,7 @@ const uint8_t* const PWM_other[][3] PROGMEM = {
|
199
|
199
|
};
|
200
|
200
|
|
201
|
201
|
|
202
|
|
-const uint8_t* const PWM_OCR[][3] PROGMEM = {
|
|
202
|
+const volatile uint8_t* const PWM_OCR[][3] PROGMEM = {
|
203
|
203
|
|
204
|
204
|
#ifdef TIMER0A
|
205
|
205
|
{&OCR0A,&OCR0B,0},
|