-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
portmoderegister problems #2369
Comments
Not sure how this is supposed to toggle the correct bits when Maybe someone with better understanding of the registers can look at this. demo sketch in above linked issue above pin 3 shows the issue. |
@tablatronix I'm not sure what can be done here, if the register bits don't align. What is your expectation? |
Sorry, what do you mean by "GPE and pinmask do not align?" What is "pinmask"? |
I think I meant GPC(p) or bitmask ( I had some tests for this, but who knows where i put them ) EIther way I had problems with the avr compat mapping, and using the above code and simple Was found using code similar to the linked issue above some notes peri
_pinmode
( again i have no idea how registers work) |
The problem is that the macro used is defined on AVR to map to a specific HW register with specific bit configs. The 8266 GPIO hardware is not compatible in any way, shape, or form with the AVR, so you will need to use the appropriate high-level |
@earlephilhower Many thanks.. I will keep trying alternate bug finding techniques, but directly looking at the actual registers would simplify the process!. |
Sure, @dagnall53. Look at core/esp8266/core_esp8266_wiring.c. It's much more complicated than a simple bitmask like in AVR due to IO muxes/etc. |
I think you mean 'core_esp8266_wiring_digital.c',but yes, WOW. that is truly convoluted!. |
This is a dup but the other title is not relevant to actual issue
#1914
I have a problem setting gpio mode using
portModeRegister
The text was updated successfully, but these errors were encountered: