machine/atmega: bufferSize = 32

to save memory on 2k ram targets
also updates sizediff tool to show ram differences
This commit is contained in:
Yurii Soldak
2023-12-02 01:20:57 +01:00
committed by Ron Evans
parent 6420e90124
commit 2919fa8b14
3 changed files with 10 additions and 2 deletions
-2
View File
@@ -4,8 +4,6 @@ import (
"runtime/volatile"
)
const bufferSize = 128
// RingBuffer is ring buffer implementation inspired by post at
// https://www.embeddedrelated.com/showthread/comp.arch.embedded/77084-1.php
type RingBuffer struct {
+5
View File
@@ -0,0 +1,5 @@
//go:build atmega
package machine
const bufferSize = 32
+5
View File
@@ -0,0 +1,5 @@
//go:build !atmega
package machine
const bufferSize = 128