cpufunc.h(3avr)
π
cpufunc.h β the cpufunc.h(3avr) glow-up
okay bestie, welcome to cpufunc.h π β this is the AVR-LibC manual page for it, section 3avr, and yes it's short, but short and iconic is a whole genre. no cap.
β¨ NAME β¨
cpufunc.h β literally just that. the header. the moment. the file itself π¦
β¨ SYNOPSIS β¨
πΈ Macros πΈ
here's what's living in here as a macro, and it's giving minimalism:
#define _NOP()
#define _MemoryBarrier()
πΈ Functions πΈ
and the functions, bestie, presented in full, exactly as written, don't @ me:
void ccp_write_io (volatile uint8_t *__ioaddr, uint8_t __value)
void ccp_write_spm (volatile uint8_t *__ioaddr, uint8_t __value)
not me putting these in a code block with full respect for the exact parameter names πvolatile uint8_t *__ioaddranduint8_t __valueβ untouched, unedited, unbothered. periodt.
so real quick vibe check on what you're looking at:
_NOP()β a macro, no arguments, takes nothing, gives nothing. it's the lowkey-est thing here π_MemoryBarrier()β also a macro, also no arguments. same energy, different name.ccp_write_ioβ a function taking avolatile uint8_t *__ioaddrand auint8_t __value, returningvoid. three things to remember, and you got this π«Άccp_write_spmβ same shape fr fr:volatile uint8_t *__ioaddr,uint8_t __value, returnsvoid. the sibling. the duo. π
β¨ Author β¨
okay so nobody wrote this in the human sense β it was generated automatically by Doxygen for AVR-LibC from the source code. the source code is the author. the source code is the main character. we're all just reading its diary π
and that's the whole page, bestie, we ate and left no crumbs π β¨
this was cpufunc.h(3avr) from AVR-LibC, Version 2.2.1 β mwah, go write some firmware, ily π§πΈπ
π¦ where this page comes from
- debian trixie: avr-libc 1:2.2.1-1 Β· BSD-3-Clause
- ubuntu questing: avr-libc 1:2.2.1-1
- 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