Explorar el Código

Merge pull request #6 from PaulStoffregen/master

resync
teensy4-core
duff2013 hace 10 años
padre
commit
ca5fdc4347
Se han modificado 17 ficheros con 2714 adiciones y 2591 borrados
  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 Ver fichero

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

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

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

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

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

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

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


+ 2690
- 0
teensy3/kinetis.h
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 1
- 1
teensy3/mk20dx128.c Ver fichero

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

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


extern unsigned long _stext;

+ 1
- 2575
teensy3/mk20dx128.h
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 5
- 0
teensy3/pins_teensy.c Ver fichero

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

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

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


+ 1
- 1
teensy3/serial2.c Ver fichero

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

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


+ 1
- 1
teensy3/serial3.c Ver fichero

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

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


+ 1
- 1
teensy3/usb_desc.c Ver fichero

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

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

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

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

Cargando…
Cancelar
Guardar