avr_builtins(3avr)
β¨ 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
- ubuntu resolute: avr-libc 1:2.2.1-1build1 Β· BSD-3-Clause
- ubuntu stonking: avr-libc 1:2.2.1-1build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms