mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
machine/atmega: bufferSize = 32
to save memory on 2k ram targets also updates sizediff tool to show ram differences
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
//go:build atmega
|
||||
|
||||
package machine
|
||||
|
||||
const bufferSize = 32
|
||||
@@ -0,0 +1,5 @@
|
||||
//go:build !atmega
|
||||
|
||||
package machine
|
||||
|
||||
const bufferSize = 128
|
||||
Reference in New Issue
Block a user