avr_builtins(3avr)

πŸ“¦
version 2.2.1 Β· 2 versions
, in ubuntu resolute, ubuntu stonking

✨ NAME ✨

avr_builtins β€” <avr/builtins.h>: the avr-gcc builtins documentation, bestie πŸ’–

So like, this is the whole lowdown on those magic little compiler builtins that talk straight to your AVR chip. No cap.


🌸 SYNOPSIS 🌸

πŸŽ€ Functions πŸŽ€

void __builtin_avr_sei (void)
void __builtin_avr_cli (void)
void __builtin_avr_sleep (void)
void __builtin_avr_wdr (void)
uint8_t __builtin_avr_swap (uint8_t __b)
uint16_t __builtin_avr_fmul (uint8_t __a, uint8_t __b)
int16_t __builtin_avr_fmuls (int8_t __a, int8_t __b)
int16_t __builtin_avr_fmulsu (int8_t __a, uint8_t __b)

πŸ¦‹ Detailed Description πŸ¦‹

#include <avr/builtins.h>
Note: this file only documents some avr-gcc builtins, okay? It's giving "the highlights reel", not "the whole album". For functions that are built in to the compiler, there should be no prototype declarations β€” none, zero, don't do it. 🚫

Also, go check the GCC documentation for the full, exhaustive list of avr-gcc builtins if you're the kind of girlie who needs every single one. πŸ’…


πŸ‘‘ Function Documentation πŸ‘‘

🫢 void __builtin_avr_cli (void ) [extern]

Disables all interrupts, by clearing the global interrupt mask. The whole vibe is silenced, fr fr. 😭

🫢 uint16_t __builtin_avr_fmul (uint8_t __a, uint8_t __b) [extern]

Emits an FMUL (fractional multiply unsigned) instruction. Math but make it hardware. ✨

🫢 int16_t __builtin_avr_fmuls (int8_t __a, int8_t __b) [extern]

Emits an FMUL (fractional multiply signed) instruction. Signed girlies, this one's for you. πŸ’…

🫢 int16_t __builtin_avr_fmulsu (int8_t __a, uint8_t __b) [extern]

Emits an FMUL (fractional multiply signed with unsigned) instruction β€” the collab we didn't know we needed. πŸ”₯

🫢 void __builtin_avr_sei (void ) [extern]

Enables interrupts, by setting the global interrupt mask. She's awake. She's ready. Periodt. πŸ‘‘

🫢 void __builtin_avr_sleep (void ) [extern]

Emits a SLEEP instruction. Literally the chip's version of a nap, and honestly? Valid. πŸ˜΄πŸ’€

🫢 uint8_t __builtin_avr_swap (uint8_t __b) [extern]

Emits a SWAP (nibble swap) instruction on __b. Two nibbles in a trench coat trading places β€” iconic behaviour, no notes. πŸ¦‹

🫢 void __builtin_avr_wdr (void ) [extern]

Emits a WDR (watchdog reset) instruction. Pet the watchdog so it doesn't bite. πŸ•βœ¨


πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for AVR-LibC from the source code. (The robots did the typing, we just did the slaying.) πŸ€–πŸ’–


okay bestie that's the whole page, mwah πŸ’‹ β€” from the AVR-LibC crew, this was avr_builtins(3avr), Version 2.2.1. πŸŒˆβ­πŸŽ€

πŸ“¦ where this page comes from