avr: implement ram/flash meter support

Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>