Sfoglia il codice sorgente

Add avr/power.h + minor Teensy-LC fixes

main
PaulStoffregen 9 anni fa
parent
commit
c2f7a79b99
3 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. +4
    -0
      teensy3/avr/power.h
  2. +1
    -1
      teensy3/mkl26z64.ld
  3. +1
    -1
      teensy3/pins_arduino.h

+ 4
- 0
teensy3/avr/power.h Vedi File

@@ -0,0 +1,4 @@
#ifndef _AVR_POWER_H_
#define _AVR_POWER_H_ 1

#endif

+ 1
- 1
teensy3/mkl26z64.ld Vedi File

@@ -30,7 +30,7 @@

MEMORY
{
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 60K
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 62K
RAM (rwx) : ORIGIN = 0x1FFFF800, LENGTH = 8K
}


+ 1
- 1
teensy3/pins_arduino.h Vedi File

@@ -93,7 +93,7 @@ const static uint8_t SCL = 19;
#define digitalPinToInterrupt(p) ((p) < NUM_DIGITAL_PINS ? (p) : -1)
#elif defined(__MKL26Z64__)
#define analogInputToDigitalPin(p) (((p) <= 9) ? (p) + 14 : (((p) <= 12) ? (p) + 14 : -1))
#define digitalPinHasPWM(p) ((p) == 3 || (p) == 4 || (p) == 6 || (p) == 9 || (p) == 10 || (p) <= 16 || (p) == 17 || (p) == 20 || (p) == 22 || (p) == 23)
#define digitalPinHasPWM(p) ((p) == 3 || (p) == 4 || (p) == 6 || (p) == 9 || (p) == 10 || (p) == 16 || (p) == 17 || (p) == 20 || (p) == 22 || (p) == 23)
#define digitalPinToInterrupt(p) ((((p) >= 2 && (p) <= 15) || ((p) >= 20 && (p) <= 23)) ? (p) : -1)
#endif


Loading…
Annulla
Salva