Added support to the AVRISP-MKII project for ISP speeds slower than 125KHz via a new software SPI driver.

Added new SPI_ORDER_* data order masks to the SPI peripheral driver.
This commit is contained in:
Dean Camera 2010-07-29 07:09:57 +00:00
parent 9a97f16b07
commit de5b16909a
11 changed files with 269 additions and 90 deletions

View file

@ -113,7 +113,7 @@ void SetupHardware(void)
LEDs_Init();
Joystick_Init();
Buttons_Init();
SPI_Init(SPI_SPEED_FCPU_DIV_2 | SPI_SCK_LEAD_FALLING | SPI_SAMPLE_TRAILING | SPI_MODE_MASTER);
SPI_Init(SPI_SPEED_FCPU_DIV_2 | SPI_ORDER_MSB_FIRST | SPI_SCK_LEAD_FALLING | SPI_SAMPLE_TRAILING | SPI_MODE_MASTER);
Dataflash_Init();
USB_Init();