aboutsummaryrefslogtreecommitdiff
path: root/embassy-rp/src/clocks.rs
Commit message (Collapse)AuthorAgeFilesLines
* embassy-rp: doc comment spelling passRob Wells2025-10-271-1/+1
| | | | | All changes but one are to documentation comments, and one to an ordinary comment.
* Rustfmt for edition 2024.Dario Nieuwenhuis2025-10-061-2/+2
|
* removed the rp2040 flag from the dormant functionPhirks2025-08-031-3/+1
|
* Add rand-core v0.9 support.Dario Nieuwenhuis2025-05-181-7/+42
| | | | Co-Authored-By: Aurélien Jacobs <[email protected]>
* removed one line too many1-rafael-12025-05-131-0/+1
|
* Changes after review: copypasted doc comment fixed and no cfg gates to panic ↵1-rafael-12025-05-131-14/+3
| | | | on failing pll config in init()
* Refactor CoreVoltage enum, separate for rp2040 and rp235x1-rafael-12025-05-121-56/+42
|
* Add ClockError enum and update system_freq to return Result for error handling1-rafael-12025-05-121-19/+47
|
* limit CoreVoltage eum to values up to 1.30V, because we do not support ↵1-rafael-12025-05-121-120/+21
| | | | unlocking higher voltages
* rp235x overclocking1-rafael-12025-05-111-32/+297
|
* Clarify comment for CoreVoltage enum regarding V1_201-rafael-12025-05-071-1/+1
|
* Changes after review1-rafael-12025-05-071-16/+35
|
* rework init()1-rafael-12025-05-051-153/+103
|
* first batch of changes after review1-rafael-12025-05-021-209/+115
|
* - two more doc examples test ignored1-rafael-12025-05-011-8/+214
| | | | | - added tests for the new calculations and fixed an overflow issue these tests surfaced. - Activate brownout detection.
* add manual overclock example, finalize API, cleanup1-rafael-12025-05-011-128/+140
|
* refactoring to have higher and lower level api1-rafael-12025-04-291-207/+339
|
* first working draft1-rafael-12025-04-281-169/+489
|
* Add core voltage scaling options and PLL parameter finder for RP20401-rafael-12025-04-261-14/+228
|
* Remove Peripheral trait, rename PeripheralRef->Peri.Dario Nieuwenhuis2025-03-271-17/+8
|
* make rustfmt happyJuliDi2025-03-191-2/+0
|
* fix wrong funcsel on rp2350 gpout/gpinJuliDi2025-03-191-0/+14
|
* fix: enable RP2350 watchdog tick generatorAdrian Wowk2025-01-151-1/+6
|
* rp: Run RP235x at 150 MHz instead of 125Sebastian Quilitz2024-10-051-0/+3
|
* Disable pad isolation on clock in/out pinsCaleb Jamison2024-09-161-1/+11
|
* Set up timer0 tick when initializing clocksUgljesa Jovanovic2024-08-241-1/+7
|
* Fix docs, ciCaleb Jamison2024-08-121-1/+1
|
* Fix CI, rename private feature, address comments from dirbaio.Caleb Jamison2024-08-121-10/+11
|
* Initial rp235x supportCaleb Jamison2024-08-081-13/+71
| | | | Examples have been run, but there is not yet a test suite.
* Fix: typoQWS2024-05-141-1/+1
|
* In the start_xosc function, the frequency range is set twice. Remove the ↵QWS2024-05-131-4/+0
| | | | redundant one.
* rp: remove mod sealed.Dario Nieuwenhuis2024-04-051-6/+5
|
* fix: CIRafael Bachmann2024-03-251-0/+2
|
* fix minor clippy lints in embassy_rpRafael Bachmann2024-03-181-3/+1
|
* docs: document all embassy-rp public apisUlf Lilleengen2023-12-191-6/+91
| | | | Enable missing doc warnings.
* docs: embassy-rp rustdoc and refactoringUlf Lilleengen2023-12-191-0/+26
|
* RP2040: Fixes as per PRMichael van Niekerk2023-08-301-1/+1
|
* RP2040: Fixes as per PRMichael van Niekerk2023-08-301-1/+1
|
* RP2040: Fixes as per PRMichael van Niekerk2023-08-301-2/+2
|
* RP2040: XOSC delay multiplierMichael van Niekerk2023-08-301-1/+1
|
* RP2040: XOSC delay multiplierMichael van Niekerk2023-08-301-3/+5
|
* rp: add generic dormant-sleep functionalitypennae2023-08-051-0/+130
| | | | | | | | | | | | | | | | this is "generic" in that it doesn't require the user to set up anything specific to go to dormant sleep, unlike the C sdk which requires clock sources to be configured explicitly and doesn't much care about PLLs. we will instead take a snapshot of the current clock configuration, switch to a known clock source (very slow rosc, in this case), go to sleep, and on wakeup undo everything we've done (ensuring stability of PLLs and such). tested locally, but adding tests to HIL seems infeasible. we'd need at least another pico or extensive modifications to teleprobe since dormant-sleep breaks SWD (except to rescue-dp), neither of which is feasible at this point. if we *did* want to add tests we should check for both rtc wakeups (with an external rtc clock source) and gpio wakeups.
* rp: rename gpio::Pin::io to gpio::Pin::gpiopennae2023-07-311-4/+4
| | | | | | we'll need access to the pin io bank registers for an upcoming fix, and having both `io` and `io_bank` or similar can get confusing quickly. rename `io` to `gpio` to avoid this, and also match the type while there.
* Rename embassy-hal-common to embassy-hal-internal, document it's for ↵Dario Nieuwenhuis2023-07-281-1/+1
| | | | internal use only. (#1700)
* RP: Don't reset RTC in Clock::init. Updated example.Henrik Berg2023-07-121-0/+2
|
* Update rp-pac.Dario Nieuwenhuis2023-06-291-46/+46
|
* rp: update rp-pac.Dario Nieuwenhuis2023-06-161-49/+33
|
* rp/clocks: comment out all gpin handling for nowpennae2023-05-171-66/+71
| | | | | | gpin clock sources aren't going to be very useful during cold boot and thus require runtime clock reconfig. once we get there we can use this for reference. or maybe we can't, only time will tell.
* rp/clocks: remove superfluous clock actionspennae2023-05-171-8/+0
| | | | | the rtc doesn't have to be disabled since it's always clocked from ref, and the watchdog doesn't need to be configured twice.
* rp/clocks: require GpinPin for gpin configpennae2023-05-171-18/+43
| | | | | | | | | | | we'll take static ownership of an entire pin (not just a limited reference), otherwise we cannot at all guarantee that the pin will not be reused for something else while still in use. in theory we could limit the liftime of this use, but that would require attaching lifetimes to ClockConfig (and subsequently the main config), passing those through init(), and returning an object that undoes the gpin configuration on drop. that's a lot unnecessary support code while we don't have runtime clock reconfig.