Browse Source

Merge pull request #75 from kbob/LC-TPM-DMA-bit

LC TPM DMA Enable bit
teensy4-core
Paul Stoffregen 9 years ago
parent
commit
9288323459
2 changed files with 4 additions and 1 deletions
  1. +1
    -1
      teensy3/DMAChannel.h
  2. +3
    -0
      teensy3/kinetis.h

+ 1
- 1
teensy3/DMAChannel.h View File

@@ -791,7 +791,7 @@ public:
d = (dcr >> 17) & 3;
if (s == 0 || d == 0) n = 2;
else if (s == 2 || d == 2) n = 1;
CFG->DSR_BCR = len >> n;
CFG->DSR_BCR = len << n;
}

/*************************************************/

+ 3
- 0
teensy3/kinetis.h View File

@@ -1628,6 +1628,9 @@ enum IRQ_NUMBER_t {

// Chapter 35: FlexTimer Module (FTM)
#define FTM0_SC (*(volatile uint32_t *)0x40038000) // Status And Control
#ifdef KINETISL
#define FTM_SC_DMA 0x100 // DMA Enable
#endif
#define FTM_SC_TOF 0x80 // Timer Overflow Flag
#define FTM_SC_TOIE 0x40 // Timer Overflow Interrupt Enable
#define FTM_SC_CPWMS 0x20 // Center-Aligned PWM Select

Loading…
Cancel
Save