6 Commits (6f201f7f4c4d3223eb1e30658a97c6776c82926a)

Author SHA1 Message Date
David Sugar 1cef56ad9d
Enable XIP using stage 2 bootloader (#73)
* flash enable xip calls stage two bootloader using inline assembly

* flash erase/program now works in all modes (Debug, ReleaseSmall, ReleaseSafe, ReleaseFast)

* further docs added
1 year ago
Matt Knight 2b5c6096b0
builtin type inference fix (#68) 1 year ago
Felix Queißner 371d4efde4
Runs zig fmt, implements a good bunch of I²C functions (#65)
Co-authored-by: Felix "xq" Queißner <xq@random-projects.net>
1 year ago
Hubert Jasudowicz d1e35696d4
examples: Set LED GPIO function (#61)
Set the pin function to SIO instead of null (default).
1 year ago
Matt Knight c1c19d221e
Gpio api (#51)
* improve GPIO API

* fix test, update microzig

* first DMA functions, new abstraction for enumerating peripherals

* rebase main

* fix call to reset()
1 year ago
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