Browse Source

Keep unused native SPI chip selects high (disabled)

teensy4-core
PaulStoffregen 11 years ago
parent
commit
9f839edf0b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      teensy3/avr_emulation.h

+ 1
- 1
teensy3/avr_emulation.h View File

} }
ctar |= (SPI0_CTAR0 & SPI_CTAR_DBR); ctar |= (SPI0_CTAR0 & SPI_CTAR_DBR);
update_ctar(ctar); update_ctar(ctar);
mcr = SPI_MCR_DCONF(0);
mcr = SPI_MCR_DCONF(0) | SPI_MCR_PCSIS(0x1F);
if (val & (1<<MSTR)) mcr |= SPI_MCR_MSTR; if (val & (1<<MSTR)) mcr |= SPI_MCR_MSTR;
if (val & (1<<SPE)) { if (val & (1<<SPE)) {
mcr &= ~(SPI_MCR_MDIS | SPI_MCR_HALT); mcr &= ~(SPI_MCR_MDIS | SPI_MCR_HALT);

Loading…
Cancel
Save