Commit graph

36 commits

Author SHA1 Message Date
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
Jonathan 'theJPster' Pallant b96339c417
Merge pull request #20 from jannic/fix-rom-functions
Fix rom_table_lookup
2021-02-21 16:18:51 +00:00
Jan Niehusmann 5494ce7539 rom function git_revision() does return an u32, not a &str 2021-02-15 23:28:13 +00:00
Jan Niehusmann d6231bd3ec fix rom_table_lookup
It seems like the rom_table_lookup missed one level of
pointer dereferencing.

After comparing it to the working call to reset_usb_boot() in
https://github.com/jannic/rp-microcontroller-rs/blob/master/util/rp2040-panic-usb-boot/src/lib.rs,
I changed the code until it generated basically the same assembly.

With that change, I was able to successfully call rom_data::reset_to_usb_boot()

I still don't like the type RomTableLookupFn, which just returns
some generic T without any checks, and I think rom_table_lookup
should be unsafe. But as none of those are pub, it doesn't matter too
much. So I just made the changes necessary to make the code work.
2021-02-15 22:16:43 +00:00
Evan Older be7dd11057
Merge pull request #16 from rp-rs/rom-functions
rom: Make rom_funcs functions call function instead of returning it
2021-02-03 16:56:29 -05:00
Asaf Fisher 913c5fb0b2 rom: Fix type error 2021-02-03 21:49:48 +02:00
Asaf Fisher 1848789ca3 rom: Make rom_funcs functions call function instead of returning it 2021-02-03 21:43:14 +02:00
Evan Older 2972cfebcb
Merge pull request #15 from rp-rs/pi-workspace
build: Add workspaces to project
2021-02-03 14:04:57 -05:00
Asaf Fisher e44d561ef2 build: Add workspaces to project 2021-02-03 21:00:45 +02:00
Evan Older 1744151025
Merge pull request #11 from devsnek/rom-stuff
Add rom stuff
2021-02-03 10:42:39 -05:00
Asaf Fisher a9a8df8c79 rom: Add comments to rom content 2021-02-03 15:57:44 +02:00
Asaf Fisher 6eccce595c rom: Change rom_table_lookup to use the rom's built in one 2021-02-03 15:57:44 +02:00
Gus Caplan 1c75ed3844 rom: Add rom content 2021-02-03 03:10:00 +02:00
Evan Older 5159d04097
Merge pull request #3 from johnbatty/main
Add .cargo/config defining the build target
2021-01-28 16:44:21 -05:00
Evan Older 8ef2d6fbab
Rename CONTRIBUTING.md to CODE_OF_CONDUCT.md 2021-01-28 16:31:47 -05:00
Evan Older 713e7491b7
Create CONTRIBUTING.md 2021-01-28 16:31:32 -05:00
John Batty 0d228286cb Add .cargo/config defining the build target 2021-01-28 21:17:10 +00:00
Evan Older 780917774e
Merge pull request #2 from rp-rs/eolder-skeleton
Added skeleton for HAL and updated readme
2021-01-25 15:46:55 -05:00
evan 98baabec93 Added skeleton for HAL and updated readme 2021-01-25 15:42:43 -05:00
evan 22a3669a9d Initial Commit: Updated author information. 2021-01-22 09:18:12 -05:00