32blit-sdk icon indicating copy to clipboard operation
32blit-sdk copied to clipboard

API refactor

Open Daft-Freak opened this issue 1 year ago • 2 comments

Split the API struct into a "const" and "data" part. This is a result of me not wanting to reserve 2K of RAM on pico. After this, all the function pointers can be constants (may improve #484) and the data part only needs 64 bytes.

For compatibility, 32blit-stm32 is still using the old layout by inserting padding and overlaying the two structs on top of each other.

These are (I think) the only remaining non-pico changes on my big pico branch.

Daft-Freak avatar Jul 01 '24 13:07 Daft-Freak

In hindsight this makes an awful lot of sense.

Gadgetoid avatar Sep 26 '24 12:09 Gadgetoid

Fixed warnings from these patches being older than can_launch and needed to rebase for recent build fixes.

I'll have to add the STM32 nastiness to the list of things that can be cleaned up if there's an API break... (Also, I should actually write that list)

Daft-Freak avatar Sep 27 '24 19:09 Daft-Freak