Feature/add esp32s2
Changes
Added support for ESP32S2
There can be little doubt that supporting ESP32S2 is exciting, which allows all of us to DIY at a lower cost. Although the porting work has not been completed yet, you can get the same fantastic experience as STM32 in some functions. I try my best to reduce the modification of openffb code and keep the original code of STM32.
The porting status of functions are as follows:
Main classes
- [x] FFBWHEEL
- ~~MIDI~~ (Not support in this PR)
- ~~TMCDEBUG~~ (Not support in this PR, I don't have TMC driver board)
- ~~CANBRIDGE~~ (Not support in this PR, I don't know what this function does or how to test it)
Extra features
- [x] LOCALBUTTONS (not tested)
- ~~SPIBUTTONS~~ (Not support in this PR, I don't know how to test)
- ~~SHIFTERBUTTONS~~ (Not support in this PR, I don't know how to test)
- [x] ANALOGAXES
- [x] LOCALENCODER
- [x] TMC4671DRIVER(not tested, I don't have TMC driver board)
- [x] PWMDRIVER
- [x] VESC
- [x] CANBUS
- ~~MTENCODERSPI~~
- ~~CANBUTTONS~~
- ~~CANANALOG~~
- ~~ADS111XANALOG~~
- ~~UARTCOMMANDS~~
https://github.com/TDA-2030/OpenFFBoard/tree/feature/add_esp32s2/Firmware/Targets/ESP32SX#readme is a brief instruction.
@Ultrawipf PTAL Do you think it's better to merge or separate into another branch?
I would like to get some hardware to test this myself before merging into the main project so i can make sure support is kept. Really interesting to see this being ported on other chips. Could you supply me with a board or is there a devkit i could buy somewhere with all required ports? Otherwise i will make one from your files. You can contact me via the mail address on my profile or the linked discord.
Sorry for my late reply! I am in China and under the COVID-19 lockdown. It is more convenient for you to make a PCB yourself. Please see the v1.1 version hardware.
In addition, If you have an ESP32-S2-DevKitC-1 or ESP32-S2-Saola-1 development board, you can use it for most of your testing