411 Commits (31f26f57d99a8194a9371593da0b6575e63c35b1)
 

Author SHA1 Message Date
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 681b3b0d7a
added param to panic function (#83) 2 years ago
Matt Knight fa46be8ea2
Revert "Revert "Add executable method (addOptions, addObjectFile) and fix recursive call in addIncludePath (#79)" (#81)" (#82)
This reverts commit 4cc682cece.
2 years ago
David Sugar e280cca9b6
ATSAME51J20A chip (#78)
* Added some function wrappers to EmbeddedExecutable that expose commonly used functionalities of LibExeObjStep

* atsame51j20a chip added. GPIO support. UART support over SERCOM5.

* added support for true random numbers to atsame51j20a chip
2 years ago
Matt Knight 4cc682cece
Revert "Add executable method (addOptions, addObjectFile) and fix recursive call in addIncludePath (#79)" (#81)
This reverts commit bebf6cf92d.
2 years ago
Nicolas Goy bebf6cf92d
Add executable method (addOptions, addObjectFile) and fix recursive call in addIncludePath (#79) 2 years ago
Matt Knight d4a74cb4f3
move examples in here (#12) 2 years ago
Matt Knight 4159581b48
remove pointless discard (#80) 2 years ago
David Sugar 3617b8b25f
Added some function wrappers to EmbeddedExecutable that expose commonly used functionalities of LibExeObjStep (#77) 2 years ago
Matt Knight 9fa748ff13
Pin config (#9)
* pin config

* wip

* wip

* try some experimental pwm stuff
2 years ago
Vesim 20deb2cc3e
Allow to specify VectorTable in app and hal. (#76) 2 years ago
Matt Knight 68314b8f7e
use stage1 until stage3 is ready (#75) 2 years ago
Nicolas Goy e1244177fa
Add comment about microzig.config (#74)
* Add comment about microzig.config

When writing a HAL, having the chip name is very important to switch features and select pinout. Mention the config in the README in a concise manner.

Co-authored-by: Felix Queißner <felix@ib-queissner.de>
2 years ago
Nicolas Goy b8d92b2539
Make the microzig package public to allow it to be passed as dependency. (#73) 2 years ago
Matt Knight a6f5324769 add list of boards in renode 2 years ago
Matt Knight 2ae5eb6d02 init with empty test 2 years ago
Matt Knight 1dd837ae43
Initial commit 2 years ago
Matt Knight a2dd362ce7
Asciidoc (#71)
use asciidoc for the automatic toc
2 years ago
Matt Knight 0936dfb05c
improve build api (#70) 2 years ago
Matheus C. França d57f19c886
Gd32v Support (#21)
* Logan nano - board added

* Changes:
- replace baseline_rv32 to sifive_e21(imac)
- update registers.zig
- parsepin added (WIP)
- more riscv_encoding added

* refactoring

* fix build

* Missing interrupts

* minimal interrupt

* remove vectorTable

* skip interrupt test - riscv32

* remove supports_uart_test flag

* remove `supports_interrupt_test`
2 years ago
Matt Knight 0cde03507b
update github actions to reflect default branch name fix (#69) 2 years ago
Matt Knight aab147d431
only manage in-repo once it gets complicated (#68) 2 years ago
Matt Knight 231508bf23
move linux builds to buildkite (#67) 2 years ago
Marnix Klooster e5b8d57c72
Stm32f303 target speed trivial check (#66)
* Check new I2C target_speed config setting

* Corrected incorrect doc comment
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
Ethan Frei e60d59ce49
changing linker memory locations for stm32f103c8 (#65) 2 years ago
Matt Knight f75a019aa5
try lf endings to fix windows compile error (#7) 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 6bc3fc094b
add hal or app level clock configuration (#62)
* add hal or app level clock configuration

* fix control flow and typo

* use hal.init(), thanks kuon for the improvement
2 years ago
Matt Knight e6d6ca7092
generate registers with known cpu (#63) 2 years ago
Matt Knight 9f3aa1e375
Merge pull request #4 from mattnite/gpio-fix
clean up gpios
2 years ago
Matt Knight ed05258e7e clean up gpios 2 years ago
Matt Knight 179047ab65
fix colliding ISRs by making sure they each get memoized (#60)
* fix colliding ISRs by making sure they each get memoized

* add change from regz codegen
2 years ago
Matt Knight c71e73759c
Merge pull request #3 from mattnite/busy-sleep
add busy sleep functions
2 years ago
Matt Knight 303c9f183f add busy sleep functions 2 years ago
Riccardo Binetti a400e36058
I2C improvements (#58)
* i2c: pass a config to init

For now, allow setting the i2c target speed

* i2c: allow selecting the scl/sda pins

Similar to the previous commit for uart, this allows specifying the pins for
microcontrollers that support multiple pins for a single i2c peripheral

* stm32f407: add support for i2c

Supports using all I2C peripherals with all their pins in standard mode (fast
mode support will be added in the future).
2 years ago
Vesim cbc9b56769
Merge pull request #2 from ZigEmbeddedGroup/multicore
multicore: use camelCase for function names
2 years ago
Maciej 'vesim' Kuliński 0659bcd8c6 multicore: use camelCase for function names 2 years ago
Riccardo Binetti 7cf623aaf2
stm32f407: use the correct bus frequency to calculate usartdiv (#57)
USARTs 1 and 6 are clocked by APB2
2 years ago
Matt Knight 5c6ef47aa2
Merge pull request #1 from ZigEmbeddedGroup/multicore
multicore support
2 years ago
Maciej 'vesim' Kuliński e541f966d4 multicore: add initial support 2 years ago
Riccardo Binetti e202698a00
pin: remove erroneous access to slice length (#56)
The slice itself has to be used instead
2 years ago
Riccardo Binetti 5cf1a4612d
uart: allow selecting the tx/rx pins (#54)
Some microcontrollers allow routing multiple pins to the same UART peripheral.
This commit allows selecting specific pins on these platforms.
2 years ago