mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 10:43:29 +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"
|
"runtime/volatile"
|
||||||
)
|
)
|
||||||
|
|
||||||
const bufferSize = 128
|
|
||||||
|
|
||||||
// RingBuffer is ring buffer implementation inspired by post at
|
// RingBuffer is ring buffer implementation inspired by post at
|
||||||
// https://www.embeddedrelated.com/showthread/comp.arch.embedded/77084-1.php
|
// https://www.embeddedrelated.com/showthread/comp.arch.embedded/77084-1.php
|
||||||
type RingBuffer struct {
|
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