AVR - Incorrect SPI clock rate bit constant names in some microcontroller units
Original Reporter info from Mantis: ccrause @ccrause
-
Reporter name: Christo Crause
Original Reporter info from Mantis: ccrause @ccrause
- Reporter name: Christo Crause
Description:
In some microcontroller unit files the constants for the bit positions SPR1 and SPR0 are incorrectly specified as:
SPR = 0; // SPI Clock Rate Selects
Typically two bits are used to select the clock frequency for SPI:
SPR1 = 1; // SPI Clock Rate Selects
SPR0 = 0; // SPI Clock Rate Selects
I have fixed these constants everywhere I could find "SPR = 0", see attached patch.
Mantis conversion info:
- Mantis ID: 32339
- Build: 36879
- Version: 3.1.1
- Monitored by: » dioannidis (Dimitrios Chr. Ioannidis), » @ccrause (Christo Crause)