Browse Source

TeensyLC does not have CMP1 and CMP2

teensy4-core
duff2013 7 years ago
parent
commit
94346adeac
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      teensy3/kinetis.h

+ 2
- 1
teensy3/kinetis.h View File

#define CMP_MUXCR_PSTM (uint8_t)0x40 // Pass Through Mode Enable #define CMP_MUXCR_PSTM (uint8_t)0x40 // Pass Through Mode Enable
#define CMP_MUXCR_PSEL(n) (uint8_t)(((n) & 0x07) << 3) // Plus Input Mux Control #define CMP_MUXCR_PSEL(n) (uint8_t)(((n) & 0x07) << 3) // Plus Input Mux Control
#define CMP_MUXCR_MSEL(n) (uint8_t)(((n) & 0x07) << 0) // Minus Input Mux Control #define CMP_MUXCR_MSEL(n) (uint8_t)(((n) & 0x07) << 0) // Minus Input Mux Control
#if defined(KINETISK)
#define CMP1_CR0 (*(volatile uint8_t *)0x40073008) // CMP Control Register 0 #define CMP1_CR0 (*(volatile uint8_t *)0x40073008) // CMP Control Register 0
#define CMP1_CR1 (*(volatile uint8_t *)0x40073009) // CMP Control Register 1 #define CMP1_CR1 (*(volatile uint8_t *)0x40073009) // CMP Control Register 1
#define CMP1_FPR (*(volatile uint8_t *)0x4007300A) // CMP Filter Period Register #define CMP1_FPR (*(volatile uint8_t *)0x4007300A) // CMP Filter Period Register
#define CMP3_SCR (*(volatile uint8_t *)0x4007301B) // CMP Status and Control Register #define CMP3_SCR (*(volatile uint8_t *)0x4007301B) // CMP Status and Control Register
#define CMP3_DACCR (*(volatile uint8_t *)0x4007301C) // DAC Control Register #define CMP3_DACCR (*(volatile uint8_t *)0x4007301C) // DAC Control Register
#define CMP3_MUXCR (*(volatile uint8_t *)0x4007301D) // MUX Control Register #define CMP3_MUXCR (*(volatile uint8_t *)0x4007301D) // MUX Control Register
#endif
// Analog Voltage Reference (VREFV1) // Analog Voltage Reference (VREFV1)


#define VREF_TRM (*(volatile uint8_t *)0x40074000) // VREF Trim Register #define VREF_TRM (*(volatile uint8_t *)0x40074000) // VREF Trim Register

Loading…
Cancel
Save