-
Notifications
You must be signed in to change notification settings - Fork 17
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
Esp32c3 #20
base: devel
Are you sure you want to change the base?
Esp32c3 #20
Conversation
fix issue with incorrect pin
@@ -1,6 +1,7 @@ | |||
### | |||
# ESP32 specific io_mux_reg.h port | |||
## | |||
arsoienieonrstg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo?
@@ -0,0 +1,551 @@ | |||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this file?
|
||
const hdr = "soc/io_mux_reg.h" | ||
|
||
var SLP_OE* {.importcpp: "SLP_OE", header: hdr.}: int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe there's a new option which is to use let
. Also, these should use importc
?
var SLP_OE* {.importcpp: "SLP_OE", header: hdr.}: int | |
let SLP_OE* {.importc: "SLP_OE", header: hdr.}: int |
when defined(esp32s3): | ||
include ./esp32s3/io_mux_reg | ||
elif defined(esp32c3): | ||
include ./esp32c3/io_mux_reg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, this pattern appears to be working well.
@faldor20 heya I reviewed this last year but forgot to submit the review. This still looks alright to me, pending my comments. |
Hey, I'm probably never going to get to this, I don't actually use nim for anything these days and it's been well over a year since I last even had it installed. You're welcome to take it over and merge it though :) |
That's too bad, but thanks for the heads up! |
Added support for esp32c3 board