libhal-google / libhal-armcortex

A collection of drivers and libraries for the Cortex M series ARM processors using libhal
Apache License 2.0
5 stars 3 forks source link

:ambulance: Remove usage of exception throwing APIs #135

Closed kammce closed 1 year ago

kammce commented 1 year ago

API std::span::at throws an exception if the field is beyond the array's length. Using this API causes exception handling symbols to be brought into the binary. The exception machinery requires dynamic memory allocations which is a violation of the guarantees of libhal libraries.