Buford_T_Justice

joined 2 years ago

The way I have done it in the past. Rearrange all struct members from the largest to smallest data size. Do a sizeof the struct to make sure it is what you expect. You can look at the memory map too if your compiler provides it. Point an unsigned char (uint8_t) pointer to the first member of the struct or the variable name of the struct casted as a uint8_t. Then move the data into whatever the EEPROM or flash pages the data needs using the sizeof the struct and the size of the page for the non volatile storage. Sometimes I make a temporary array of the structs if I'm going to do several on a page. Then either copy directly into my ram overlay or just return the data if it is like a lookup or whatever.

[–] Buford_T_Justice@reddthat.com 9 points 1 month ago (2 children)

We REALLY need to stop letting football coaches teach history in public education.

[–] Buford_T_Justice@reddthat.com 4 points 4 months ago

I'll have to remember that for next time I'm in Canton.

[–] Buford_T_Justice@reddthat.com 18 points 4 months ago (14 children)

Because all the people taking it for COVID (and probably trying to cure cancer) were not getting it from the doctor. They were getting it from Farm supply stores . Everyone was calling it horse dewormer because that's what it was. They were not going to get a prescription. I know because I live amongst these dummies that were asking on Facebook which one to get from the farm supply, what flavor was best, etc.

[–] Buford_T_Justice@reddthat.com 8 points 5 months ago

Fuck the TSA it's a jobs program. They are so goddamn worthless.

[–] Buford_T_Justice@reddthat.com 5 points 7 months ago

Google will soon owe Russia a googol

[–] Buford_T_Justice@reddthat.com 7 points 8 months ago

William Daniels. Holy shit he's still alive 97 years old. He's been married to the same person for 73 years wtf!

[–] Buford_T_Justice@reddthat.com 2 points 8 months ago

The range was hot at the time so firing should have been expected?

[–] Buford_T_Justice@reddthat.com 1 points 8 months ago

I wasn't sure how to pronounce xi. I have been calling it sheeeter like Ren from Ren and stimpy.

[–] Buford_T_Justice@reddthat.com 6 points 9 months ago

I call those the safety farts.

[–] Buford_T_Justice@reddthat.com 34 points 11 months ago (1 children)

This guy legumes

view more: next ›