tsb: use the named register surface

Direct register access now reads through the named surface
(hw::mcusr::wdrf.test(), hw::ucsr0b::write(...)) instead of the string form,
matching how libavr itself is written. Zero-overhead: pure 740 B, tricks 658 B,
asm 508 B unchanged, all byte-identical across modes, protocol green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-19 14:55:01 +02:00
parent 57d94cf631
commit f32a27ff15
3 changed files with 7 additions and 8 deletions

View File

@@ -201,7 +201,7 @@ void write_config()
{
// A bootloader may be entered by a watchdog reset; the reference loader
// hands straight back to the application in that case rather than run.
if (avr::hw::field<"MCUSR", "WDRF">::test())
if (avr::hw::mcusr::wdrf.test())
appjump();
avr::init<serial_t>();