LdB-ECM / Raspberry-Pi

My public Baremetal Raspberry Pi code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

suggestion to avoid errors in mailboxes

eco747 opened this issue · comments

in the mailbox_tag_message function i suggest to use this message declaration instead of message[32]
this way if you pass more than 32 elements it will not crash...

uint32_t attribute((aligned(16))) message[data_count+3];

I like the idea and will do that but actually because it minimizes the stack use. The 32 entries was an improbably large size there isn't really that many tags you could clump together. However still a very good idea and will do.