Pārlūkot izejas kodu

Merge pull request #6 from PaulStoffregen/master

resync
teensy4-core
duff2013 pirms 10 gadiem
vecāks
revīzija
ca5fdc4347
17 mainītis faili ar 2714 papildinājumiem un 2591 dzēšanām
  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 Parādīt failu

#ifndef DMAChannel_h_ #ifndef DMAChannel_h_
#define 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... // This code is a work-in-progress. It's incomplete and not usable yet...
// //

+ 1
- 2
teensy3/HardwareSerial.h Parādīt failu

#ifndef HardwareSerial_h #ifndef HardwareSerial_h
#define HardwareSerial_h #define HardwareSerial_h


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


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

+ 1
- 2
teensy3/IntervalTimer.h Parādīt failu

#ifndef __INTERVALTIMER_H__ #ifndef __INTERVALTIMER_H__
#define __INTERVALTIMER_H__ #define __INTERVALTIMER_H__


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


#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

+ 1
- 1
teensy3/avr_emulation.h Parādīt failu

#ifndef _avr_emulation_h_ #ifndef _avr_emulation_h_
#define _avr_emulation_h_ #define _avr_emulation_h_


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



+ 6
- 1
teensy3/core_pins.h Parādīt failu

#ifndef _core_pins_h_ #ifndef _core_pins_h_
#define _core_pins_h_ #define _core_pins_h_


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




static inline void analogWriteResolution(uint32_t bits) { analogWriteRes(bits); } static inline void analogWriteResolution(uint32_t bits) { analogWriteRes(bits); }
void analogWriteFrequency(uint8_t pin, uint32_t frequency); void analogWriteFrequency(uint8_t pin, uint32_t frequency);
void analogWriteDAC0(int val); 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 attachInterrupt(uint8_t pin, void (*function)(void), int mode);
void detachInterrupt(uint8_t pin); void detachInterrupt(uint8_t pin);
void _init_Teensyduino_internal_(void); void _init_Teensyduino_internal_(void);

+ 1
- 1
teensy3/eeprom.c Parādīt failu

* SOFTWARE. * SOFTWARE.
*/ */


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



+ 2690
- 0
teensy3/kinetis.h
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 1
- 1
teensy3/mk20dx128.c Parādīt failu

* SOFTWARE. * SOFTWARE.
*/ */


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




extern unsigned long _stext; extern unsigned long _stext;

+ 1
- 2575
teensy3/mk20dx128.h
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 5
- 0
teensy3/pins_teensy.c Parādīt failu

// fast interrupts will still be serviced quickly? // 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) void attachInterrupt(uint8_t pin, void (*function)(void), int mode)
{ {
volatile uint32_t *config; volatile uint32_t *config;

+ 1
- 1
teensy3/serial1.c Parādīt failu

* SOFTWARE. * SOFTWARE.
*/ */


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



+ 1
- 1
teensy3/serial2.c Parādīt failu

* SOFTWARE. * SOFTWARE.
*/ */


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



+ 1
- 1
teensy3/serial3.c Parādīt failu

* SOFTWARE. * SOFTWARE.
*/ */


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



+ 1
- 1
teensy3/usb_desc.c Parādīt failu

#include "usb_desc.h" #include "usb_desc.h"
#ifdef NUM_ENDPOINTS #ifdef NUM_ENDPOINTS
#include "usb_names.h" #include "usb_names.h"
#include "mk20dx128.h"
#include "kinetis.h"
#include "avr_functions.h" #include "avr_functions.h"


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

+ 1
- 1
teensy3/usb_dev.c Parādīt failu

#include "usb_dev.h" #include "usb_dev.h"
#if F_CPU >= 20000000 && defined(NUM_ENDPOINTS) #if F_CPU >= 20000000 && defined(NUM_ENDPOINTS)


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



+ 1
- 1
teensy3/usb_mem.c Parādīt failu

#include "usb_dev.h" #include "usb_dev.h"
#if F_CPU >= 20000000 && defined(NUM_ENDPOINTS) #if F_CPU >= 20000000 && defined(NUM_ENDPOINTS)


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



+ 0
- 1
teensy3/usb_seremu.c Parādīt failu



#if F_CPU >= 20000000 #if F_CPU >= 20000000


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

Notiek ielāde…
Atcelt
Saglabāt