瀏覽代碼

Merge pull request #6 from PaulStoffregen/master

resync
teensy4-core
duff2013 10 年之前
父節點
當前提交
ca5fdc4347
共有 17 個檔案被更改,包括 2714 行新增2591 行删除
  1. +1
    -1
      teensy3/DMAChannel.h
  2. +1
    -2
      teensy3/HardwareSerial.h
  3. +1
    -2
      teensy3/IntervalTimer.h
  4. +1
    -1
      teensy3/avr_emulation.h
  5. +6
    -1
      teensy3/core_pins.h
  6. +1
    -1
      teensy3/eeprom.c
  7. +2690
    -0
      teensy3/kinetis.h
  8. +1
    -1
      teensy3/mk20dx128.c
  9. +1
    -2575
      teensy3/mk20dx128.h
  10. +5
    -0
      teensy3/pins_teensy.c
  11. +1
    -1
      teensy3/serial1.c
  12. +1
    -1
      teensy3/serial2.c
  13. +1
    -1
      teensy3/serial3.c
  14. +1
    -1
      teensy3/usb_desc.c
  15. +1
    -1
      teensy3/usb_dev.c
  16. +1
    -1
      teensy3/usb_mem.c
  17. +0
    -1
      teensy3/usb_seremu.c

+ 1
- 1
teensy3/DMAChannel.h 查看文件

@@ -1,7 +1,7 @@
#ifndef DMAChannel_h_
#define DMAChannel_h_

#include "mk20dx128.h"
#include "kinetis.h"

// This code is a work-in-progress. It's incomplete and not usable yet...
//

+ 1
- 2
teensy3/HardwareSerial.h 查看文件

@@ -31,8 +31,7 @@
#ifndef HardwareSerial_h
#define HardwareSerial_h

#include "mk20dx128.h"
#include <inttypes.h>
#include "kinetis.h"

// uncomment to enable 9 bit formats
//#define SERIAL_9BIT_SUPPORT

+ 1
- 2
teensy3/IntervalTimer.h 查看文件

@@ -21,8 +21,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#ifndef __INTERVALTIMER_H__
#define __INTERVALTIMER_H__

#include <stdint.h>
#include "mk20dx128.h"
#include "kinetis.h"

#ifdef __cplusplus
extern "C" {

+ 1
- 1
teensy3/avr_emulation.h 查看文件

@@ -31,7 +31,7 @@
#ifndef _avr_emulation_h_
#define _avr_emulation_h_

#include "mk20dx128.h"
#include "kinetis.h"
#include "core_pins.h"
#include "pins_arduino.h"


+ 6
- 1
teensy3/core_pins.h 查看文件

@@ -31,7 +31,7 @@
#ifndef _core_pins_h_
#define _core_pins_h_

#include "mk20dx128.h"
#include "kinetis.h"
#include "pins_arduino.h"


@@ -693,6 +693,11 @@ void analogWriteRes(uint32_t bits);
static inline void analogWriteResolution(uint32_t bits) { analogWriteRes(bits); }
void analogWriteFrequency(uint8_t pin, uint32_t frequency);
void analogWriteDAC0(int val);
#ifdef __cplusplus
void attachInterruptVector(IRQ_NUMBER_t irq, void (*function)(void));
#else
void attachInterruptVector(enum IRQ_NUMBER_t irq, void (*function)(void));
#endif
void attachInterrupt(uint8_t pin, void (*function)(void), int mode);
void detachInterrupt(uint8_t pin);
void _init_Teensyduino_internal_(void);

+ 1
- 1
teensy3/eeprom.c 查看文件

@@ -28,7 +28,7 @@
* SOFTWARE.
*/

#include "mk20dx128.h"
#include "kinetis.h"
#include <stdint.h>
//#include "HardwareSerial.h"


+ 2690
- 0
teensy3/kinetis.h
文件差異過大導致無法顯示
查看文件


+ 1
- 1
teensy3/mk20dx128.c 查看文件

@@ -28,7 +28,7 @@
* SOFTWARE.
*/

#include "mk20dx128.h"
#include "kinetis.h"


extern unsigned long _stext;

+ 1
- 2575
teensy3/mk20dx128.h
文件差異過大導致無法顯示
查看文件


+ 5
- 0
teensy3/pins_teensy.c 查看文件

@@ -116,6 +116,11 @@ void init_pin_interrupts(void)
// fast interrupts will still be serviced quickly?
}

void attachInterruptVector(enum IRQ_NUMBER_t irq, void (*function)(void))
{
_VectorsRam[irq + 16] = function;
}

void attachInterrupt(uint8_t pin, void (*function)(void), int mode)
{
volatile uint32_t *config;

+ 1
- 1
teensy3/serial1.c 查看文件

@@ -28,7 +28,7 @@
* SOFTWARE.
*/

#include "mk20dx128.h"
#include "kinetis.h"
#include "core_pins.h"
#include "HardwareSerial.h"


+ 1
- 1
teensy3/serial2.c 查看文件

@@ -28,7 +28,7 @@
* SOFTWARE.
*/

#include "mk20dx128.h"
#include "kinetis.h"
#include "core_pins.h"
#include "HardwareSerial.h"


+ 1
- 1
teensy3/serial3.c 查看文件

@@ -28,7 +28,7 @@
* SOFTWARE.
*/

#include "mk20dx128.h"
#include "kinetis.h"
#include "core_pins.h"
#include "HardwareSerial.h"


+ 1
- 1
teensy3/usb_desc.c 查看文件

@@ -33,7 +33,7 @@
#include "usb_desc.h"
#ifdef NUM_ENDPOINTS
#include "usb_names.h"
#include "mk20dx128.h"
#include "kinetis.h"
#include "avr_functions.h"

// USB Descriptors are binary data which the USB host reads to

+ 1
- 1
teensy3/usb_dev.c 查看文件

@@ -31,7 +31,7 @@
#include "usb_dev.h"
#if F_CPU >= 20000000 && defined(NUM_ENDPOINTS)

#include "mk20dx128.h"
#include "kinetis.h"
//#include "HardwareSerial.h"
#include "usb_mem.h"


+ 1
- 1
teensy3/usb_mem.c 查看文件

@@ -31,7 +31,7 @@
#include "usb_dev.h"
#if F_CPU >= 20000000 && defined(NUM_ENDPOINTS)

#include "mk20dx128.h"
#include "kinetis.h"
//#include "HardwareSerial.h"
#include "usb_mem.h"


+ 0
- 1
teensy3/usb_seremu.c 查看文件

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

#if F_CPU >= 20000000

//#include "mk20dx128.h"
#include "usb_dev.h"
#include "usb_seremu.h"
#include "core_pins.h" // for yield()

Loading…
取消
儲存