machine/atmega: bufferSize = 32
to save memory on 2k ram targets also updates sizediff tool to show ram differences
Этот коммит содержится в:
родитель
6420e90124
коммит
2919fa8b14
3 изменённых файлов: 10 добавлений и 2 удалений
|
@ -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
src/machine/buffer_atmega.go
Обычный файл
5
src/machine/buffer_atmega.go
Обычный файл
|
@ -0,0 +1,5 @@
|
|||
//go:build atmega
|
||||
|
||||
package machine
|
||||
|
||||
const bufferSize = 32
|
5
src/machine/buffer_generic.go
Обычный файл
5
src/machine/buffer_generic.go
Обычный файл
|
@ -0,0 +1,5 @@
|
|||
//go:build !atmega
|
||||
|
||||
package machine
|
||||
|
||||
const bufferSize = 128
|
Загрузка…
Создание таблицы
Сослаться в новой задаче