Browse Source

Add 2 channel enable flags for I2S

main
PaulStoffregen 9 years ago
parent
commit
7e46ee291b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      teensy3/kinetis.h

+ 2
- 0
teensy3/kinetis.h View File

#define I2S0_TCR3 (*(volatile uint32_t *)0x4002F00C) // SAI Transmit Configuration 3 Register #define I2S0_TCR3 (*(volatile uint32_t *)0x4002F00C) // SAI Transmit Configuration 3 Register
#define I2S_TCR3_WDFL(n) ((uint32_t)n & 0x0f) // word flag configuration #define I2S_TCR3_WDFL(n) ((uint32_t)n & 0x0f) // word flag configuration
#define I2S_TCR3_TCE ((uint32_t)0x10000) // transmit channel enable #define I2S_TCR3_TCE ((uint32_t)0x10000) // transmit channel enable
#define I2S_TCR3_TCE_2CH ((uint32_t)0x30000) // transmit 2 channel enable
#define I2S0_TCR4 (*(volatile uint32_t *)0x4002F010) // SAI Transmit Configuration 4 Register #define I2S0_TCR4 (*(volatile uint32_t *)0x4002F010) // SAI Transmit Configuration 4 Register
#define I2S_TCR4_FSD ((uint32_t)1) // Frame Sync Direction #define I2S_TCR4_FSD ((uint32_t)1) // Frame Sync Direction
#define I2S_TCR4_FSP ((uint32_t)2) // Frame Sync Polarity #define I2S_TCR4_FSP ((uint32_t)2) // Frame Sync Polarity
#define I2S0_RCR3 (*(volatile uint32_t *)0x4002F08C) // SAI Receive Configuration 3 Register #define I2S0_RCR3 (*(volatile uint32_t *)0x4002F08C) // SAI Receive Configuration 3 Register
#define I2S_RCR3_WDFL(n) ((uint32_t)n & 0x0f) // word flag configuration #define I2S_RCR3_WDFL(n) ((uint32_t)n & 0x0f) // word flag configuration
#define I2S_RCR3_RCE ((uint32_t)0x10000) // receive channel enable #define I2S_RCR3_RCE ((uint32_t)0x10000) // receive channel enable
#define I2S_RCR3_RCE_2CH ((uint32_t)0x30000) // receive 2 channel enable
#define I2S0_RCR4 (*(volatile uint32_t *)0x4002F090) // SAI Receive Configuration 4 Register #define I2S0_RCR4 (*(volatile uint32_t *)0x4002F090) // SAI Receive Configuration 4 Register
#define I2S_RCR4_FSD ((uint32_t)1) // Frame Sync Direction #define I2S_RCR4_FSD ((uint32_t)1) // Frame Sync Direction
#define I2S_RCR4_FSP ((uint32_t)2) // Frame Sync Polarity #define I2S_RCR4_FSP ((uint32_t)2) // Frame Sync Polarity

Loading…
Cancel
Save