Browse Source

TeensyLC does not have CMP1 and CMP2

main
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

@@ -3007,6 +3007,7 @@ typedef struct {
#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_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_CR1 (*(volatile uint8_t *)0x40073009) // CMP Control Register 1
#define CMP1_FPR (*(volatile uint8_t *)0x4007300A) // CMP Filter Period Register
@@ -3025,7 +3026,7 @@ typedef struct {
#define CMP3_SCR (*(volatile uint8_t *)0x4007301B) // CMP Status and Control Register
#define CMP3_DACCR (*(volatile uint8_t *)0x4007301C) // DAC Control Register
#define CMP3_MUXCR (*(volatile uint8_t *)0x4007301D) // MUX Control Register
#endif
// Analog Voltage Reference (VREFV1)

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

Loading…
Cancel
Save