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:
Ayke van Laethem
2018-09-12 22:05:41 +02:00
parent 914cd56ca5
commit 2788ab0172
4 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -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)))