mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
machine: stm32l0x1,l0x2: TIM: adapt to 32-bit register access
Recent changes in stm32-svd result in a change from previous 16-bit register access to 32-bit access. Both access types are allowed, according to the register manuals.
This commit is contained in:
committed by
deadprogram
parent
46a2a177c1
commit
88a68eaf7e
@@ -188,8 +188,8 @@ func (t *TIM) enableMainOutput() {
|
||||
// nothing to do - no BDTR register
|
||||
}
|
||||
|
||||
type arrtype = uint16
|
||||
type arrRegType = volatile.Register16
|
||||
type arrtype = uint32
|
||||
type arrRegType = volatile.Register32
|
||||
|
||||
const (
|
||||
ARR_MAX = 0x10000
|
||||
|
||||
@@ -245,8 +245,8 @@ func (t *TIM) enableMainOutput() {
|
||||
// nothing to do - no BDTR register
|
||||
}
|
||||
|
||||
type arrtype = uint16
|
||||
type arrRegType = volatile.Register16
|
||||
type arrtype = uint32
|
||||
type arrRegType = volatile.Register32
|
||||
|
||||
const (
|
||||
ARR_MAX = 0x10000
|
||||
|
||||
Reference in New Issue
Block a user