LdB-ECM / Raspberry-Pi

My public Baremetal Raspberry Pi code
MIT License
309 stars 58 forks source link

suggestion to avoid errors in mailboxes #18

Closed eco747 closed 5 years ago

eco747 commented 5 years ago

in the _mailbox_tagmessage 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];

LdB-ECM commented 5 years ago

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.