Merge pull request #1227 from tannewt/trellis_m4

Update Trellis M4 Express for Rev C
This commit is contained in:
Dan Halbert 2018-10-02 20:33:27 -04:00 committed by GitHub
commit 036a1490e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 2 deletions

View File

@ -3,7 +3,7 @@
#define CIRCUITPY_MCU_FAMILY samd51
// This is for Rev A
// This is for a purple prototype which is Rev C
#define MICROPY_HW_APA102_MOSI (&pin_PA01)
#define MICROPY_HW_APA102_SCK (&pin_PA00)
@ -28,7 +28,7 @@
#include "external_flash/devices.h"
#define EXTERNAL_FLASH_DEVICE_COUNT 1
#define EXTERNAL_FLASH_DEVICES GD25Q64C
#define EXTERNAL_FLASH_DEVICES W25Q128JV_SQ
#include "external_flash/external_flash.h"

View File

@ -266,5 +266,23 @@ typedef struct {
}
// Settings for the Winbond W25Q128JV-SQ 8MiB SPI flash. Note that JV-IM has a different .memory_type (0x70)
// Datasheet: https://www.winbond.com/resource-files/w25q128jv%20revf%2003272018%20plus.pdf
#define W25Q128JV_SQ {\
.total_size = (1 << 23), /* 16 MiB */ \
.start_up_time_us = 5000, \
.manufacturer_id = 0xef, \
.memory_type = 0x40, \
.capacity = 0x18, \
.max_clock_speed_mhz = 133, \
.has_sector_protection = false, \
.supports_fast_read = true, \
.supports_qspi = true, \
.has_quad_enable = true, \
.supports_qspi_writes = true, \
.write_status_register_split = false, \
}
#endif // MICROPY_INCLUDED_ATMEL_SAMD_EXTERNAL_FLASH_DEVICES_H