-
Notifications
You must be signed in to change notification settings - Fork 88
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
add missing XCK definitions for USART SPI #43
Conversation
You are really taking every bit ot this board apart! 🎉 |
At the moment, it got a rather "large" play code -> https://github.com/jayzakk/lgt8f-tests/blob/master/spitest-lgt8f/spitest-lgt8f.ino But I can build up some test code for whatever "real" SPI device I have around here, |
There already is a sample sketch around: SPI_UART, which can be used used with simple defines at the nRF24L01 library. It's "only" missing correct clock selection (it always assumes 16MHz sysclock) and a possibility to switch pins D0/D1 to alternate D5/D6 (only possible at LGT8F). As of now, could not even used as a replacement for SPI.h, as it's missing all the "new" functions (begin/endTransactions, SPISettings(), ...) and only the long-time-obsoleted ones. Maybe time to write an replacement for that and include some own SPI_UART as SPI.h companion by default? It just happened that I ordered a couple of those nrf24 modules two days ago ^^ |
@dbuezas, could we merge the two relevant files from https://github.com/jayzakk/spi-uart-test to core? |
0dd93f9
to
26248ad
Compare
So this should be merged before? |
If you merge, would be perfect, though it shows conflicts now |
Can you fix them so I can merge this 🙏 :) |
hey @jayzakk ! |
Huh, I never used that web resolve thing. Guess it's ok now :-/ |
Wasn't fully success that web resolve thing. I deleted that macros which was defined twice. #122 (comment) |
Thanks @LaZsolt |
We are missing definitions for USART-as-SPI, which I was playing around with.
These are usually coming from avr-gcc mcu header files, but - as we know - in using the 328p files we are missing some functions and definitions ^^
I used the ones from iom324pa.h (as the most "identical" mcu) and changed accordingly.