This project consists of two main crates:
1.) ambiq-hal-sys is bindings to the Ambiq Suite SDK as modified by Sparkfun.
2.) ambiq-hal is a embedded-hal
based Hardware Abstraction Layer (HAL) for
the Ambiq Apollo.
Eventually the board support crates will make it easier to determine which pins (as labelled on the board) match the pads and peripherals on the Apollo MCU.
Take a look at the example in quickstart for how to get started. Remeber to select the correct board.
The board crates are not very useful yet.
- Sparkfun Redboard Artemis - boards/redboard | boards/redboard-halc
- Sparkfun Redboard Artemis Nano - boards/redboard-nano
The Sparkfun bootloader does not update the pointer to the interrupt vectors
(this should be done by the C runtime). We therefore set the correct address in
cortex_m_rt::pre_init
, this means that you can't use pre_init
for your code.