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

@@ -16,6 +16,7 @@
#include "HardwareSerial.h"

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

#ifdef __cplusplus


+ 1
- 0
teensy3/mk20dx128.ld View File

@@ -84,6 +84,7 @@ SECTIONS
.data : AT (_etext) {
. = ALIGN(4);
_sdata = .;
*(.fastrun*)
*(.data*)
. = ALIGN(4);
_edata = .;

+ 1
- 0
teensy3/mk20dx256.ld View File

@@ -119,6 +119,7 @@ SECTIONS
.data : AT (_etext) {
. = ALIGN(4);
_sdata = .;
*(.fastrun*)
*(.data*)
. = ALIGN(4);
_edata = .;

Loading…
Cancel
Save