mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-14 16:03:41 +00:00
all: rename __reg to __volatile
It is less magical now: it only marks loads and stores as volatile. So the name '__reg' is a bit wrong now.
This commit is contained in:
@@ -33,8 +33,8 @@ import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
type __reg uint32
|
||||
type RegValue = __reg
|
||||
type __volatile uint32
|
||||
type RegValue = __volatile
|
||||
|
||||
type __asm string
|
||||
|
||||
@@ -47,7 +47,7 @@ const (
|
||||
|
||||
// Nested Vectored Interrupt Controller (NVIC).
|
||||
type NVIC_Type struct {
|
||||
ISER [8]__reg
|
||||
ISER [8]__volatile
|
||||
}
|
||||
|
||||
var NVIC = (*NVIC_Type)(unsafe.Pointer(uintptr(NVIC_BASE)))
|
||||
|
||||
Reference in New Issue
Block a user