-
Notifications
You must be signed in to change notification settings - Fork 10
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
Use XtalClock as UART source and adapt interrupt binding #57
Conversation
@@ -42,5 +43,5 @@ unsafe fn USB_DEVICE() { | |||
|
|||
reg_block | |||
.int_clr() | |||
.write(|w| w.serial_out_recv_pkt_int_clr().set_bit()); | |||
.write(|w| w.serial_out_recv_pkt().clear_bit_by_one()); |
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.
@@ -41,5 +46,5 @@ fn UART0() { | |||
unsafe { RX_QUEUE.push_back(data).unwrap() }; | |||
} | |||
|
|||
uart.int_clr().write(|w| w.rxfifo_full_int_clr().set_bit()); | |||
uart.int_clr().write(|w| w.rxfifo_full().clear_bit_by_one()); |
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.
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.
Mostly LGTM, just one typo in the interrupt handler
25901b9
to
70376a3
Compare
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.
LGTM, thank you!
XtalClock
as UART source when possibleTesting
I've tried flashing a few targets (C6 and H2) with the generated stubs and they were working fine.
I've created https://github.com/SergioGasquez/espflash/tree/feat/test-stubs updating all the stubs
and once esp-rs/espflash#625 is merged, I'll run espflash HIL CI on that branch so we can test all the targets with new stubs.Here is the HIL run with the test stubs: https://github.com/esp-rs/espflash/actions/runs/8749962162