BigW Consortium Gitlab

Commit 2e350fd5 by David Frey

ws eink: set max SPI speed to 4MHz

Set the max SPI speed to 4MHz, remove the corresponding TODO entry and also a TODO relating to previously completed endian changes.
parent 9e7bd6ba
# Waveshare E-Ink Driver TODO
## Questions
What is the purpose of the `#ifdef __LITTLE_ENDIAN` sections in the driver? Add code comments to
clarify.
## Fixes Requested
* I think `eink_device->max_speed_hz` is still being initialized incorrectly. It should be
initialized with the max speed supported by the device, not the max speed supported by the SPI
master.
## Enhancements Requested
......
......@@ -4,7 +4,11 @@
#define SPI_BUS 32766
#define SPI_BUS_CS1 1
#define SPI_BUS_SPEED 12000000
/*
* The minimum clock cycle duration supported by the waveshare 2.13 Inch display
* is 250ns which translates to 4MHz bus speed
*/
#define SPI_BUS_SPEED 4000000
const char eink_device_name[] = "waveshare_213";
static struct spi_device *eink_device;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment