mirror of
https://github.com/RfidResearchGroup/ChameleonMini.git
synced 2026-05-12 11:20:37 -07:00
Fixed a bug where the wrong SPI mode for the external dataflash has been used in Memory.c/.h
This commit is contained in:
Binary file not shown.
@@ -1,3 +1,3 @@
|
||||
:100000000010210600060006000600060006000695
|
||||
:1000000000002106000600060006000600060006A5
|
||||
:03001000000600E7
|
||||
:00000001FF
|
||||
|
||||
Binary file not shown.
+1199
-1261
File diff suppressed because it is too large
Load Diff
+10215
-11178
File diff suppressed because it is too large
Load Diff
+1467
-1352
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -217,11 +217,15 @@ void MemoryInit(void)
|
||||
{
|
||||
/* Configure MEMORY_FLASH_USART for SPI master mode 0 with maximum clock frequency */
|
||||
MEMORY_FLASH_PORT.OUTSET = MEMORY_FLASH_CS;
|
||||
|
||||
MEMORY_FLASH_PORT.OUTCLR = MEMORY_FLASH_SCK;
|
||||
MEMORY_FLASH_PORT.OUTSET = MEMORY_FLASH_MOSI;
|
||||
|
||||
MEMORY_FLASH_PORT.DIRSET = MEMORY_FLASH_SCK | MEMORY_FLASH_MOSI | MEMORY_FLASH_CS;
|
||||
|
||||
MEMORY_FLASH_USART.BAUDCTRLA = 0;
|
||||
MEMORY_FLASH_USART.BAUDCTRLB = 0;
|
||||
MEMORY_FLASH_USART.CTRLC = USART_CMODE_MSPI_gc | USART_CHSIZE_8BIT_gc;
|
||||
MEMORY_FLASH_USART.CTRLC = USART_CMODE_MSPI_gc;
|
||||
MEMORY_FLASH_USART.CTRLB = USART_RXEN_bm | USART_TXEN_bm;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user