28 Commits (666f444037ebe2920912234c60b359fc122c8f83)

Author SHA1 Message Date
David Sugar 20e4c9f8f6
Flash from user code (#35)
* support for a subset of the bootrom functions added: fast bit count/ manipulation functions (tested), fast bulk memory fill/ copy functions (tested), flash access functions (NOT tested), debugging support functions (not implemented), miscellaneous functions (not implemented).

* added support for erasing and programming flash from user code. between the first and last call in a programming sequence, the SSI is not in a state where it can handle XIP accesses, so the code that calls the intervening functions must be located in SRAM. this is why I added the time_critical section to rp2040.ld (maybe one should create a dedicated section in ram that is rwx and keep data rwNx).

* flash_program.zig example added
1 year ago
Vlad Panazan a4de9d2f3e
add SPI hal (#33) 2 years ago
Matt Knight 58d73abc08
Update microzig (#24)
* update microzig

* update paths and for loops

---------

Co-authored-by: mattnite <mattnite@users.noreply.github.com>
2 years ago
Matt Knight 7d81ecf654
Regz rewrite (#20)
* update to new regz output

* snake case

* update with changes to microzig

* remove symlink

* add microzig submodule
2 years ago
Matt Knight 0713809eaf
catch up to master (#17) 2 years ago
Matt Knight 144d557357 remove hal.uart.panic 2 years ago
Matt Knight e9af302b69
uart improvements and improved definition of how many clock units there are (#16) 2 years ago
Felix "xq" Queißner b0b90a7cf0 Implements UART.reader() 2 years ago
Felix "xq" Queißner 7b69211d41 Implements gpio.setPullUpDown 2 years ago
Felix "xq" Queißner 86d383e673 Implements ADC and PWM support in pin config, simplifies Pins() type. 2 years ago
Felix "xq" Queißner 5c07800cdb Removes debug code. 2 years ago
Felix "xq" Queißner c899778c87 Clock setup fixes. 2 years ago
Felix "xq" Queißner a55df1b52c Some debug logs in adc.reset() and resets.reset(), fixes some bugs with booleans. 2 years ago
Felix "xq" Queißner fe14d4f03b Implements input, pull up/down and uart routing. 2 years ago
Matt Knight 5c853fd23a
use compile errors instead of comments (#15) 2 years ago
Matt Knight 7c8d430237
adc bindings, mostly there but not quite (#14) 2 years ago
Felix Queißner 29aee14fd2
Update to latest master. (#13)
Co-authored-by: Felix "xq" Queißner <xq@random-projects.net>
2 years ago
Matt Knight d4a74cb4f3
move examples in here (#12) 2 years ago
Matt Knight 9fa748ff13
Pin config (#9)
* pin config

* wip

* wip

* try some experimental pwm stuff
2 years ago
Matt Knight f0e51f8302
Uart (#8)
* refined clock configuration, uart works with clk_peri at xosc frequency

* fix pll_sys configuration
2 years ago
Matt Knight 2d89410305
add directive to inline asm (#6) 2 years ago
Matt Knight 8751f6753d
Clock config (#5)
* use array access for better codegen

* frequency counter

* wip

* wip

* refactor clock config and plls to reduce binary size
2 years ago
Matt Knight ed05258e7e clean up gpios 2 years ago
Matt Knight 303c9f183f add busy sleep functions 2 years ago
Maciej 'vesim' Kuliński 0659bcd8c6 multicore: use camelCase for function names 2 years ago
Maciej 'vesim' Kuliński e541f966d4 multicore: add initial support 2 years ago
Matt Knight 7d68b0bcba pads bank bits set when setting gpio function 2 years ago
Matt Knight a501e63286 init 2 years ago