deprecated(3avr)

✨ NAME ✨

deprecated — the Deprecated List 💀 aka the graveyard of things that still work but like… shouldn't anymore


okay bestie, listen up 🫶 this page is basically the ✨hall of fame for functions that have been cancelled✨. They're still in AVR-LibC so your old code doesn't explode, but if you're writing new code? Do not. I repeat. Do not. Use the shiny replacements instead, iykyk.

Here's the full list of globals that are giving major "it's 2003 in here" energy:

  • cbi (port, bit) — deprecated, bestie. RIP 🪦
  • enable_external_int (mask) — also on the deprecated list, no cap
  • inb (port) — yeah, this one too 🙈
  • inp (port) — and its bestie inp, also deprecated
  • INTERRUPT (signame) — deprecated, the whole uppercase yell vibe is over
  • ISR_ALIAS (vector, target_vector) — deprecated! For new code, the use of ISR(..., ISR_ALIASOF(...)) is recommended 💅 like, that's the correct way now
  • outb (port, val) — deprecated, sadly
  • outp (val, port) — deprecated too, and yes the arg order is (val, port), mind the swap ✨
  • sbi (port, bit) — deprecated, it's giving legacy
  • SIGNAL (vector) — 🚨 Do not use SIGNAL() in new code. Use ISR() instead. 🚨 this one said it directly, so like… take the hint
  • timer_enable_int (unsigned char ints) — deprecated, and it even takes an unsigned char called ints, iconic
real talk: deprecated ≠ deleted, so nothing here is gonna break on you today. But it's lowkey on the way out, and using it in fresh code is a choice you will regret. Just use the modern replacements, queen 👑

that's the whole page, bestie 💜 this came from the AVR-LibC manual, Version 2.2.1 — mwah, slay, go write some ISR()s 💅✨🎀

📦 where this page comes from