-
-
Notifications
You must be signed in to change notification settings - Fork 39.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spi_master
Kinetis support
#13098
spi_master
Kinetis support
#13098
Conversation
And config.h: #define ST7565_A0_PIN C7
#define ST7565_RST_PIN C8
#define ST7565_SS_PIN C4
#define ST7565_SPI_CLK_DIVISOR 32
#define SPI_DRIVER SPID1
#define SPI_SCK_PIN C5
#define SPI_MISO_PIN D3
#define SPI_MOSI_PIN C6
#define SPI_SCK_PAL_MODE PAL_MODE_ALTERNATIVE_2
#define SPI_MISO_PAL_MODE PAL_MODE_ALTERNATIVE_2
#define SPI_MOSI_PAL_MODE PAL_MODE_ALTERNATIVE_2 Note that the MISO config is currently required, but shouldn't be, as some SPI devices (like the ST7565) only have a MOSI line. So I have set it to D3, which can also be SPI0 MISO, but on the Ergodox Infinity this is used as one of the UART lines. |
Yeah... I noticed. :P As far as I could see, the pin config is only used for setting the pin direction etc, not for setting up SPI, but I may be mistaken? |
So this seems to work 👍 Edit: Code here. |
Description
@firetech
Hopefully this works, or is at least close. Haven't tried compiling it yet.
Prerequisite for #13089 to be applied to the Ergodox Infinity.
Types of Changes
Issues Fixed or Closed by This PR
Checklist