Browse Source

fix compiler errors generated by more stringent flags in Makefile:

- use volatile for registers
- avoid implicit casts
towara 8 years ago
parent
commit
150b15c311
1 changed files with 8 additions and 8 deletions
  1. 8
    8
      Marlin/pinsDebug.h

+ 8
- 8
Marlin/pinsDebug.h View File

59
 
59
 
60
 // manually add pins that have names that are macros which don't play well with these macros
60
 // manually add pins that have names that are macros which don't play well with these macros
61
 #if SERIAL_PORT == 0 && (AVR_ATmega2560_FAMILY || AVR_ATmega1284_FAMILY)
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
 #endif
64
 #endif
65
 
65
 
66
 /////////////////////////////////////////////////////////////////////////////
66
 /////////////////////////////////////////////////////////////////////////////
92
   // manually add pins ...
92
   // manually add pins ...
93
   #if SERIAL_PORT == 0
93
   #if SERIAL_PORT == 0
94
     #if AVR_ATmega2560_FAMILY
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
     #elif AVR_ATmega1284_FAMILY
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
     #endif
100
     #endif
101
   #endif
101
   #endif
102
 
102
 
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
     {&TCCR0A, &TCCR0B, &TIMSK0},
185
     {&TCCR0A, &TCCR0B, &TIMSK0},
186
     {&TCCR1A, &TCCR1B, &TIMSK1},
186
     {&TCCR1A, &TCCR1B, &TIMSK1},
187
   #if defined(TCCR2A) && defined(COM2A1)
187
   #if defined(TCCR2A) && defined(COM2A1)
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
   #ifdef TIMER0A
204
   #ifdef TIMER0A
205
     {&OCR0A,&OCR0B,0},
205
     {&OCR0A,&OCR0B,0},

Loading…
Cancel
Save