浏览代码

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

main
PaulStoffregen 9 年前
父节点
当前提交
c2f7a79b99
共有 3 个文件被更改,包括 6 次插入2 次删除
  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 查看文件

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

#endif

+ 1
- 1
teensy3/mkl26z64.ld 查看文件

@@ -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 查看文件

@@ -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


正在加载...
取消
保存