Browse Source

Add FASTRUN

teensy4-core
PaulStoffregen 10 years ago
parent
commit
f3677fd16d
3 changed files with 3 additions and 0 deletions
  1. +1
    -0
      teensy3/WProgram.h
  2. +1
    -0
      teensy3/mk20dx128.ld
  3. +1
    -0
      teensy3/mk20dx256.ld

+ 1
- 0
teensy3/WProgram.h View File

#include "HardwareSerial.h" #include "HardwareSerial.h"


#define DMAMEM __attribute__ ((section(".dmabuffers"), used)) #define DMAMEM __attribute__ ((section(".dmabuffers"), used))
#define FASTRUN __attribute__ ((section(".fastrun")))


#ifdef __cplusplus #ifdef __cplusplus



+ 1
- 0
teensy3/mk20dx128.ld View File

.data : AT (_etext) { .data : AT (_etext) {
. = ALIGN(4); . = ALIGN(4);
_sdata = .; _sdata = .;
*(.fastrun*)
*(.data*) *(.data*)
. = ALIGN(4); . = ALIGN(4);
_edata = .; _edata = .;

+ 1
- 0
teensy3/mk20dx256.ld View File

.data : AT (_etext) { .data : AT (_etext) {
. = ALIGN(4); . = ALIGN(4);
_sdata = .; _sdata = .;
*(.fastrun*)
*(.data*) *(.data*)
. = ALIGN(4); . = ALIGN(4);
_edata = .; _edata = .;

Loading…
Cancel
Save