Jonathan 'theJPster' Pallant
b94a5ab885
Merge pull request #232 from jannic/refactor-uart-init
...
Refactor uart init
2021-12-05 18:02:44 +00:00
Jan Niehusmann
b380b3ddf6
Reset UART in new()
2021-12-05 07:05:12 +00:00
9names
dc8ceffd09
Move uses of sio::Sio to Sio
2021-12-04 16:20:27 +11:00
Jan Niehusmann
26fa532fa3
Refactor Uart initialization
2021-12-03 21:24:50 +00:00
Jan Niehusmann
3ab84702b7
Update comments
2021-11-21 13:16:03 +00:00
Jan Niehusmann
9a018ac359
Update uart implementation of embedded-hal 1.x to 1.0.0-alpha.6
2021-11-19 22:46:55 +00:00
Benno
6d917f498e
Change UART raw read return type and fix full read ( #189 )
...
* UART read_raw returns bytes read
This also fixed broken read_full_blocking code.
* chang documentation to reflect return value change
2021-11-01 10:24:24 +11:00
Jan Niehusmann
b1dc9aec8c
Fix UART init code
...
Set uartlcr_h before enabling the UART.
Writing uartlcr_h while the UART is enabled is forbidden by the datasheet.
Details can be found here:
https://developer.arm.com/documentation/ddi0183/g/programmers-model/register-descriptions/line-control-register--uartlcr-h?lang=en
(As referenced from the Datasheet)
2021-10-30 10:19:13 +11:00
Jan Niehusmann
73431a847b
fix UART rx ( #187 )
2021-10-30 10:16:43 +11:00
Jan Niehusmann
2b6de3a3c9
implement embedded-hal 1.0.0-alpha.5 ( #131 )
...
* implement embedded-hal 1.0.0-alpha.5
* Depend on specific alpha version of embedded-hal.
* enable feature eh1_0_alpha for CI check
2021-10-02 15:36:40 +10:00
Hmvp
d3cb29b113
Fix doc examples and add checking ( #76 )
...
* Fix doc examples for peripheral drivers
* Add no_run to doc examples so they can be built by CI
* Enable building doc examples in CI check workflow
2021-08-11 10:53:42 +10:00
9names
369ac5a23f
Add UART example + core::fmt support to UART ( #73 )
...
* Add standalone UART example
* Add UART example to docs in UART module
* Add core::fmt::write_str to UART module to allow easy use of format! macro in user code
2021-08-08 15:36:56 +10:00
Hmvp
bcfbd72ed1
Update embedded time
2021-07-27 09:41:03 +10:00
Andrea Nall
8d0fde20c6
Add SubsystemReset
trait to handle subsystem resets
...
dd a `SubsystemReset` trait which adds a `reset_bring_up` function to the
relevant PAC types to handle bringing subsystems out of reset.
Also, correct that the PLL and UART modules did not bring the relevant
subsystems out of reset and refactor the GPIO module to use the
SubsystemReset trait.
2021-05-16 13:12:26 -05:00
Nic0w
9b082b012d
Clippy, second pass for errors in CI.
2021-05-09 09:53:22 +02:00
Nic0w
020c9d9a3d
cargo clippy & fmt
2021-05-05 08:06:47 +02:00
Nic0w
c35358f475
Change comment on baudrate calculation
2021-05-05 08:02:53 +02:00
Nic0w
8586f98c02
Better comments and renamed variable names for more clarity.
2021-05-04 22:16:04 +02:00
Nic0w
be78a5c792
Consistency re. clear_bit/set_bit.
2021-05-04 19:56:36 +02:00
Nic0w
ac2af7582e
Pulling the integer out of the frequency first.
2021-05-04 19:54:15 +02:00
Nic0w
d9b1b2b1ec
Fix comments on {read,write}_raw() functions
2021-05-04 19:48:40 +02:00
Nic0w
8d29464ee3
Propagate read errors.
2021-05-02 09:04:05 +02:00
Nic0w
992bcdf47b
Cargo fmt
2021-05-02 08:42:51 +02:00
Nic0w
abf91a3687
Move serial traits impl. back to uart.rs
2021-05-02 08:41:20 +02:00
Nic0w
835ad7a5c1
Read errors.
2021-05-02 08:27:29 +02:00
Nic0w
f3fba80a71
Implement embedded_hal::serial traits for the UART.
2021-04-26 22:05:37 +02:00
Nic0w
50a428e2ad
Error needs to derive Debug if we want to unwrap.
2021-04-26 21:25:52 +02:00
Nic0w
920d0dc897
Merge branch 'uart' of github.com:Nic0w/rp-hal into uart
2021-04-26 09:20:22 +02:00
Nic0w
4d949f7310
Multiple changes addressing @tdittr 's comments.
2021-04-26 09:14:32 +02:00
Nic0w
aa3fe8fd20
Disable the UART for real when disabling UART.
2021-04-25 20:25:29 +02:00
Nic0w
c50a5b6001
Cosmetics.
2021-04-25 20:24:56 +02:00
Nic0w
f9254fdffa
Increment byte_written after write has happened.
...
Co-authored-by: tdittr <tdittr@users.noreply.github.com>
2021-04-25 20:00:56 +02:00
Nic0w
b9080d0a92
Working implementation of an UART HAL.
2021-04-25 10:51:46 +02:00
evan
98baabec93
Added skeleton for HAL and updated readme
2021-01-25 15:42:43 -05:00