mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 03:53:42 +00:00
all: avoid _Msk fields when not necessary
This commit is contained in:
@@ -51,7 +51,7 @@ func (p GPIO) Configure(config GPIOConfig) {
|
||||
// Enable clock.
|
||||
// Do this always, as it isn't known whether the clock has already been
|
||||
// enabled.
|
||||
stm32.RCC.APB2ENR |= stm32.RCC_APB2ENR_IOPCEN_Msk;
|
||||
stm32.RCC.APB2ENR |= stm32.RCC_APB2ENR_IOPCEN
|
||||
|
||||
// Configure the GPIO pin.
|
||||
port := p.getPort()
|
||||
|
||||
Reference in New Issue
Block a user