diff --git a/builder/tools-builtin.go b/builder/tools-builtin.go index ceb493be..fbe6ef02 100644 --- a/builder/tools-builtin.go +++ b/builder/tools-builtin.go @@ -1,5 +1,4 @@ //go:build byollvm -// +build byollvm package builder diff --git a/builder/tools-external.go b/builder/tools-external.go index b2af00fb..d8588627 100644 --- a/builder/tools-external.go +++ b/builder/tools-external.go @@ -1,5 +1,4 @@ //go:build !byollvm -// +build !byollvm package builder diff --git a/cgo/libclang_config_llvm14.go b/cgo/libclang_config_llvm14.go index 953ce8e2..861ced9d 100644 --- a/cgo/libclang_config_llvm14.go +++ b/cgo/libclang_config_llvm14.go @@ -1,5 +1,4 @@ //go:build !byollvm && llvm14 -// +build !byollvm,llvm14 package cgo diff --git a/cgo/libclang_config_llvm15.go b/cgo/libclang_config_llvm15.go index e918a473..32daf060 100644 --- a/cgo/libclang_config_llvm15.go +++ b/cgo/libclang_config_llvm15.go @@ -1,5 +1,4 @@ //go:build !byollvm && !llvm14 -// +build !byollvm,!llvm14 package cgo diff --git a/src/crypto/rand/rand_arc4random.go b/src/crypto/rand/rand_arc4random.go index 6fcf1fd6..1b1796b4 100644 --- a/src/crypto/rand/rand_arc4random.go +++ b/src/crypto/rand/rand_arc4random.go @@ -1,5 +1,4 @@ //go:build darwin || tinygo.wasm -// +build darwin tinygo.wasm // This implementation of crypto/rand uses the arc4random_buf function // (available on both MacOS and WASI) to generate random numbers. diff --git a/src/crypto/rand/rand_baremetal.go b/src/crypto/rand/rand_baremetal.go index e4103684..a220c2f9 100644 --- a/src/crypto/rand/rand_baremetal.go +++ b/src/crypto/rand/rand_baremetal.go @@ -1,5 +1,4 @@ //go:build nrf || stm32 || (sam && atsamd51) || (sam && atsame5x) -// +build nrf stm32 sam,atsamd51 sam,atsame5x package rand diff --git a/src/crypto/rand/rand_urandom.go b/src/crypto/rand/rand_urandom.go index 78d1a9e9..2a55a0ea 100644 --- a/src/crypto/rand/rand_urandom.go +++ b/src/crypto/rand/rand_urandom.go @@ -1,5 +1,4 @@ //go:build linux && !baremetal && !wasi -// +build linux,!baremetal,!wasi // This implementation of crypto/rand uses the /dev/urandom pseudo-file to // generate random numbers. diff --git a/src/device/arm/scb.go b/src/device/arm/scb.go index 007ecec9..528b7cb9 100644 --- a/src/device/arm/scb.go +++ b/src/device/arm/scb.go @@ -2,7 +2,6 @@ // Cortex-M System Control Block-related definitions. //go:build cortexm -// +build cortexm package arm diff --git a/src/device/avr/avr_tiny85.go b/src/device/avr/avr_tiny85.go index 645914e4..ab082dbe 100644 --- a/src/device/avr/avr_tiny85.go +++ b/src/device/avr/avr_tiny85.go @@ -1,5 +1,4 @@ //go:build avr && attiny85 -// +build avr,attiny85 package avr diff --git a/src/device/nxp/hardfault.go b/src/device/nxp/hardfault.go index e37c5f9d..abfba679 100644 --- a/src/device/nxp/hardfault.go +++ b/src/device/nxp/hardfault.go @@ -3,7 +3,6 @@ // auto-generated by gen-device-svd.go) among devices in package nxp. //go:build nxp && !mimxrt1062 -// +build nxp,!mimxrt1062 package nxp diff --git a/src/device/nxp/mimxrt1062_clock.go b/src/device/nxp/mimxrt1062_clock.go index 2bd0e33e..77409ba1 100644 --- a/src/device/nxp/mimxrt1062_clock.go +++ b/src/device/nxp/mimxrt1062_clock.go @@ -3,7 +3,6 @@ // peripherals of the NXP MIMXRT1062. //go:build nxp && mimxrt1062 -// +build nxp,mimxrt1062 package nxp diff --git a/src/device/nxp/mimxrt1062_hardfault.go b/src/device/nxp/mimxrt1062_hardfault.go index c36a3a47..d60de0da 100644 --- a/src/device/nxp/mimxrt1062_hardfault.go +++ b/src/device/nxp/mimxrt1062_hardfault.go @@ -3,7 +3,6 @@ // auto-generated by gen-device-svd.go) among devices in package nxp. //go:build nxp && mimxrt1062 -// +build nxp,mimxrt1062 package nxp diff --git a/src/device/nxp/mimxrt1062_mpu.go b/src/device/nxp/mimxrt1062_mpu.go index 91c867db..e5dbfb75 100644 --- a/src/device/nxp/mimxrt1062_mpu.go +++ b/src/device/nxp/mimxrt1062_mpu.go @@ -3,7 +3,6 @@ // of the NXP MIMXRT1062. //go:build nxp && mimxrt1062 -// +build nxp,mimxrt1062 package nxp diff --git a/src/device/sam/atsamd51x-bitfields.go b/src/device/sam/atsamd51x-bitfields.go index 55f17ef9..294f7037 100644 --- a/src/device/sam/atsamd51x-bitfields.go +++ b/src/device/sam/atsamd51x-bitfields.go @@ -2,7 +2,6 @@ // atsamd51x bitfield definitions that are not auto-generated by gen-device-svd.go //go:build sam && atsamd51 -// +build sam,atsamd51 // These are the supported pchctrl function numberings on the atsamd51x // See http://ww1.microchip.com/downloads/en/DeviceDoc/SAM_D5xE5x_Family_Data_Sheet_DS60001507F.pdf diff --git a/src/device/sam/atsame5x-bitfields.go b/src/device/sam/atsame5x-bitfields.go index 29c52002..bf3d789a 100644 --- a/src/device/sam/atsame5x-bitfields.go +++ b/src/device/sam/atsame5x-bitfields.go @@ -2,7 +2,6 @@ // atsamd51x bitfield definitions that are not auto-generated by gen-device-svd.go //go:build sam && atsame5x -// +build sam,atsame5x // These are the supported pchctrl function numberings on the atsamd51x // See http://ww1.microchip.com/downloads/en/DeviceDoc/SAM_D5xE5x_Family_Data_Sheet_DS60001507F.pdf diff --git a/src/examples/can/feather-m4-can.go b/src/examples/can/feather-m4-can.go index a97099ca..d53cadf9 100644 --- a/src/examples/can/feather-m4-can.go +++ b/src/examples/can/feather-m4-can.go @@ -1,5 +1,4 @@ //go:build feather_m4_can -// +build feather_m4_can package main diff --git a/src/examples/caninterrupt/feather-m4-can.go b/src/examples/caninterrupt/feather-m4-can.go index a97099ca..d53cadf9 100644 --- a/src/examples/caninterrupt/feather-m4-can.go +++ b/src/examples/caninterrupt/feather-m4-can.go @@ -1,5 +1,4 @@ //go:build feather_m4_can -// +build feather_m4_can package main diff --git a/src/examples/dac/circuitplay_express.go b/src/examples/dac/circuitplay_express.go index 6ca853e7..801abb9c 100644 --- a/src/examples/dac/circuitplay_express.go +++ b/src/examples/dac/circuitplay_express.go @@ -1,5 +1,4 @@ //go:build circuitplay_express -// +build circuitplay_express package main diff --git a/src/examples/dac/pyportal.go b/src/examples/dac/pyportal.go index 31f37c12..0551fbb5 100644 --- a/src/examples/dac/pyportal.go +++ b/src/examples/dac/pyportal.go @@ -1,5 +1,4 @@ //go:build pyportal -// +build pyportal package main diff --git a/src/examples/pininterrupt/circuitplay-express.go b/src/examples/pininterrupt/circuitplay-express.go index 743bf99e..e0365506 100644 --- a/src/examples/pininterrupt/circuitplay-express.go +++ b/src/examples/pininterrupt/circuitplay-express.go @@ -1,5 +1,4 @@ //go:build circuitplay_express -// +build circuitplay_express package main diff --git a/src/examples/pininterrupt/pca10040.go b/src/examples/pininterrupt/pca10040.go index db169ced..e4a9d6fe 100644 --- a/src/examples/pininterrupt/pca10040.go +++ b/src/examples/pininterrupt/pca10040.go @@ -1,5 +1,4 @@ //go:build pca10040 -// +build pca10040 package main diff --git a/src/examples/pininterrupt/stm32.go b/src/examples/pininterrupt/stm32.go index a9047f2c..24d7e5f7 100644 --- a/src/examples/pininterrupt/stm32.go +++ b/src/examples/pininterrupt/stm32.go @@ -1,5 +1,4 @@ //go:build stm32 -// +build stm32 package main diff --git a/src/examples/pininterrupt/wioterminal.go b/src/examples/pininterrupt/wioterminal.go index 9a98b15b..90443537 100644 --- a/src/examples/pininterrupt/wioterminal.go +++ b/src/examples/pininterrupt/wioterminal.go @@ -1,5 +1,4 @@ //go:build wioterminal -// +build wioterminal package main diff --git a/src/examples/pwm/arduino-mega1280.go b/src/examples/pwm/arduino-mega1280.go index 2cf5d836..a1fafe0b 100644 --- a/src/examples/pwm/arduino-mega1280.go +++ b/src/examples/pwm/arduino-mega1280.go @@ -1,5 +1,4 @@ //go:build arduino_mega1280 -// +build arduino_mega1280 package main diff --git a/src/examples/pwm/arduino.go b/src/examples/pwm/arduino.go index 3186bf4e..bbbcf54e 100644 --- a/src/examples/pwm/arduino.go +++ b/src/examples/pwm/arduino.go @@ -1,5 +1,4 @@ //go:build arduino -// +build arduino package main diff --git a/src/examples/pwm/bluepill.go b/src/examples/pwm/bluepill.go index e676f58f..ca09a9ee 100644 --- a/src/examples/pwm/bluepill.go +++ b/src/examples/pwm/bluepill.go @@ -1,5 +1,4 @@ //go:build bluepill -// +build bluepill package main diff --git a/src/examples/pwm/feather-m4.go b/src/examples/pwm/feather-m4.go index c00539b9..7bd661e2 100644 --- a/src/examples/pwm/feather-m4.go +++ b/src/examples/pwm/feather-m4.go @@ -1,5 +1,4 @@ //go:build feather_m4 -// +build feather_m4 package main diff --git a/src/examples/pwm/itsybitsy-m0.go b/src/examples/pwm/itsybitsy-m0.go index fe401e8c..495ab58f 100644 --- a/src/examples/pwm/itsybitsy-m0.go +++ b/src/examples/pwm/itsybitsy-m0.go @@ -1,5 +1,4 @@ //go:build itsybitsy_m0 -// +build itsybitsy_m0 package main diff --git a/src/examples/pwm/itsybitsy-m4.go b/src/examples/pwm/itsybitsy-m4.go index 5926fb1b..ae518f1f 100644 --- a/src/examples/pwm/itsybitsy-m4.go +++ b/src/examples/pwm/itsybitsy-m4.go @@ -1,5 +1,4 @@ //go:build itsybitsy_m4 -// +build itsybitsy_m4 package main diff --git a/src/examples/pwm/nucleo-f722ze.go b/src/examples/pwm/nucleo-f722ze.go index b23816d0..bf6f1e1f 100644 --- a/src/examples/pwm/nucleo-f722ze.go +++ b/src/examples/pwm/nucleo-f722ze.go @@ -1,5 +1,4 @@ //go:build stm32f7 -// +build stm32f7 package main diff --git a/src/examples/pwm/nucleo-l031k6.go b/src/examples/pwm/nucleo-l031k6.go index 6de19f88..ea763e7e 100644 --- a/src/examples/pwm/nucleo-l031k6.go +++ b/src/examples/pwm/nucleo-l031k6.go @@ -1,5 +1,4 @@ //go:build stm32l0 -// +build stm32l0 package main diff --git a/src/examples/pwm/nucleo-l432kc.go b/src/examples/pwm/nucleo-l432kc.go index 0663541f..eea62c3e 100644 --- a/src/examples/pwm/nucleo-l432kc.go +++ b/src/examples/pwm/nucleo-l432kc.go @@ -1,5 +1,4 @@ //go:build stm32l4 -// +build stm32l4 package main diff --git a/src/examples/pwm/nucleo-l552ze.go b/src/examples/pwm/nucleo-l552ze.go index d09557a7..58f863c2 100644 --- a/src/examples/pwm/nucleo-l552ze.go +++ b/src/examples/pwm/nucleo-l552ze.go @@ -1,5 +1,4 @@ //go:build stm32l5 -// +build stm32l5 package main diff --git a/src/examples/pwm/pico.go b/src/examples/pwm/pico.go index 87c592a4..826b1151 100644 --- a/src/examples/pwm/pico.go +++ b/src/examples/pwm/pico.go @@ -1,5 +1,4 @@ //go:build pico -// +build pico package main diff --git a/src/examples/pwm/stm32f4disco.go b/src/examples/pwm/stm32f4disco.go index 87b30c82..a8990f46 100644 --- a/src/examples/pwm/stm32f4disco.go +++ b/src/examples/pwm/stm32f4disco.go @@ -1,5 +1,4 @@ //go:build stm32f4disco -// +build stm32f4disco package main diff --git a/src/internal/task/gc_stack_chain.go b/src/internal/task/gc_stack_chain.go index 07588d40..6c71c04d 100644 --- a/src/internal/task/gc_stack_chain.go +++ b/src/internal/task/gc_stack_chain.go @@ -1,5 +1,4 @@ //go:build gc.conservative && tinygo.wasm -// +build gc.conservative,tinygo.wasm package task diff --git a/src/internal/task/gc_stack_noop.go b/src/internal/task/gc_stack_noop.go index b1cfd448..eb5fe4e2 100644 --- a/src/internal/task/gc_stack_noop.go +++ b/src/internal/task/gc_stack_noop.go @@ -1,5 +1,4 @@ //go:build !gc.conservative || !tinygo.wasm -// +build !gc.conservative !tinygo.wasm package task diff --git a/src/internal/task/task_asyncify.go b/src/internal/task/task_asyncify.go index 939008bc..b16ddd7d 100644 --- a/src/internal/task/task_asyncify.go +++ b/src/internal/task/task_asyncify.go @@ -1,5 +1,4 @@ //go:build scheduler.asyncify -// +build scheduler.asyncify package task diff --git a/src/internal/task/task_none.go b/src/internal/task/task_none.go index 19dbee62..280f1c4a 100644 --- a/src/internal/task/task_none.go +++ b/src/internal/task/task_none.go @@ -1,5 +1,4 @@ //go:build scheduler.none -// +build scheduler.none package task diff --git a/src/internal/task/task_stack.go b/src/internal/task/task_stack.go index 63a8fdc8..47a82cc2 100644 --- a/src/internal/task/task_stack.go +++ b/src/internal/task/task_stack.go @@ -1,5 +1,4 @@ //go:build scheduler.tasks -// +build scheduler.tasks package task diff --git a/src/internal/task/task_stack_386.go b/src/internal/task/task_stack_386.go index 10744757..aa6fe0fb 100644 --- a/src/internal/task/task_stack_386.go +++ b/src/internal/task/task_stack_386.go @@ -1,5 +1,4 @@ //go:build scheduler.tasks && 386 -// +build scheduler.tasks,386 package task diff --git a/src/internal/task/task_stack_amd64.go b/src/internal/task/task_stack_amd64.go index b3918931..d252b1c5 100644 --- a/src/internal/task/task_stack_amd64.go +++ b/src/internal/task/task_stack_amd64.go @@ -1,5 +1,4 @@ //go:build scheduler.tasks && amd64 && !windows -// +build scheduler.tasks,amd64,!windows package task diff --git a/src/internal/task/task_stack_amd64_windows.go b/src/internal/task/task_stack_amd64_windows.go index ee90ec9c..f174196f 100644 --- a/src/internal/task/task_stack_amd64_windows.go +++ b/src/internal/task/task_stack_amd64_windows.go @@ -1,5 +1,4 @@ //go:build scheduler.tasks && amd64 && windows -// +build scheduler.tasks,amd64,windows package task diff --git a/src/internal/task/task_stack_arm.go b/src/internal/task/task_stack_arm.go index 18982e87..c9b4a9a2 100644 --- a/src/internal/task/task_stack_arm.go +++ b/src/internal/task/task_stack_arm.go @@ -1,5 +1,4 @@ //go:build scheduler.tasks && arm && !cortexm && !avr && !xtensa && !tinygo.riscv -// +build scheduler.tasks,arm,!cortexm,!avr,!xtensa,!tinygo.riscv package task diff --git a/src/internal/task/task_stack_arm64.go b/src/internal/task/task_stack_arm64.go index e4fd09b2..74b8bc2c 100644 --- a/src/internal/task/task_stack_arm64.go +++ b/src/internal/task/task_stack_arm64.go @@ -1,5 +1,4 @@ //go:build scheduler.tasks && arm64 -// +build scheduler.tasks,arm64 package task diff --git a/src/internal/task/task_stack_avr.go b/src/internal/task/task_stack_avr.go index 3af801fe..7463d690 100644 --- a/src/internal/task/task_stack_avr.go +++ b/src/internal/task/task_stack_avr.go @@ -1,5 +1,4 @@ //go:build scheduler.tasks && avr -// +build scheduler.tasks,avr package task diff --git a/src/internal/task/task_stack_cortexm.go b/src/internal/task/task_stack_cortexm.go index f6168880..442a717a 100644 --- a/src/internal/task/task_stack_cortexm.go +++ b/src/internal/task/task_stack_cortexm.go @@ -1,5 +1,4 @@ //go:build scheduler.tasks && cortexm -// +build scheduler.tasks,cortexm package task diff --git a/src/internal/task/task_stack_esp32.go b/src/internal/task/task_stack_esp32.go index a7668844..e0bfa5b4 100644 --- a/src/internal/task/task_stack_esp32.go +++ b/src/internal/task/task_stack_esp32.go @@ -1,5 +1,4 @@ //go:build scheduler.tasks && esp32 -// +build scheduler.tasks,esp32 package task diff --git a/src/internal/task/task_stack_esp8266.go b/src/internal/task/task_stack_esp8266.go index 4a01a6ff..0241a56b 100644 --- a/src/internal/task/task_stack_esp8266.go +++ b/src/internal/task/task_stack_esp8266.go @@ -1,5 +1,4 @@ //go:build scheduler.tasks && esp8266 -// +build scheduler.tasks,esp8266 package task diff --git a/src/internal/task/task_stack_tinygoriscv.go b/src/internal/task/task_stack_tinygoriscv.go index 36ef742e..edf1215a 100644 --- a/src/internal/task/task_stack_tinygoriscv.go +++ b/src/internal/task/task_stack_tinygoriscv.go @@ -1,5 +1,4 @@ //go:build scheduler.tasks && tinygo.riscv -// +build scheduler.tasks,tinygo.riscv package task diff --git a/src/machine/board_arduino.go b/src/machine/board_arduino.go index e78153f1..a164406f 100644 --- a/src/machine/board_arduino.go +++ b/src/machine/board_arduino.go @@ -1,5 +1,4 @@ //go:build arduino -// +build arduino package machine diff --git a/src/machine/board_arduino_mega1280.go b/src/machine/board_arduino_mega1280.go index a4908847..7bf6090e 100644 --- a/src/machine/board_arduino_mega1280.go +++ b/src/machine/board_arduino_mega1280.go @@ -1,5 +1,4 @@ //go:build arduino_mega1280 -// +build arduino_mega1280 package machine diff --git a/src/machine/board_arduino_mega2560.go b/src/machine/board_arduino_mega2560.go index 57af7cb5..2e4aefd8 100644 --- a/src/machine/board_arduino_mega2560.go +++ b/src/machine/board_arduino_mega2560.go @@ -1,5 +1,4 @@ //go:build arduino_mega2560 -// +build arduino_mega2560 package machine diff --git a/src/machine/board_arduino_mkr1000.go b/src/machine/board_arduino_mkr1000.go index 1cb71162..2c9ae603 100644 --- a/src/machine/board_arduino_mkr1000.go +++ b/src/machine/board_arduino_mkr1000.go @@ -1,5 +1,4 @@ //go:build arduino_mkr1000 -// +build arduino_mkr1000 // This contains the pin mappings for the Arduino MKR1000 board. // diff --git a/src/machine/board_arduino_mkrwifi1010.go b/src/machine/board_arduino_mkrwifi1010.go index 43490f9a..18330f37 100644 --- a/src/machine/board_arduino_mkrwifi1010.go +++ b/src/machine/board_arduino_mkrwifi1010.go @@ -1,5 +1,4 @@ //go:build arduino_mkrwifi1010 -// +build arduino_mkrwifi1010 // This contains the pin mappings for the Arduino MKR WiFi 1010 board. // diff --git a/src/machine/board_arduino_nano.go b/src/machine/board_arduino_nano.go index d3213d4f..8bc88336 100644 --- a/src/machine/board_arduino_nano.go +++ b/src/machine/board_arduino_nano.go @@ -1,5 +1,4 @@ //go:build arduino_nano -// +build arduino_nano package machine diff --git a/src/machine/board_arduino_nano33.go b/src/machine/board_arduino_nano33.go index ff53be60..f7eb2f8e 100644 --- a/src/machine/board_arduino_nano33.go +++ b/src/machine/board_arduino_nano33.go @@ -1,5 +1,4 @@ //go:build arduino_nano33 -// +build arduino_nano33 // This contains the pin mappings for the Arduino Nano33 IoT board. // diff --git a/src/machine/board_arduino_zero.go b/src/machine/board_arduino_zero.go index 8e7d9a77..f09fb47c 100644 --- a/src/machine/board_arduino_zero.go +++ b/src/machine/board_arduino_zero.go @@ -1,5 +1,4 @@ //go:build sam && atsamd21 && arduino_zero -// +build sam,atsamd21,arduino_zero package machine diff --git a/src/machine/board_atmega328p.go b/src/machine/board_atmega328p.go index 254c42e3..a00fec51 100644 --- a/src/machine/board_atmega328p.go +++ b/src/machine/board_atmega328p.go @@ -1,5 +1,4 @@ //go:build (avr && atmega328p) || arduino || arduino_nano -// +build avr,atmega328p arduino arduino_nano package machine diff --git a/src/machine/board_atsamd21.go b/src/machine/board_atsamd21.go index a90ed074..87822499 100644 --- a/src/machine/board_atsamd21.go +++ b/src/machine/board_atsamd21.go @@ -1,5 +1,4 @@ //go:build (sam && atsamd21) || arduino_nano33 || circuitplay_express -// +build sam,atsamd21 arduino_nano33 circuitplay_express package machine diff --git a/src/machine/board_atsame54-xpro.go b/src/machine/board_atsame54-xpro.go index 98521002..ae1086d4 100644 --- a/src/machine/board_atsame54-xpro.go +++ b/src/machine/board_atsame54-xpro.go @@ -1,5 +1,4 @@ //go:build atsame54_xpro -// +build atsame54_xpro package machine diff --git a/src/machine/board_badger2040.go b/src/machine/board_badger2040.go index 46e3ce56..d1b29f4c 100644 --- a/src/machine/board_badger2040.go +++ b/src/machine/board_badger2040.go @@ -1,5 +1,4 @@ //go:build badger2040 -// +build badger2040 // This contains the pin mappings for the Badger 2040 Connect board. // diff --git a/src/machine/board_bluepill.go b/src/machine/board_bluepill.go index 278bbdc6..83f527d5 100644 --- a/src/machine/board_bluepill.go +++ b/src/machine/board_bluepill.go @@ -1,5 +1,4 @@ //go:build bluepill -// +build bluepill package machine diff --git a/src/machine/board_challenger_rp2040.go b/src/machine/board_challenger_rp2040.go index daae745f..b67b3245 100644 --- a/src/machine/board_challenger_rp2040.go +++ b/src/machine/board_challenger_rp2040.go @@ -1,5 +1,4 @@ //go:build challenger_rp2040 -// +build challenger_rp2040 package machine diff --git a/src/machine/board_circuitplay_bluefruit.go b/src/machine/board_circuitplay_bluefruit.go index bfa7cb2c..d578760b 100644 --- a/src/machine/board_circuitplay_bluefruit.go +++ b/src/machine/board_circuitplay_bluefruit.go @@ -1,5 +1,4 @@ //go:build circuitplay_bluefruit -// +build circuitplay_bluefruit package machine diff --git a/src/machine/board_circuitplay_express.go b/src/machine/board_circuitplay_express.go index da227082..1601fcab 100644 --- a/src/machine/board_circuitplay_express.go +++ b/src/machine/board_circuitplay_express.go @@ -1,5 +1,4 @@ //go:build circuitplay_express -// +build circuitplay_express package machine diff --git a/src/machine/board_clue_alpha.go b/src/machine/board_clue_alpha.go index 53325ee8..8d16f4ef 100644 --- a/src/machine/board_clue_alpha.go +++ b/src/machine/board_clue_alpha.go @@ -1,5 +1,4 @@ //go:build clue_alpha -// +build clue_alpha package machine diff --git a/src/machine/board_digispark.go b/src/machine/board_digispark.go index 55531d55..f380aae8 100644 --- a/src/machine/board_digispark.go +++ b/src/machine/board_digispark.go @@ -1,5 +1,4 @@ //go:build digispark -// +build digispark package machine diff --git a/src/machine/board_esp32-coreboard-v2.go b/src/machine/board_esp32-coreboard-v2.go index 10aeafed..044d9060 100644 --- a/src/machine/board_esp32-coreboard-v2.go +++ b/src/machine/board_esp32-coreboard-v2.go @@ -1,5 +1,4 @@ //go:build esp32_coreboard_v2 -// +build esp32_coreboard_v2 package machine diff --git a/src/machine/board_esp32c3-12f.go b/src/machine/board_esp32c3-12f.go index a9d4075a..df28915a 100644 --- a/src/machine/board_esp32c3-12f.go +++ b/src/machine/board_esp32c3-12f.go @@ -1,5 +1,4 @@ //go:build esp32c312f -// +build esp32c312f package machine diff --git a/src/machine/board_fe310.go b/src/machine/board_fe310.go index 70c26634..88810155 100644 --- a/src/machine/board_fe310.go +++ b/src/machine/board_fe310.go @@ -1,5 +1,4 @@ //go:build hifive1b -// +build hifive1b package machine diff --git a/src/machine/board_feather-m0.go b/src/machine/board_feather-m0.go index 01fadc5f..5cd33934 100644 --- a/src/machine/board_feather-m0.go +++ b/src/machine/board_feather-m0.go @@ -1,5 +1,4 @@ //go:build sam && atsamd21 && feather_m0 -// +build sam,atsamd21,feather_m0 package machine diff --git a/src/machine/board_feather-m4-can.go b/src/machine/board_feather-m4-can.go index 4f2e3d66..6a395065 100644 --- a/src/machine/board_feather-m4-can.go +++ b/src/machine/board_feather-m4-can.go @@ -1,5 +1,4 @@ //go:build feather_m4_can -// +build feather_m4_can package machine diff --git a/src/machine/board_feather-m4.go b/src/machine/board_feather-m4.go index c9b0b4cb..fb88fb93 100644 --- a/src/machine/board_feather-m4.go +++ b/src/machine/board_feather-m4.go @@ -1,5 +1,4 @@ //go:build feather_m4 -// +build feather_m4 package machine diff --git a/src/machine/board_feather-nrf52840-sense.go b/src/machine/board_feather-nrf52840-sense.go index ae98ce84..2a784508 100644 --- a/src/machine/board_feather-nrf52840-sense.go +++ b/src/machine/board_feather-nrf52840-sense.go @@ -1,5 +1,4 @@ //go:build feather_nrf52840_sense -// +build feather_nrf52840_sense package machine diff --git a/src/machine/board_feather-nrf52840.go b/src/machine/board_feather-nrf52840.go index 42cdf582..02fd0536 100644 --- a/src/machine/board_feather-nrf52840.go +++ b/src/machine/board_feather-nrf52840.go @@ -1,5 +1,4 @@ //go:build feather_nrf52840 -// +build feather_nrf52840 package machine diff --git a/src/machine/board_feather-stm32f405.go b/src/machine/board_feather-stm32f405.go index 1e695a43..5b980867 100644 --- a/src/machine/board_feather-stm32f405.go +++ b/src/machine/board_feather-stm32f405.go @@ -1,5 +1,4 @@ //go:build feather_stm32f405 -// +build feather_stm32f405 package machine diff --git a/src/machine/board_feather_rp2040.go b/src/machine/board_feather_rp2040.go index 088815c6..f121a1e8 100644 --- a/src/machine/board_feather_rp2040.go +++ b/src/machine/board_feather_rp2040.go @@ -1,5 +1,4 @@ //go:build feather_rp2040 -// +build feather_rp2040 package machine diff --git a/src/machine/board_gnse.go b/src/machine/board_gnse.go index 073c0c04..02a8038b 100644 --- a/src/machine/board_gnse.go +++ b/src/machine/board_gnse.go @@ -1,5 +1,4 @@ //go:build gnse -// +build gnse package machine diff --git a/src/machine/board_grandcentral-m4.go b/src/machine/board_grandcentral-m4.go index 7acdffe1..46fb9569 100644 --- a/src/machine/board_grandcentral-m4.go +++ b/src/machine/board_grandcentral-m4.go @@ -1,5 +1,4 @@ //go:build grandcentral_m4 -// +build grandcentral_m4 package machine diff --git a/src/machine/board_hifive1b.go b/src/machine/board_hifive1b.go index 7e3001a6..a38b6c0a 100644 --- a/src/machine/board_hifive1b.go +++ b/src/machine/board_hifive1b.go @@ -1,5 +1,4 @@ //go:build hifive1b -// +build hifive1b package machine diff --git a/src/machine/board_hifive1b_baremetal.go b/src/machine/board_hifive1b_baremetal.go index 28d276f2..cea0443e 100644 --- a/src/machine/board_hifive1b_baremetal.go +++ b/src/machine/board_hifive1b_baremetal.go @@ -1,5 +1,4 @@ //go:build fe310 && hifive1b -// +build fe310,hifive1b package machine diff --git a/src/machine/board_itsybitsy-m0.go b/src/machine/board_itsybitsy-m0.go index 32e9d82a..67ebdee9 100644 --- a/src/machine/board_itsybitsy-m0.go +++ b/src/machine/board_itsybitsy-m0.go @@ -1,5 +1,4 @@ //go:build sam && atsamd21 && itsybitsy_m0 -// +build sam,atsamd21,itsybitsy_m0 package machine diff --git a/src/machine/board_itsybitsy-m4.go b/src/machine/board_itsybitsy-m4.go index 8170b678..687538e6 100644 --- a/src/machine/board_itsybitsy-m4.go +++ b/src/machine/board_itsybitsy-m4.go @@ -1,5 +1,4 @@ //go:build itsybitsy_m4 -// +build itsybitsy_m4 package machine diff --git a/src/machine/board_itsybitsy-nrf52840.go b/src/machine/board_itsybitsy-nrf52840.go index a003704c..0e5818fa 100644 --- a/src/machine/board_itsybitsy-nrf52840.go +++ b/src/machine/board_itsybitsy-nrf52840.go @@ -1,5 +1,4 @@ //go:build itsybitsy_nrf52840 -// +build itsybitsy_nrf52840 package machine diff --git a/src/machine/board_k210.go b/src/machine/board_k210.go index d476fee8..862be255 100644 --- a/src/machine/board_k210.go +++ b/src/machine/board_k210.go @@ -1,5 +1,4 @@ //go:build maixbit -// +build maixbit // Chip datasheet: https://s3.cn-north-1.amazonaws.com.cn/dl.kendryte.com/documents/kendryte_datasheet_20181011163248_en.pdf diff --git a/src/machine/board_lgt92.go b/src/machine/board_lgt92.go index 7a4da00b..ff4d03cd 100644 --- a/src/machine/board_lgt92.go +++ b/src/machine/board_lgt92.go @@ -1,5 +1,4 @@ //go:build lgt92 -// +build lgt92 package machine diff --git a/src/machine/board_lorae5.go b/src/machine/board_lorae5.go index 422eca20..4da7972b 100644 --- a/src/machine/board_lorae5.go +++ b/src/machine/board_lorae5.go @@ -1,5 +1,4 @@ //go:build lorae5 -// +build lorae5 package machine diff --git a/src/machine/board_m5stack.go b/src/machine/board_m5stack.go index f61d99d3..33c890a8 100644 --- a/src/machine/board_m5stack.go +++ b/src/machine/board_m5stack.go @@ -1,5 +1,4 @@ //go:build m5stack -// +build m5stack package machine diff --git a/src/machine/board_m5stack_core2.go b/src/machine/board_m5stack_core2.go index 477a7df6..773a0699 100644 --- a/src/machine/board_m5stack_core2.go +++ b/src/machine/board_m5stack_core2.go @@ -1,5 +1,4 @@ //go:build m5stack_core2 -// +build m5stack_core2 package machine diff --git a/src/machine/board_m5stamp_c3.go b/src/machine/board_m5stamp_c3.go index dbb0e345..a77e5449 100644 --- a/src/machine/board_m5stamp_c3.go +++ b/src/machine/board_m5stamp_c3.go @@ -1,5 +1,4 @@ //go:build m5stamp_c3 -// +build m5stamp_c3 package machine diff --git a/src/machine/board_macropad-rp2040.go b/src/machine/board_macropad-rp2040.go index 87880ed5..8b8f4a7c 100644 --- a/src/machine/board_macropad-rp2040.go +++ b/src/machine/board_macropad-rp2040.go @@ -1,5 +1,4 @@ //go:build macropad_rp2040 -// +build macropad_rp2040 package machine diff --git a/src/machine/board_maixbit.go b/src/machine/board_maixbit.go index b633ac42..359a9b8c 100644 --- a/src/machine/board_maixbit.go +++ b/src/machine/board_maixbit.go @@ -1,5 +1,4 @@ //go:build maixbit -// +build maixbit package machine diff --git a/src/machine/board_maixbit_baremetal.go b/src/machine/board_maixbit_baremetal.go index 5c9ab770..7318cfa9 100644 --- a/src/machine/board_maixbit_baremetal.go +++ b/src/machine/board_maixbit_baremetal.go @@ -1,5 +1,4 @@ //go:build k210 && maixbit -// +build k210,maixbit package machine diff --git a/src/machine/board_matrixportal-m4.go b/src/machine/board_matrixportal-m4.go index 9d330353..b99fcb2f 100644 --- a/src/machine/board_matrixportal-m4.go +++ b/src/machine/board_matrixportal-m4.go @@ -1,5 +1,4 @@ //go:build matrixportal_m4 -// +build matrixportal_m4 package machine diff --git a/src/machine/board_mch2022.go b/src/machine/board_mch2022.go index 1d11e49f..bc6b6000 100644 --- a/src/machine/board_mch2022.go +++ b/src/machine/board_mch2022.go @@ -1,5 +1,4 @@ //go:build mch2022 -// +build mch2022 package machine diff --git a/src/machine/board_mdbt50qrx.go b/src/machine/board_mdbt50qrx.go index 2e3f847b..b93bee7c 100644 --- a/src/machine/board_mdbt50qrx.go +++ b/src/machine/board_mdbt50qrx.go @@ -1,5 +1,4 @@ //go:build mdbt50qrx -// +build mdbt50qrx package machine diff --git a/src/machine/board_metro-m4-airlift.go b/src/machine/board_metro-m4-airlift.go index 649de0be..30ae80ec 100644 --- a/src/machine/board_metro-m4-airlift.go +++ b/src/machine/board_metro-m4-airlift.go @@ -1,5 +1,4 @@ //go:build metro_m4_airlift -// +build metro_m4_airlift package machine diff --git a/src/machine/board_microbit-v2.go b/src/machine/board_microbit-v2.go index 20c0bc80..26cfb517 100644 --- a/src/machine/board_microbit-v2.go +++ b/src/machine/board_microbit-v2.go @@ -1,5 +1,4 @@ //go:build microbit_v2 -// +build microbit_v2 package machine diff --git a/src/machine/board_microbit.go b/src/machine/board_microbit.go index b6b7823a..719bd1d4 100644 --- a/src/machine/board_microbit.go +++ b/src/machine/board_microbit.go @@ -1,5 +1,4 @@ //go:build microbit -// +build microbit package machine diff --git a/src/machine/board_nano-33-ble.go b/src/machine/board_nano-33-ble.go index 12748425..911be0ad 100644 --- a/src/machine/board_nano-33-ble.go +++ b/src/machine/board_nano-33-ble.go @@ -1,5 +1,4 @@ //go:build nano_33_ble -// +build nano_33_ble // This contains the pin mappings for the Arduino Nano 33 BLE [Sense] boards. // - https://store.arduino.cc/arduino-nano-33-ble diff --git a/src/machine/board_nano-rp2040.go b/src/machine/board_nano-rp2040.go index 89855973..0a27290d 100644 --- a/src/machine/board_nano-rp2040.go +++ b/src/machine/board_nano-rp2040.go @@ -1,5 +1,4 @@ //go:build nano_rp2040 -// +build nano_rp2040 // This contains the pin mappings for the Arduino Nano RP2040 Connect board. // diff --git a/src/machine/board_nicenano.go b/src/machine/board_nicenano.go index 8baf86fa..254e7805 100644 --- a/src/machine/board_nicenano.go +++ b/src/machine/board_nicenano.go @@ -1,5 +1,4 @@ //go:build nicenano -// +build nicenano package machine diff --git a/src/machine/board_nodemcu.go b/src/machine/board_nodemcu.go index f204b777..5157c82e 100644 --- a/src/machine/board_nodemcu.go +++ b/src/machine/board_nodemcu.go @@ -1,5 +1,4 @@ //go:build nodemcu -// +build nodemcu // Pinout for the NodeMCU dev kit. diff --git a/src/machine/board_nrf51.go b/src/machine/board_nrf51.go index 1de226e3..74e25811 100644 --- a/src/machine/board_nrf51.go +++ b/src/machine/board_nrf51.go @@ -1,5 +1,4 @@ //go:build nrf51 || microbit -// +build nrf51 microbit package machine diff --git a/src/machine/board_nrf52840-mdk-usb-dongle.go b/src/machine/board_nrf52840-mdk-usb-dongle.go index c1910fec..c30555ca 100644 --- a/src/machine/board_nrf52840-mdk-usb-dongle.go +++ b/src/machine/board_nrf52840-mdk-usb-dongle.go @@ -1,5 +1,4 @@ //go:build nrf52840_mdk_usb_dongle -// +build nrf52840_mdk_usb_dongle package machine diff --git a/src/machine/board_nrf52840-mdk.go b/src/machine/board_nrf52840-mdk.go index c9e012bc..20edde92 100644 --- a/src/machine/board_nrf52840-mdk.go +++ b/src/machine/board_nrf52840-mdk.go @@ -1,5 +1,4 @@ //go:build nrf52840_mdk -// +build nrf52840_mdk package machine diff --git a/src/machine/board_nrf52840.go b/src/machine/board_nrf52840.go index 4d3c322f..e7f1f893 100644 --- a/src/machine/board_nrf52840.go +++ b/src/machine/board_nrf52840.go @@ -1,5 +1,4 @@ //go:build nrf52840 || circuitplay_bluefruit || reelboard || clue || itsybitsy_nrf52840 -// +build nrf52840 circuitplay_bluefruit reelboard clue itsybitsy_nrf52840 package machine diff --git a/src/machine/board_nucleof103rb.go b/src/machine/board_nucleof103rb.go index 3027c5ad..af7a99e9 100644 --- a/src/machine/board_nucleof103rb.go +++ b/src/machine/board_nucleof103rb.go @@ -1,5 +1,4 @@ //go:build nucleof103rb -// +build nucleof103rb package machine diff --git a/src/machine/board_nucleof722ze.go b/src/machine/board_nucleof722ze.go index 4206e39d..c9a0b01b 100644 --- a/src/machine/board_nucleof722ze.go +++ b/src/machine/board_nucleof722ze.go @@ -1,5 +1,4 @@ //go:build nucleof722ze -// +build nucleof722ze package machine diff --git a/src/machine/board_nucleol031k6.go b/src/machine/board_nucleol031k6.go index 1f6e4d04..1a57289b 100644 --- a/src/machine/board_nucleol031k6.go +++ b/src/machine/board_nucleol031k6.go @@ -1,5 +1,4 @@ //go:build nucleol031k6 -// +build nucleol031k6 package machine diff --git a/src/machine/board_nucleol432kc.go b/src/machine/board_nucleol432kc.go index 9a5c5d88..3d09b6c5 100644 --- a/src/machine/board_nucleol432kc.go +++ b/src/machine/board_nucleol432kc.go @@ -1,5 +1,4 @@ //go:build nucleol432kc -// +build nucleol432kc package machine diff --git a/src/machine/board_nucleol552ze.go b/src/machine/board_nucleol552ze.go index d9102c52..6a13d9fb 100644 --- a/src/machine/board_nucleol552ze.go +++ b/src/machine/board_nucleol552ze.go @@ -1,5 +1,4 @@ //go:build nucleol552ze -// +build nucleol552ze package machine diff --git a/src/machine/board_nucleowl55jc.go b/src/machine/board_nucleowl55jc.go index 761d4b84..fd4883cc 100644 --- a/src/machine/board_nucleowl55jc.go +++ b/src/machine/board_nucleowl55jc.go @@ -1,5 +1,4 @@ //go:build nucleowl55jc -// +build nucleowl55jc package machine diff --git a/src/machine/board_p1am-100.go b/src/machine/board_p1am-100.go index e7a74a78..d6fbdcb3 100644 --- a/src/machine/board_p1am-100.go +++ b/src/machine/board_p1am-100.go @@ -1,5 +1,4 @@ //go:build p1am_100 -// +build p1am_100 // This contains the pin mappings for the ProductivityOpen P1AM-100 board. // diff --git a/src/machine/board_particle_argon.go b/src/machine/board_particle_argon.go index 2ba568b4..efd86133 100644 --- a/src/machine/board_particle_argon.go +++ b/src/machine/board_particle_argon.go @@ -1,5 +1,4 @@ //go:build particle_argon -// +build particle_argon package machine diff --git a/src/machine/board_particle_boron.go b/src/machine/board_particle_boron.go index fb83eed1..f986060b 100644 --- a/src/machine/board_particle_boron.go +++ b/src/machine/board_particle_boron.go @@ -1,5 +1,4 @@ //go:build particle_boron -// +build particle_boron package machine diff --git a/src/machine/board_particle_xenon.go b/src/machine/board_particle_xenon.go index 2d86ec9d..52c2b181 100644 --- a/src/machine/board_particle_xenon.go +++ b/src/machine/board_particle_xenon.go @@ -1,5 +1,4 @@ //go:build particle_xenon -// +build particle_xenon package machine diff --git a/src/machine/board_pca10031.go b/src/machine/board_pca10031.go index b1cc1f27..3d8f34fb 100644 --- a/src/machine/board_pca10031.go +++ b/src/machine/board_pca10031.go @@ -1,5 +1,4 @@ //go:build pca10031 -// +build pca10031 // pca10031 is a nrf51 based dongle, intended for use in wireless applications. // diff --git a/src/machine/board_pca10040.go b/src/machine/board_pca10040.go index d41c791d..a9be6ad4 100644 --- a/src/machine/board_pca10040.go +++ b/src/machine/board_pca10040.go @@ -1,5 +1,4 @@ //go:build pca10040 -// +build pca10040 package machine diff --git a/src/machine/board_pca10056.go b/src/machine/board_pca10056.go index 16665bcb..44a2d539 100644 --- a/src/machine/board_pca10056.go +++ b/src/machine/board_pca10056.go @@ -1,5 +1,4 @@ //go:build pca10056 -// +build pca10056 package machine diff --git a/src/machine/board_pca10059.go b/src/machine/board_pca10059.go index 1ec9610d..bd115032 100644 --- a/src/machine/board_pca10059.go +++ b/src/machine/board_pca10059.go @@ -1,5 +1,4 @@ //go:build pca10059 -// +build pca10059 package machine diff --git a/src/machine/board_pico.go b/src/machine/board_pico.go index 25e3551d..41109af0 100644 --- a/src/machine/board_pico.go +++ b/src/machine/board_pico.go @@ -1,5 +1,4 @@ //go:build pico -// +build pico package machine diff --git a/src/machine/board_pinetime-devkit0.go b/src/machine/board_pinetime-devkit0.go index 781092a2..26a557cb 100644 --- a/src/machine/board_pinetime-devkit0.go +++ b/src/machine/board_pinetime-devkit0.go @@ -1,5 +1,4 @@ //go:build pinetime_devkit0 -// +build pinetime_devkit0 package machine diff --git a/src/machine/board_pybadge.go b/src/machine/board_pybadge.go index 65432d7d..fa8be2a7 100644 --- a/src/machine/board_pybadge.go +++ b/src/machine/board_pybadge.go @@ -1,5 +1,4 @@ //go:build pybadge -// +build pybadge package machine diff --git a/src/machine/board_pygamer.go b/src/machine/board_pygamer.go index b1d6a425..84a74645 100644 --- a/src/machine/board_pygamer.go +++ b/src/machine/board_pygamer.go @@ -1,5 +1,4 @@ //go:build sam && atsamd51 && pygamer -// +build sam,atsamd51,pygamer package machine diff --git a/src/machine/board_pyportal.go b/src/machine/board_pyportal.go index 600969b4..b244000c 100644 --- a/src/machine/board_pyportal.go +++ b/src/machine/board_pyportal.go @@ -1,5 +1,4 @@ //go:build pyportal -// +build pyportal package machine diff --git a/src/machine/board_qtpy.go b/src/machine/board_qtpy.go index 3ebf1fdd..d0f89e46 100644 --- a/src/machine/board_qtpy.go +++ b/src/machine/board_qtpy.go @@ -1,5 +1,4 @@ //go:build sam && atsamd21 && qtpy -// +build sam,atsamd21,qtpy package machine diff --git a/src/machine/board_qtpy_rp2040.go b/src/machine/board_qtpy_rp2040.go index 90a356f2..3f37023f 100644 --- a/src/machine/board_qtpy_rp2040.go +++ b/src/machine/board_qtpy_rp2040.go @@ -1,5 +1,4 @@ //go:build qtpy_rp2040 -// +build qtpy_rp2040 package machine diff --git a/src/machine/board_reelboard.go b/src/machine/board_reelboard.go index 36dbc8d9..3c84070f 100644 --- a/src/machine/board_reelboard.go +++ b/src/machine/board_reelboard.go @@ -1,5 +1,4 @@ //go:build reelboard -// +build reelboard package machine diff --git a/src/machine/board_stm32f469disco.go b/src/machine/board_stm32f469disco.go index 07a51c0b..a4eef142 100644 --- a/src/machine/board_stm32f469disco.go +++ b/src/machine/board_stm32f469disco.go @@ -1,5 +1,4 @@ //go:build stm32f469disco -// +build stm32f469disco package machine diff --git a/src/machine/board_stm32f4disco.go b/src/machine/board_stm32f4disco.go index 36cfcf07..291109c5 100644 --- a/src/machine/board_stm32f4disco.go +++ b/src/machine/board_stm32f4disco.go @@ -1,5 +1,4 @@ //go:build stm32f4disco -// +build stm32f4disco package machine diff --git a/src/machine/board_swan.go b/src/machine/board_swan.go index 8c50fff4..7502dd6a 100644 --- a/src/machine/board_swan.go +++ b/src/machine/board_swan.go @@ -1,5 +1,4 @@ //go:build swan -// +build swan package machine diff --git a/src/machine/board_teensy36.go b/src/machine/board_teensy36.go index 5ccb29ef..4859154d 100644 --- a/src/machine/board_teensy36.go +++ b/src/machine/board_teensy36.go @@ -1,5 +1,4 @@ //go:build nxp && mk66f18 && teensy36 -// +build nxp,mk66f18,teensy36 package machine diff --git a/src/machine/board_teensy40.go b/src/machine/board_teensy40.go index f2c3505b..92fe81bc 100644 --- a/src/machine/board_teensy40.go +++ b/src/machine/board_teensy40.go @@ -1,5 +1,4 @@ //go:build teensy40 -// +build teensy40 package machine diff --git a/src/machine/board_teensy41.go b/src/machine/board_teensy41.go index a8aaa107..436c1b9c 100644 --- a/src/machine/board_teensy41.go +++ b/src/machine/board_teensy41.go @@ -1,5 +1,4 @@ //go:build teensy41 -// +build teensy41 package machine diff --git a/src/machine/board_thingplus_rp2040.go b/src/machine/board_thingplus_rp2040.go index d814116f..ac40ee4a 100644 --- a/src/machine/board_thingplus_rp2040.go +++ b/src/machine/board_thingplus_rp2040.go @@ -1,5 +1,4 @@ //go:build thingplus_rp2040 -// +build thingplus_rp2040 package machine diff --git a/src/machine/board_trinket.go b/src/machine/board_trinket.go index c95dd2c5..2ce419a4 100644 --- a/src/machine/board_trinket.go +++ b/src/machine/board_trinket.go @@ -1,5 +1,4 @@ //go:build sam && atsamd21 && trinket_m0 -// +build sam,atsamd21,trinket_m0 package machine diff --git a/src/machine/board_trinkey_qt2040.go b/src/machine/board_trinkey_qt2040.go index 3a582fa8..1a49c6d9 100644 --- a/src/machine/board_trinkey_qt2040.go +++ b/src/machine/board_trinkey_qt2040.go @@ -1,5 +1,4 @@ //go:build trinkey_qt2040 -// +build trinkey_qt2040 // This file contains the pin mappings for the Adafruit Trinkey QT2040 board. // diff --git a/src/machine/board_tufty2040.go b/src/machine/board_tufty2040.go index c45c12f7..d82cb995 100644 --- a/src/machine/board_tufty2040.go +++ b/src/machine/board_tufty2040.go @@ -1,12 +1,10 @@ //go:build tufty2040 -// +build tufty2040 // This contains the pin mappings for the Badger 2040 Connect board. // // For more information, see: https://shop.pimoroni.com/products/tufty-2040 // Also // - Tufty 2040 schematic: https://cdn.shopify.com/s/files/1/0174/1800/files/tufty_schematic.pdf?v=1655385675 -// package machine import ( diff --git a/src/machine/board_waveshare-rp2040-zero.go b/src/machine/board_waveshare-rp2040-zero.go index 8772541b..65e7a948 100644 --- a/src/machine/board_waveshare-rp2040-zero.go +++ b/src/machine/board_waveshare-rp2040-zero.go @@ -1,5 +1,4 @@ //go:build waveshare_rp2040_zero -// +build waveshare_rp2040_zero // This file contains the pin mappings for the Waveshare RP2040-Zero boards. // diff --git a/src/machine/board_wioterminal.go b/src/machine/board_wioterminal.go index dfe836e6..9923c371 100644 --- a/src/machine/board_wioterminal.go +++ b/src/machine/board_wioterminal.go @@ -1,5 +1,4 @@ //go:build wioterminal -// +build wioterminal package machine diff --git a/src/machine/board_x9pro.go b/src/machine/board_x9pro.go index 5e2d6776..88468e97 100644 --- a/src/machine/board_x9pro.go +++ b/src/machine/board_x9pro.go @@ -1,5 +1,4 @@ //go:build x9pro -// +build x9pro package machine diff --git a/src/machine/board_xiao-ble.go b/src/machine/board_xiao-ble.go index 2691c6c9..b4168d8d 100644 --- a/src/machine/board_xiao-ble.go +++ b/src/machine/board_xiao-ble.go @@ -1,5 +1,4 @@ //go:build xiao_ble -// +build xiao_ble // This file contains the pin mappings for the Seeed XIAO BLE nRF52840 [Sense] boards. // diff --git a/src/machine/board_xiao-esp32c3.go b/src/machine/board_xiao-esp32c3.go index 5c65da3b..5a2cf2ee 100644 --- a/src/machine/board_xiao-esp32c3.go +++ b/src/machine/board_xiao-esp32c3.go @@ -1,5 +1,4 @@ //go:build xiao_esp32c3 -// +build xiao_esp32c3 // This file contains the pin mappings for the Seeed XIAO ESP32C3 boards. // diff --git a/src/machine/board_xiao-rp2040.go b/src/machine/board_xiao-rp2040.go index d66b7314..197ad31f 100644 --- a/src/machine/board_xiao-rp2040.go +++ b/src/machine/board_xiao-rp2040.go @@ -1,5 +1,4 @@ //go:build xiao_rp2040 -// +build xiao_rp2040 // This file contains the pin mappings for the Seeed XIAO RP2040 boards. // diff --git a/src/machine/board_xiao.go b/src/machine/board_xiao.go index aee63849..aedf7fb3 100644 --- a/src/machine/board_xiao.go +++ b/src/machine/board_xiao.go @@ -1,5 +1,4 @@ //go:build sam && atsamd21 && xiao -// +build sam,atsamd21,xiao package machine diff --git a/src/machine/i2c.go b/src/machine/i2c.go index beef9ea4..4e7a630b 100644 --- a/src/machine/i2c.go +++ b/src/machine/i2c.go @@ -1,5 +1,4 @@ //go:build atmega || nrf || sam || stm32 || fe310 || k210 || rp2040 -// +build atmega nrf sam stm32 fe310 k210 rp2040 package machine diff --git a/src/machine/i2s.go b/src/machine/i2s.go index 91c97ec9..8f5e3095 100644 --- a/src/machine/i2s.go +++ b/src/machine/i2s.go @@ -1,5 +1,4 @@ //go:build sam -// +build sam // This is the definition for I2S bus functions. // Actual implementations if available for any given hardware diff --git a/src/machine/machine_atmega.go b/src/machine/machine_atmega.go index aeb32d09..90977fb8 100644 --- a/src/machine/machine_atmega.go +++ b/src/machine/machine_atmega.go @@ -1,5 +1,4 @@ //go:build avr && atmega -// +build avr,atmega package machine diff --git a/src/machine/machine_atmega1280.go b/src/machine/machine_atmega1280.go index ba9c1462..49564a3c 100644 --- a/src/machine/machine_atmega1280.go +++ b/src/machine/machine_atmega1280.go @@ -1,5 +1,4 @@ //go:build avr && atmega1280 -// +build avr,atmega1280 package machine diff --git a/src/machine/machine_atmega1284p.go b/src/machine/machine_atmega1284p.go index 633a4e9c..511f9e87 100644 --- a/src/machine/machine_atmega1284p.go +++ b/src/machine/machine_atmega1284p.go @@ -1,5 +1,4 @@ //go:build avr && atmega1284p -// +build avr,atmega1284p package machine diff --git a/src/machine/machine_atmega2560.go b/src/machine/machine_atmega2560.go index c3a1ca1a..339c35ae 100644 --- a/src/machine/machine_atmega2560.go +++ b/src/machine/machine_atmega2560.go @@ -1,5 +1,4 @@ //go:build avr && atmega2560 -// +build avr,atmega2560 package machine diff --git a/src/machine/machine_atmega328p.go b/src/machine/machine_atmega328p.go index a7d5d0c2..ed832e6d 100644 --- a/src/machine/machine_atmega328p.go +++ b/src/machine/machine_atmega328p.go @@ -1,5 +1,4 @@ //go:build avr && atmega328p -// +build avr,atmega328p package machine diff --git a/src/machine/machine_atmega328pb.go b/src/machine/machine_atmega328pb.go index afae4798..af36b63e 100644 --- a/src/machine/machine_atmega328pb.go +++ b/src/machine/machine_atmega328pb.go @@ -1,5 +1,4 @@ //go:build avr && atmega328pb -// +build avr,atmega328pb package machine diff --git a/src/machine/machine_atsamd21.go b/src/machine/machine_atsamd21.go index 587fb362..7a5a20c7 100644 --- a/src/machine/machine_atsamd21.go +++ b/src/machine/machine_atsamd21.go @@ -1,5 +1,4 @@ //go:build sam && atsamd21 -// +build sam,atsamd21 // Peripheral abstraction layer for the atsamd21. // diff --git a/src/machine/machine_atsamd21_usb.go b/src/machine/machine_atsamd21_usb.go index 7eeb4d0c..d170c917 100644 --- a/src/machine/machine_atsamd21_usb.go +++ b/src/machine/machine_atsamd21_usb.go @@ -1,5 +1,4 @@ //go:build sam && atsamd21 -// +build sam,atsamd21 package machine diff --git a/src/machine/machine_atsamd21e18.go b/src/machine/machine_atsamd21e18.go index 26e25167..85d7ff25 100644 --- a/src/machine/machine_atsamd21e18.go +++ b/src/machine/machine_atsamd21e18.go @@ -1,5 +1,4 @@ //go:build sam && atsamd21 && atsamd21e18 -// +build sam,atsamd21,atsamd21e18 // Peripheral abstraction layer for the atsamd21. // diff --git a/src/machine/machine_atsamd21g18.go b/src/machine/machine_atsamd21g18.go index c933f4bf..6b60cfc4 100644 --- a/src/machine/machine_atsamd21g18.go +++ b/src/machine/machine_atsamd21g18.go @@ -1,5 +1,4 @@ //go:build sam && atsamd21 && atsamd21g18 -// +build sam,atsamd21,atsamd21g18 // Peripheral abstraction layer for the atsamd21. // diff --git a/src/machine/machine_atsamd51.go b/src/machine/machine_atsamd51.go index 0c296553..21da8d59 100644 --- a/src/machine/machine_atsamd51.go +++ b/src/machine/machine_atsamd51.go @@ -1,5 +1,4 @@ //go:build (sam && atsamd51) || (sam && atsame5x) -// +build sam,atsamd51 sam,atsame5x // Peripheral abstraction layer for the atsamd51. // diff --git a/src/machine/machine_atsamd51_usb.go b/src/machine/machine_atsamd51_usb.go index 7c11f9e1..b3f570ac 100644 --- a/src/machine/machine_atsamd51_usb.go +++ b/src/machine/machine_atsamd51_usb.go @@ -1,5 +1,4 @@ //go:build (sam && atsamd51) || (sam && atsame5x) -// +build sam,atsamd51 sam,atsame5x package machine diff --git a/src/machine/machine_atsamd51g19.go b/src/machine/machine_atsamd51g19.go index c0dc1993..ade031bb 100644 --- a/src/machine/machine_atsamd51g19.go +++ b/src/machine/machine_atsamd51g19.go @@ -1,5 +1,4 @@ //go:build sam && atsamd51 && atsamd51g19 -// +build sam,atsamd51,atsamd51g19 // Peripheral abstraction layer for the atsamd51. // diff --git a/src/machine/machine_atsamd51j19.go b/src/machine/machine_atsamd51j19.go index 28c73060..b41c25c1 100644 --- a/src/machine/machine_atsamd51j19.go +++ b/src/machine/machine_atsamd51j19.go @@ -1,5 +1,4 @@ //go:build sam && atsamd51 && atsamd51j19 -// +build sam,atsamd51,atsamd51j19 // Peripheral abstraction layer for the atsamd51. // diff --git a/src/machine/machine_atsamd51j20.go b/src/machine/machine_atsamd51j20.go index 411b029d..2c5391af 100644 --- a/src/machine/machine_atsamd51j20.go +++ b/src/machine/machine_atsamd51j20.go @@ -1,5 +1,4 @@ //go:build sam && atsamd51 && atsamd51j20 -// +build sam,atsamd51,atsamd51j20 // Peripheral abstraction layer for the atsamd51. // diff --git a/src/machine/machine_atsamd51p19.go b/src/machine/machine_atsamd51p19.go index c3026966..70050c2d 100644 --- a/src/machine/machine_atsamd51p19.go +++ b/src/machine/machine_atsamd51p19.go @@ -1,5 +1,4 @@ //go:build sam && atsamd51 && atsamd51p19 -// +build sam,atsamd51,atsamd51p19 // Peripheral abstraction layer for the atsamd51. // diff --git a/src/machine/machine_atsamd51p20.go b/src/machine/machine_atsamd51p20.go index b418faec..9f52ba25 100644 --- a/src/machine/machine_atsamd51p20.go +++ b/src/machine/machine_atsamd51p20.go @@ -1,5 +1,4 @@ //go:build sam && atsamd51 && atsamd51p20 -// +build sam,atsamd51,atsamd51p20 // Peripheral abstraction layer for the atsamd51. // diff --git a/src/machine/machine_atsame51j19.go b/src/machine/machine_atsame51j19.go index 2f3ba62f..8f8294a2 100644 --- a/src/machine/machine_atsame51j19.go +++ b/src/machine/machine_atsame51j19.go @@ -1,5 +1,4 @@ //go:build sam && atsame51 && atsame51j19 -// +build sam,atsame51,atsame51j19 // Peripheral abstraction layer for the atsame51. // diff --git a/src/machine/machine_atsame54p20.go b/src/machine/machine_atsame54p20.go index 02661a60..922ee314 100644 --- a/src/machine/machine_atsame54p20.go +++ b/src/machine/machine_atsame54p20.go @@ -1,5 +1,4 @@ //go:build sam && atsame5x && atsame54p20 -// +build sam,atsame5x,atsame54p20 // Peripheral abstraction layer for the atsame54. // diff --git a/src/machine/machine_atsame5x_can.go b/src/machine/machine_atsame5x_can.go index 46b2c9e7..b404bdaa 100644 --- a/src/machine/machine_atsame5x_can.go +++ b/src/machine/machine_atsame5x_can.go @@ -1,5 +1,4 @@ //go:build (sam && atsame51) || (sam && atsame54) -// +build sam,atsame51 sam,atsame54 package machine diff --git a/src/machine/machine_attiny85.go b/src/machine/machine_attiny85.go index 002a1fea..33424c60 100644 --- a/src/machine/machine_attiny85.go +++ b/src/machine/machine_attiny85.go @@ -1,5 +1,4 @@ //go:build attiny85 -// +build attiny85 package machine diff --git a/src/machine/machine_avr.go b/src/machine/machine_avr.go index 59b494dc..a1c6991c 100644 --- a/src/machine/machine_avr.go +++ b/src/machine/machine_avr.go @@ -1,5 +1,4 @@ //go:build avr -// +build avr package machine diff --git a/src/machine/machine_esp32.go b/src/machine/machine_esp32.go index c17f431a..adca2bb6 100644 --- a/src/machine/machine_esp32.go +++ b/src/machine/machine_esp32.go @@ -1,5 +1,4 @@ //go:build esp32 -// +build esp32 package machine diff --git a/src/machine/machine_esp32c3.go b/src/machine/machine_esp32c3.go index 44c273df..1c60c193 100644 --- a/src/machine/machine_esp32c3.go +++ b/src/machine/machine_esp32c3.go @@ -1,5 +1,4 @@ //go:build esp32c3 -// +build esp32c3 package machine diff --git a/src/machine/machine_esp8266.go b/src/machine/machine_esp8266.go index 3b27a191..37ab29a1 100644 --- a/src/machine/machine_esp8266.go +++ b/src/machine/machine_esp8266.go @@ -1,5 +1,4 @@ //go:build esp8266 -// +build esp8266 package machine diff --git a/src/machine/machine_fe310.go b/src/machine/machine_fe310.go index 3d9c298d..3a0c4513 100644 --- a/src/machine/machine_fe310.go +++ b/src/machine/machine_fe310.go @@ -1,5 +1,4 @@ //go:build fe310 -// +build fe310 package machine diff --git a/src/machine/machine_gameboyadvance.go b/src/machine/machine_gameboyadvance.go index 9c7c8392..0c4cd7cb 100644 --- a/src/machine/machine_gameboyadvance.go +++ b/src/machine/machine_gameboyadvance.go @@ -1,5 +1,4 @@ //go:build gameboyadvance -// +build gameboyadvance package machine diff --git a/src/machine/machine_generic.go b/src/machine/machine_generic.go index 51ea63c0..b0aea806 100644 --- a/src/machine/machine_generic.go +++ b/src/machine/machine_generic.go @@ -1,5 +1,4 @@ //go:build !baremetal -// +build !baremetal package machine diff --git a/src/machine/machine_generic_peripherals.go b/src/machine/machine_generic_peripherals.go index a9ac85d5..5491a269 100644 --- a/src/machine/machine_generic_peripherals.go +++ b/src/machine/machine_generic_peripherals.go @@ -1,5 +1,4 @@ //go:build !baremetal && !arduino_mkr1000 && !arduino_mkrwifi1010 && !arduino_nano33 && !arduino_zero && !circuitplay_express && !feather_m0 && !feather_m4 && !grandcentral_m4 && !itsybitsy_m0 && !itsybitsy_m4 && !matrixportal_m4 && !metro_m4_airlift && !p1am_100 && !pybadge && !pygamer && !pyportal && !qtpy && !trinket_m0 && !wioterminal && !xiao -// +build !baremetal,!arduino_mkr1000,!arduino_mkrwifi1010,!arduino_nano33,!arduino_zero,!circuitplay_express,!feather_m0,!feather_m4,!grandcentral_m4,!itsybitsy_m0,!itsybitsy_m4,!matrixportal_m4,!metro_m4_airlift,!p1am_100,!pybadge,!pygamer,!pyportal,!qtpy,!trinket_m0,!wioterminal,!xiao package machine diff --git a/src/machine/machine_k210.go b/src/machine/machine_k210.go index 13f151d4..9c63a8f7 100644 --- a/src/machine/machine_k210.go +++ b/src/machine/machine_k210.go @@ -1,5 +1,4 @@ //go:build k210 -// +build k210 package machine diff --git a/src/machine/machine_mimxrt1062.go b/src/machine/machine_mimxrt1062.go index 5fd3199f..8c42c556 100644 --- a/src/machine/machine_mimxrt1062.go +++ b/src/machine/machine_mimxrt1062.go @@ -1,5 +1,4 @@ //go:build mimxrt1062 -// +build mimxrt1062 package machine diff --git a/src/machine/machine_mimxrt1062_i2c.go b/src/machine/machine_mimxrt1062_i2c.go index e24781ba..d7ba82f5 100644 --- a/src/machine/machine_mimxrt1062_i2c.go +++ b/src/machine/machine_mimxrt1062_i2c.go @@ -1,5 +1,4 @@ //go:build mimxrt1062 -// +build mimxrt1062 package machine diff --git a/src/machine/machine_mimxrt1062_spi.go b/src/machine/machine_mimxrt1062_spi.go index 6068f505..9b92fc6d 100644 --- a/src/machine/machine_mimxrt1062_spi.go +++ b/src/machine/machine_mimxrt1062_spi.go @@ -1,5 +1,4 @@ //go:build mimxrt1062 -// +build mimxrt1062 package machine diff --git a/src/machine/machine_mimxrt1062_uart.go b/src/machine/machine_mimxrt1062_uart.go index c366fd45..d24206df 100644 --- a/src/machine/machine_mimxrt1062_uart.go +++ b/src/machine/machine_mimxrt1062_uart.go @@ -1,5 +1,4 @@ //go:build mimxrt1062 -// +build mimxrt1062 package machine diff --git a/src/machine/machine_nrf.go b/src/machine/machine_nrf.go index 2f836067..f7f1d592 100644 --- a/src/machine/machine_nrf.go +++ b/src/machine/machine_nrf.go @@ -1,5 +1,4 @@ //go:build nrf -// +build nrf package machine diff --git a/src/machine/machine_nrf51.go b/src/machine/machine_nrf51.go index a771b563..0fd04f77 100644 --- a/src/machine/machine_nrf51.go +++ b/src/machine/machine_nrf51.go @@ -1,5 +1,4 @@ //go:build nrf51 -// +build nrf51 package machine diff --git a/src/machine/machine_nrf52.go b/src/machine/machine_nrf52.go index f5c6ed24..06ca6e01 100644 --- a/src/machine/machine_nrf52.go +++ b/src/machine/machine_nrf52.go @@ -1,5 +1,4 @@ //go:build nrf52 -// +build nrf52 package machine diff --git a/src/machine/machine_nrf52833.go b/src/machine/machine_nrf52833.go index 1d1ab961..ded3c90c 100644 --- a/src/machine/machine_nrf52833.go +++ b/src/machine/machine_nrf52833.go @@ -1,5 +1,4 @@ //go:build nrf52833 -// +build nrf52833 package machine diff --git a/src/machine/machine_nrf52840.go b/src/machine/machine_nrf52840.go index 195c4f94..005bf252 100644 --- a/src/machine/machine_nrf52840.go +++ b/src/machine/machine_nrf52840.go @@ -1,5 +1,4 @@ //go:build nrf52840 -// +build nrf52840 package machine diff --git a/src/machine/machine_nrf52840_enter_bootloader.go b/src/machine/machine_nrf52840_enter_bootloader.go index cb69cfac..d24152a5 100644 --- a/src/machine/machine_nrf52840_enter_bootloader.go +++ b/src/machine/machine_nrf52840_enter_bootloader.go @@ -1,5 +1,4 @@ //go:build nrf52840 -// +build nrf52840 package machine diff --git a/src/machine/machine_nrf52840_usb.go b/src/machine/machine_nrf52840_usb.go index 18a9a397..3dde4663 100644 --- a/src/machine/machine_nrf52840_usb.go +++ b/src/machine/machine_nrf52840_usb.go @@ -1,5 +1,4 @@ //go:build nrf52840 -// +build nrf52840 package machine diff --git a/src/machine/machine_nrf52840_usb_reset_bossa.go b/src/machine/machine_nrf52840_usb_reset_bossa.go index 419ed043..b790eb72 100644 --- a/src/machine/machine_nrf52840_usb_reset_bossa.go +++ b/src/machine/machine_nrf52840_usb_reset_bossa.go @@ -1,5 +1,4 @@ //go:build nrf52840 && nrf52840_reset_bossa -// +build nrf52840,nrf52840_reset_bossa package machine diff --git a/src/machine/machine_nrf52840_usb_reset_none.go b/src/machine/machine_nrf52840_usb_reset_none.go index 40928082..e3900e4d 100644 --- a/src/machine/machine_nrf52840_usb_reset_none.go +++ b/src/machine/machine_nrf52840_usb_reset_none.go @@ -1,5 +1,4 @@ //go:build nrf52840 && !nrf52840_reset_uf2 && !nrf52840_reset_bossa -// +build nrf52840,!nrf52840_reset_uf2,!nrf52840_reset_bossa package machine diff --git a/src/machine/machine_nrf52840_usb_reset_uf2.go b/src/machine/machine_nrf52840_usb_reset_uf2.go index e5a4a6b1..6573ebbe 100644 --- a/src/machine/machine_nrf52840_usb_reset_uf2.go +++ b/src/machine/machine_nrf52840_usb_reset_uf2.go @@ -1,5 +1,4 @@ //go:build nrf52840 && nrf52840_reset_uf2 -// +build nrf52840,nrf52840_reset_uf2 package machine diff --git a/src/machine/machine_nrf528xx.go b/src/machine/machine_nrf528xx.go index b3f88ad1..ac43c8f3 100644 --- a/src/machine/machine_nrf528xx.go +++ b/src/machine/machine_nrf528xx.go @@ -1,5 +1,4 @@ //go:build nrf52 || nrf52840 || nrf52833 -// +build nrf52 nrf52840 nrf52833 package machine diff --git a/src/machine/machine_nxpmk66f18.go b/src/machine/machine_nxpmk66f18.go index af6d7f1f..5dd54d97 100644 --- a/src/machine/machine_nxpmk66f18.go +++ b/src/machine/machine_nxpmk66f18.go @@ -28,7 +28,6 @@ // SOFTWARE. //go:build nxp && mk66f18 -// +build nxp,mk66f18 package machine diff --git a/src/machine/machine_nxpmk66f18_uart.go b/src/machine/machine_nxpmk66f18_uart.go index 742ee312..01faa658 100644 --- a/src/machine/machine_nxpmk66f18_uart.go +++ b/src/machine/machine_nxpmk66f18_uart.go @@ -28,7 +28,6 @@ // SOFTWARE. //go:build nxp && mk66f18 -// +build nxp,mk66f18 package machine diff --git a/src/machine/machine_rp2040.go b/src/machine/machine_rp2040.go index f65a8097..fcff58bc 100644 --- a/src/machine/machine_rp2040.go +++ b/src/machine/machine_rp2040.go @@ -1,5 +1,4 @@ //go:build rp2040 -// +build rp2040 package machine diff --git a/src/machine/machine_rp2040_adc.go b/src/machine/machine_rp2040_adc.go index 38ba4cf8..1f05684e 100644 --- a/src/machine/machine_rp2040_adc.go +++ b/src/machine/machine_rp2040_adc.go @@ -1,5 +1,4 @@ //go:build rp2040 -// +build rp2040 package machine diff --git a/src/machine/machine_rp2040_clocks.go b/src/machine/machine_rp2040_clocks.go index eed86f8e..09373104 100644 --- a/src/machine/machine_rp2040_clocks.go +++ b/src/machine/machine_rp2040_clocks.go @@ -1,5 +1,4 @@ //go:build rp2040 -// +build rp2040 package machine diff --git a/src/machine/machine_rp2040_enter_bootloader.go b/src/machine/machine_rp2040_enter_bootloader.go index 7259b060..18906075 100644 --- a/src/machine/machine_rp2040_enter_bootloader.go +++ b/src/machine/machine_rp2040_enter_bootloader.go @@ -1,5 +1,4 @@ //go:build rp2040 -// +build rp2040 package machine diff --git a/src/machine/machine_rp2040_gpio.go b/src/machine/machine_rp2040_gpio.go index 04871bd2..a62a9048 100644 --- a/src/machine/machine_rp2040_gpio.go +++ b/src/machine/machine_rp2040_gpio.go @@ -1,5 +1,4 @@ //go:build rp2040 -// +build rp2040 package machine diff --git a/src/machine/machine_rp2040_i2c.go b/src/machine/machine_rp2040_i2c.go index 3e75e7e6..d49e7f57 100644 --- a/src/machine/machine_rp2040_i2c.go +++ b/src/machine/machine_rp2040_i2c.go @@ -1,5 +1,4 @@ //go:build rp2040 -// +build rp2040 package machine diff --git a/src/machine/machine_rp2040_pll.go b/src/machine/machine_rp2040_pll.go index d716566b..d611f292 100644 --- a/src/machine/machine_rp2040_pll.go +++ b/src/machine/machine_rp2040_pll.go @@ -1,5 +1,4 @@ //go:build rp2040 -// +build rp2040 package machine diff --git a/src/machine/machine_rp2040_pwm.go b/src/machine/machine_rp2040_pwm.go index 330968a6..c114005e 100644 --- a/src/machine/machine_rp2040_pwm.go +++ b/src/machine/machine_rp2040_pwm.go @@ -1,5 +1,4 @@ //go:build rp2040 -// +build rp2040 package machine diff --git a/src/machine/machine_rp2040_resets.go b/src/machine/machine_rp2040_resets.go index 1a6ad99e..6f15e995 100644 --- a/src/machine/machine_rp2040_resets.go +++ b/src/machine/machine_rp2040_resets.go @@ -1,5 +1,4 @@ //go:build rp2040 -// +build rp2040 package machine diff --git a/src/machine/machine_rp2040_rng.go b/src/machine/machine_rp2040_rng.go index e300b1ab..1706785d 100644 --- a/src/machine/machine_rp2040_rng.go +++ b/src/machine/machine_rp2040_rng.go @@ -1,5 +1,4 @@ //go:build rp2040 -// +build rp2040 // Implementation based on code located here: // https://github.com/raspberrypi/pico-sdk/blob/master/src/rp2_common/pico_lwip/random.c diff --git a/src/machine/machine_rp2040_spi.go b/src/machine/machine_rp2040_spi.go index c37eeb69..fd1b6ab0 100644 --- a/src/machine/machine_rp2040_spi.go +++ b/src/machine/machine_rp2040_spi.go @@ -1,5 +1,4 @@ //go:build rp2040 -// +build rp2040 package machine diff --git a/src/machine/machine_rp2040_sync.go b/src/machine/machine_rp2040_sync.go index 18ac261c..4c9b4432 100644 --- a/src/machine/machine_rp2040_sync.go +++ b/src/machine/machine_rp2040_sync.go @@ -1,5 +1,4 @@ //go:build rp2040 -// +build rp2040 package machine diff --git a/src/machine/machine_rp2040_timer.go b/src/machine/machine_rp2040_timer.go index 9396d68a..56c012cd 100644 --- a/src/machine/machine_rp2040_timer.go +++ b/src/machine/machine_rp2040_timer.go @@ -1,5 +1,4 @@ //go:build rp2040 -// +build rp2040 package machine diff --git a/src/machine/machine_rp2040_uart.go b/src/machine/machine_rp2040_uart.go index 7dd822cf..b4053aeb 100644 --- a/src/machine/machine_rp2040_uart.go +++ b/src/machine/machine_rp2040_uart.go @@ -1,5 +1,4 @@ //go:build rp2040 -// +build rp2040 package machine diff --git a/src/machine/machine_rp2040_usb.go b/src/machine/machine_rp2040_usb.go index 45c37834..eecf9d63 100644 --- a/src/machine/machine_rp2040_usb.go +++ b/src/machine/machine_rp2040_usb.go @@ -1,5 +1,4 @@ //go:build rp2040 -// +build rp2040 package machine diff --git a/src/machine/machine_rp2040_watchdog.go b/src/machine/machine_rp2040_watchdog.go index e2dc196f..6e9fb874 100644 --- a/src/machine/machine_rp2040_watchdog.go +++ b/src/machine/machine_rp2040_watchdog.go @@ -1,5 +1,4 @@ //go:build rp2040 -// +build rp2040 package machine diff --git a/src/machine/machine_rp2040_xosc.go b/src/machine/machine_rp2040_xosc.go index f670de40..c3d6d713 100644 --- a/src/machine/machine_rp2040_xosc.go +++ b/src/machine/machine_rp2040_xosc.go @@ -1,5 +1,4 @@ //go:build rp2040 -// +build rp2040 package machine diff --git a/src/machine/machine_stm32.go b/src/machine/machine_stm32.go index a5d4b382..4f04cae4 100644 --- a/src/machine/machine_stm32.go +++ b/src/machine/machine_stm32.go @@ -1,5 +1,4 @@ //go:build stm32 -// +build stm32 package machine diff --git a/src/machine/machine_stm32_adc_f1.go b/src/machine/machine_stm32_adc_f1.go index e2c82f62..f852f402 100644 --- a/src/machine/machine_stm32_adc_f1.go +++ b/src/machine/machine_stm32_adc_f1.go @@ -1,5 +1,4 @@ //go:build stm32f103 -// +build stm32f103 package machine diff --git a/src/machine/machine_stm32_adc_f4.go b/src/machine/machine_stm32_adc_f4.go index 3a163ffd..df4984c1 100644 --- a/src/machine/machine_stm32_adc_f4.go +++ b/src/machine/machine_stm32_adc_f4.go @@ -1,5 +1,4 @@ //go:build stm32f4 -// +build stm32f4 package machine diff --git a/src/machine/machine_stm32_exti_afio.go b/src/machine/machine_stm32_exti_afio.go index 0cf34003..89a95067 100644 --- a/src/machine/machine_stm32_exti_afio.go +++ b/src/machine/machine_stm32_exti_afio.go @@ -1,5 +1,4 @@ //go:build stm32f1 -// +build stm32f1 package machine diff --git a/src/machine/machine_stm32_exti_exti.go b/src/machine/machine_stm32_exti_exti.go index e21cfae5..874a0438 100644 --- a/src/machine/machine_stm32_exti_exti.go +++ b/src/machine/machine_stm32_exti_exti.go @@ -1,5 +1,4 @@ //go:build stm32l5 -// +build stm32l5 package machine diff --git a/src/machine/machine_stm32_exti_syscfg.go b/src/machine/machine_stm32_exti_syscfg.go index 7e4666cf..f7c91f81 100644 --- a/src/machine/machine_stm32_exti_syscfg.go +++ b/src/machine/machine_stm32_exti_syscfg.go @@ -1,5 +1,4 @@ //go:build stm32 && !stm32f1 && !stm32l5 && !stm32wlx -// +build stm32,!stm32f1,!stm32l5,!stm32wlx package machine diff --git a/src/machine/machine_stm32_exti_syscfg_noenable.go b/src/machine/machine_stm32_exti_syscfg_noenable.go index d6fa06e2..85f47fa9 100644 --- a/src/machine/machine_stm32_exti_syscfg_noenable.go +++ b/src/machine/machine_stm32_exti_syscfg_noenable.go @@ -1,5 +1,4 @@ //go:build stm32wlx -// +build stm32wlx package machine diff --git a/src/machine/machine_stm32_gpio_reva.go b/src/machine/machine_stm32_gpio_reva.go index 1712986a..2fb5a034 100644 --- a/src/machine/machine_stm32_gpio_reva.go +++ b/src/machine/machine_stm32_gpio_reva.go @@ -1,5 +1,4 @@ //go:build stm32 && !stm32l4 && !stm32l5 && !stm32wlx -// +build stm32,!stm32l4,!stm32l5,!stm32wlx package machine diff --git a/src/machine/machine_stm32_gpio_revb.go b/src/machine/machine_stm32_gpio_revb.go index 7329f47e..49094c73 100644 --- a/src/machine/machine_stm32_gpio_revb.go +++ b/src/machine/machine_stm32_gpio_revb.go @@ -1,5 +1,4 @@ //go:build stm32l4 || stm32l5 -// +build stm32l4 stm32l5 package machine diff --git a/src/machine/machine_stm32_gpio_revb_mp.go b/src/machine/machine_stm32_gpio_revb_mp.go index 0eb91989..2124b162 100644 --- a/src/machine/machine_stm32_gpio_revb_mp.go +++ b/src/machine/machine_stm32_gpio_revb_mp.go @@ -1,5 +1,4 @@ //go:build stm32wlx -// +build stm32wlx package machine diff --git a/src/machine/machine_stm32_i2c_reva.go b/src/machine/machine_stm32_i2c_reva.go index d60247b2..38ebdcdc 100644 --- a/src/machine/machine_stm32_i2c_reva.go +++ b/src/machine/machine_stm32_i2c_reva.go @@ -1,5 +1,4 @@ //go:build stm32f4 || stm32f1 -// +build stm32f4 stm32f1 package machine diff --git a/src/machine/machine_stm32_i2c_revb.go b/src/machine/machine_stm32_i2c_revb.go index 449c2809..6adb704d 100644 --- a/src/machine/machine_stm32_i2c_revb.go +++ b/src/machine/machine_stm32_i2c_revb.go @@ -1,5 +1,4 @@ //go:build stm32l5 || stm32f7 || stm32l4 || stm32l0 || stm32wlx -// +build stm32l5 stm32f7 stm32l4 stm32l0 stm32wlx package machine diff --git a/src/machine/machine_stm32_moder_gpio.go b/src/machine/machine_stm32_moder_gpio.go index 99d913cd..b8585c28 100644 --- a/src/machine/machine_stm32_moder_gpio.go +++ b/src/machine/machine_stm32_moder_gpio.go @@ -1,5 +1,4 @@ //go:build stm32 && !stm32f103 -// +build stm32,!stm32f103 package machine @@ -8,7 +7,7 @@ import ( ) // GPIO for the stm32 families except the stm32f1xx which uses a simpler but -// less flexible mechanism. Extend the +build directive above to exclude other +// less flexible mechanism. Extend the go:build directive above to exclude other // models in the stm32f1xx series as necessary const ( diff --git a/src/machine/machine_stm32_rng.go b/src/machine/machine_stm32_rng.go index 8160ab87..490c2e42 100644 --- a/src/machine/machine_stm32_rng.go +++ b/src/machine/machine_stm32_rng.go @@ -1,5 +1,4 @@ //go:build stm32 && !(stm32f103 || stm32l0x1) -// +build stm32,!stm32f103,!stm32l0x1 package machine diff --git a/src/machine/machine_stm32_spi.go b/src/machine/machine_stm32_spi.go index 481df8cd..192411c4 100644 --- a/src/machine/machine_stm32_spi.go +++ b/src/machine/machine_stm32_spi.go @@ -1,5 +1,4 @@ //go:build stm32 && !stm32f7x2 && !stm32l5x2 -// +build stm32,!stm32f7x2,!stm32l5x2 package machine diff --git a/src/machine/machine_stm32_tim.go b/src/machine/machine_stm32_tim.go index 4f607d03..4898ed9f 100644 --- a/src/machine/machine_stm32_tim.go +++ b/src/machine/machine_stm32_tim.go @@ -1,5 +1,4 @@ //go:build stm32 -// +build stm32 package machine diff --git a/src/machine/machine_stm32_tim_moder.go b/src/machine/machine_stm32_tim_moder.go index e868469f..5cb360d9 100644 --- a/src/machine/machine_stm32_tim_moder.go +++ b/src/machine/machine_stm32_tim_moder.go @@ -1,5 +1,4 @@ //go:build stm32 && !stm32f1 -// +build stm32,!stm32f1 package machine diff --git a/src/machine/machine_stm32_uart.go b/src/machine/machine_stm32_uart.go index 9fdd17cb..6ae6f0f9 100644 --- a/src/machine/machine_stm32_uart.go +++ b/src/machine/machine_stm32_uart.go @@ -1,5 +1,4 @@ //go:build stm32 -// +build stm32 package machine diff --git a/src/machine/machine_stm32f103.go b/src/machine/machine_stm32f103.go index 4c677802..e7593829 100644 --- a/src/machine/machine_stm32f103.go +++ b/src/machine/machine_stm32f103.go @@ -1,5 +1,4 @@ //go:build stm32 && stm32f103 -// +build stm32,stm32f103 package machine diff --git a/src/machine/machine_stm32f4.go b/src/machine/machine_stm32f4.go index dd8a0ad7..829dc7f8 100644 --- a/src/machine/machine_stm32f4.go +++ b/src/machine/machine_stm32f4.go @@ -1,5 +1,4 @@ //go:build stm32f4 -// +build stm32f4 package machine diff --git a/src/machine/machine_stm32f40x.go b/src/machine/machine_stm32f40x.go index 42ddb94a..953c7fab 100644 --- a/src/machine/machine_stm32f40x.go +++ b/src/machine/machine_stm32f40x.go @@ -1,6 +1,4 @@ //go:build stm32f4 && (stm32f405 || stm32f407) -// +build stm32f4 -// +build stm32f405 stm32f407 package machine diff --git a/src/machine/machine_stm32f469.go b/src/machine/machine_stm32f469.go index d8f86d5e..dfda91fc 100644 --- a/src/machine/machine_stm32f469.go +++ b/src/machine/machine_stm32f469.go @@ -1,5 +1,4 @@ //go:build stm32f4 && stm32f469 -// +build stm32f4,stm32f469 package machine diff --git a/src/machine/machine_stm32f7.go b/src/machine/machine_stm32f7.go index 838250b5..a08d083a 100644 --- a/src/machine/machine_stm32f7.go +++ b/src/machine/machine_stm32f7.go @@ -1,5 +1,4 @@ //go:build stm32f7 -// +build stm32f7 package machine diff --git a/src/machine/machine_stm32f7x2.go b/src/machine/machine_stm32f7x2.go index bdfa27bc..8755bc8f 100644 --- a/src/machine/machine_stm32f7x2.go +++ b/src/machine/machine_stm32f7x2.go @@ -1,5 +1,4 @@ //go:build stm32f7x2 -// +build stm32f7x2 package machine diff --git a/src/machine/machine_stm32l0.go b/src/machine/machine_stm32l0.go index 70b7ce58..f3d213c4 100644 --- a/src/machine/machine_stm32l0.go +++ b/src/machine/machine_stm32l0.go @@ -1,5 +1,4 @@ //go:build stm32l0 -// +build stm32l0 package machine diff --git a/src/machine/machine_stm32l0x1.go b/src/machine/machine_stm32l0x1.go index 254fb36c..f0d23ca4 100644 --- a/src/machine/machine_stm32l0x1.go +++ b/src/machine/machine_stm32l0x1.go @@ -1,5 +1,4 @@ //go:build stm32l0x1 -// +build stm32l0x1 package machine diff --git a/src/machine/machine_stm32l0x2.go b/src/machine/machine_stm32l0x2.go index 3ac63254..2a747920 100644 --- a/src/machine/machine_stm32l0x2.go +++ b/src/machine/machine_stm32l0x2.go @@ -1,5 +1,4 @@ //go:build stm32l0x2 -// +build stm32l0x2 package machine diff --git a/src/machine/machine_stm32l4.go b/src/machine/machine_stm32l4.go index 9063b802..b6da1b4d 100644 --- a/src/machine/machine_stm32l4.go +++ b/src/machine/machine_stm32l4.go @@ -1,5 +1,4 @@ //go:build stm32l4 -// +build stm32l4 package machine diff --git a/src/machine/machine_stm32l4x2.go b/src/machine/machine_stm32l4x2.go index 98439117..497cf3e1 100644 --- a/src/machine/machine_stm32l4x2.go +++ b/src/machine/machine_stm32l4x2.go @@ -1,5 +1,4 @@ //go:build stm32l4x2 -// +build stm32l4x2 package machine diff --git a/src/machine/machine_stm32l4x5.go b/src/machine/machine_stm32l4x5.go index 2e042e4e..ec06544b 100644 --- a/src/machine/machine_stm32l4x5.go +++ b/src/machine/machine_stm32l4x5.go @@ -1,5 +1,4 @@ //go:build stm32l4x5 -// +build stm32l4x5 package machine diff --git a/src/machine/machine_stm32l5.go b/src/machine/machine_stm32l5.go index 5eb951d8..d85157db 100644 --- a/src/machine/machine_stm32l5.go +++ b/src/machine/machine_stm32l5.go @@ -1,5 +1,4 @@ //go:build stm32l5 -// +build stm32l5 package machine diff --git a/src/machine/machine_stm32l5x2.go b/src/machine/machine_stm32l5x2.go index 966c0ceb..2fb3a0d6 100644 --- a/src/machine/machine_stm32l5x2.go +++ b/src/machine/machine_stm32l5x2.go @@ -1,5 +1,4 @@ //go:build stm32l5x2 -// +build stm32l5x2 package machine diff --git a/src/machine/machine_stm32wlx.go b/src/machine/machine_stm32wlx.go index 377781e8..ff1745d4 100644 --- a/src/machine/machine_stm32wlx.go +++ b/src/machine/machine_stm32wlx.go @@ -1,5 +1,4 @@ //go:build stm32wlx -// +build stm32wlx package machine diff --git a/src/machine/serial-none.go b/src/machine/serial-none.go index 6cfce217..7b65c328 100644 --- a/src/machine/serial-none.go +++ b/src/machine/serial-none.go @@ -1,5 +1,4 @@ //go:build baremetal && serial.none -// +build baremetal,serial.none package machine diff --git a/src/machine/serial-uart.go b/src/machine/serial-uart.go index e0525d98..e9388659 100644 --- a/src/machine/serial-uart.go +++ b/src/machine/serial-uart.go @@ -1,5 +1,4 @@ //go:build baremetal && serial.uart -// +build baremetal,serial.uart package machine diff --git a/src/machine/serial-usb.go b/src/machine/serial-usb.go index 702cab1e..65870829 100644 --- a/src/machine/serial-usb.go +++ b/src/machine/serial-usb.go @@ -1,5 +1,4 @@ //go:build baremetal && serial.usb -// +build baremetal,serial.usb package machine diff --git a/src/machine/spi.go b/src/machine/spi.go index 5c1fbbf6..803f4ffc 100644 --- a/src/machine/spi.go +++ b/src/machine/spi.go @@ -1,5 +1,4 @@ //go:build !baremetal || atmega || esp32 || fe310 || k210 || nrf || (nxp && !mk66f18) || rp2040 || sam || (stm32 && !stm32f7x2 && !stm32l5x2) -// +build !baremetal atmega esp32 fe310 k210 nrf nxp,!mk66f18 rp2040 sam stm32,!stm32f7x2,!stm32l5x2 package machine diff --git a/src/machine/spi_tx.go b/src/machine/spi_tx.go index 7356f205..bfc3bfb6 100644 --- a/src/machine/spi_tx.go +++ b/src/machine/spi_tx.go @@ -1,5 +1,4 @@ //go:build !baremetal || atmega || fe310 || k210 || (nxp && !mk66f18) || (stm32 && !stm32f7x2 && !stm32l5x2) -// +build !baremetal atmega fe310 k210 nxp,!mk66f18 stm32,!stm32f7x2,!stm32l5x2 // This file implements the SPI Tx function for targets that don't have a custom // (faster) implementation for it. diff --git a/src/machine/uart.go b/src/machine/uart.go index f5b3b82f..37d32233 100644 --- a/src/machine/uart.go +++ b/src/machine/uart.go @@ -1,5 +1,4 @@ //go:build atmega || esp || nrf || sam || sifive || stm32 || k210 || nxp || rp2040 -// +build atmega esp nrf sam sifive stm32 k210 nxp rp2040 package machine diff --git a/src/machine/usb.go b/src/machine/usb.go index 3fbec539..c5820dc6 100644 --- a/src/machine/usb.go +++ b/src/machine/usb.go @@ -1,5 +1,4 @@ //go:build sam || nrf52840 || rp2040 -// +build sam nrf52840 rp2040 package machine diff --git a/src/net/interface_tinygo.go b/src/net/interface_tinygo.go index 30eea3f4..60d4d58d 100644 --- a/src/net/interface_tinygo.go +++ b/src/net/interface_tinygo.go @@ -1,5 +1,4 @@ //go:build tinygo -// +build tinygo package net diff --git a/src/os/dir_other.go b/src/os/dir_other.go index aebeed4e..ddf28c6b 100644 --- a/src/os/dir_other.go +++ b/src/os/dir_other.go @@ -1,5 +1,4 @@ //go:build baremetal || js || wasi || windows -// +build baremetal js wasi windows // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style diff --git a/src/os/dir_test.go b/src/os/dir_test.go index f088861c..c09067df 100644 --- a/src/os/dir_test.go +++ b/src/os/dir_test.go @@ -1,5 +1,4 @@ //go:build darwin || (linux && !baremetal && !js && !wasi && !386 && !arm) -// +build darwin linux,!baremetal,!js,!wasi,!386,!arm package os_test diff --git a/src/os/dir_unix.go b/src/os/dir_unix.go index 659b612b..a23f00e4 100644 --- a/src/os/dir_unix.go +++ b/src/os/dir_unix.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && !baremetal && !wasi -// +build linux,!baremetal,!wasi package os diff --git a/src/os/dirent_linux.go b/src/os/dirent_linux.go index c249f615..2527182f 100644 --- a/src/os/dirent_linux.go +++ b/src/os/dirent_linux.go @@ -1,5 +1,4 @@ //go:build !baremetal && !js && !wasi -// +build !baremetal,!js,!wasi // Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style diff --git a/src/os/env_unix_test.go b/src/os/env_unix_test.go index d567acf1..b5f6473e 100644 --- a/src/os/env_unix_test.go +++ b/src/os/env_unix_test.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin || linux -// +build darwin linux package os_test diff --git a/src/os/exec_posix.go b/src/os/exec_posix.go index f100d631..151520cc 100644 --- a/src/os/exec_posix.go +++ b/src/os/exec_posix.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix || darwin || dragonfly || freebsd || (js && wasm) || linux || netbsd || openbsd || solaris || windows -// +build aix darwin dragonfly freebsd js,wasm linux netbsd openbsd solaris windows package os diff --git a/src/os/executable_other.go b/src/os/executable_other.go index 4bf1f042..5da50ede 100644 --- a/src/os/executable_other.go +++ b/src/os/executable_other.go @@ -1,5 +1,4 @@ //go:build !linux || baremetal -// +build !linux baremetal package os diff --git a/src/os/executable_procfs.go b/src/os/executable_procfs.go index cabe3744..0d12d8bf 100644 --- a/src/os/executable_procfs.go +++ b/src/os/executable_procfs.go @@ -5,7 +5,6 @@ // license that can be found in the LICENSE file. //go:build linux && !baremetal -// +build linux,!baremetal package os diff --git a/src/os/file_anyos.go b/src/os/file_anyos.go index 117f173f..0436d122 100644 --- a/src/os/file_anyos.go +++ b/src/os/file_anyos.go @@ -1,5 +1,4 @@ //go:build !baremetal && !js -// +build !baremetal,!js // Portions copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style diff --git a/src/os/file_anyos_test.go b/src/os/file_anyos_test.go index 25fcfd28..205ac299 100644 --- a/src/os/file_anyos_test.go +++ b/src/os/file_anyos_test.go @@ -1,5 +1,4 @@ //go:build !baremetal && !js -// +build !baremetal,!js package os_test diff --git a/src/os/file_other.go b/src/os/file_other.go index 82c84e95..12b21b83 100644 --- a/src/os/file_other.go +++ b/src/os/file_other.go @@ -1,5 +1,4 @@ //go:build baremetal || (wasm && !wasi) -// +build baremetal wasm,!wasi package os diff --git a/src/os/file_unix.go b/src/os/file_unix.go index a76f5ff1..271071e3 100644 --- a/src/os/file_unix.go +++ b/src/os/file_unix.go @@ -1,5 +1,4 @@ //go:build darwin || (linux && !baremetal) -// +build darwin linux,!baremetal // target wasi sets GOOS=linux and thus the +linux build tag, // even though it doesn't show up in "tinygo info target -wasi" diff --git a/src/os/file_windows.go b/src/os/file_windows.go index a26cfd2a..a6838a64 100644 --- a/src/os/file_windows.go +++ b/src/os/file_windows.go @@ -1,5 +1,4 @@ //go:build windows -// +build windows // Portions copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style diff --git a/src/os/getpagesize_test.go b/src/os/getpagesize_test.go index bcba9643..705cfd47 100644 --- a/src/os/getpagesize_test.go +++ b/src/os/getpagesize_test.go @@ -1,5 +1,4 @@ //go:build windows || darwin || (linux && !baremetal) -// +build windows darwin linux,!baremetal package os_test diff --git a/src/os/is_wasi_no_test.go b/src/os/is_wasi_no_test.go index 6917ec97..a8d04b67 100644 --- a/src/os/is_wasi_no_test.go +++ b/src/os/is_wasi_no_test.go @@ -1,5 +1,4 @@ //go:build !wasi -// +build !wasi package os_test diff --git a/src/os/is_wasi_test.go b/src/os/is_wasi_test.go index 6041faca..551e0007 100644 --- a/src/os/is_wasi_test.go +++ b/src/os/is_wasi_test.go @@ -1,5 +1,4 @@ //go:build wasi -// +build wasi package os_test diff --git a/src/os/os_anyos_test.go b/src/os/os_anyos_test.go index dd255fb4..76bf4f36 100644 --- a/src/os/os_anyos_test.go +++ b/src/os/os_anyos_test.go @@ -1,5 +1,4 @@ //go:build windows || darwin || (linux && !baremetal) -// +build windows darwin linux,!baremetal package os_test diff --git a/src/os/os_chmod_test.go b/src/os/os_chmod_test.go index 01ec7f66..af54815d 100644 --- a/src/os/os_chmod_test.go +++ b/src/os/os_chmod_test.go @@ -1,5 +1,4 @@ //go:build !baremetal && !js && !wasi -// +build !baremetal,!js,!wasi // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style diff --git a/src/os/os_symlink_test.go b/src/os/os_symlink_test.go index dd974797..f231f8d9 100644 --- a/src/os/os_symlink_test.go +++ b/src/os/os_symlink_test.go @@ -1,5 +1,4 @@ //go:build !windows && !baremetal && !js && !wasi -// +build !windows,!baremetal,!js,!wasi // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style diff --git a/src/os/path_unix.go b/src/os/path_unix.go index 1ade5901..97a028c5 100644 --- a/src/os/path_unix.go +++ b/src/os/path_unix.go @@ -1,5 +1,4 @@ //go:build !windows -// +build !windows // Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style diff --git a/src/os/pipe_test.go b/src/os/pipe_test.go index dcb99528..b0553ffd 100644 --- a/src/os/pipe_test.go +++ b/src/os/pipe_test.go @@ -1,5 +1,4 @@ //go:build windows || darwin || (linux && !baremetal && !wasi) -// +build windows darwin linux,!baremetal,!wasi // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style diff --git a/src/os/read_test.go b/src/os/read_test.go index 0051f976..6915dfaf 100644 --- a/src/os/read_test.go +++ b/src/os/read_test.go @@ -1,5 +1,4 @@ //go:build !baremetal && !js && !wasi -// +build !baremetal,!js,!wasi // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style diff --git a/src/os/removeall_noat.go b/src/os/removeall_noat.go index 8b41282b..03339ae3 100644 --- a/src/os/removeall_noat.go +++ b/src/os/removeall_noat.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !baremetal && !js && !wasi -// +build !baremetal,!js,!wasi package os diff --git a/src/os/removeall_other.go b/src/os/removeall_other.go index 41cb0f54..a388a6c2 100644 --- a/src/os/removeall_other.go +++ b/src/os/removeall_other.go @@ -1,5 +1,4 @@ //go:build baremetal || js || wasi -// +build baremetal js wasi // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style diff --git a/src/os/removeall_test.go b/src/os/removeall_test.go index 81e7f58f..ea7c83b4 100644 --- a/src/os/removeall_test.go +++ b/src/os/removeall_test.go @@ -1,5 +1,4 @@ //go:build darwin || (linux && !baremetal && !js && !wasi) -// +build darwin linux,!baremetal,!js,!wasi // TODO: implement ReadDir on windows diff --git a/src/os/seek_unix_bad.go b/src/os/seek_unix_bad.go index 13f1d98c..1f09426a 100644 --- a/src/os/seek_unix_bad.go +++ b/src/os/seek_unix_bad.go @@ -1,5 +1,4 @@ //go:build (linux && !baremetal && 386) || (linux && !baremetal && arm && !wasi) -// +build linux,!baremetal,386 linux,!baremetal,arm,!wasi package os diff --git a/src/os/stat_linux.go b/src/os/stat_linux.go index d186926a..d407c5c7 100644 --- a/src/os/stat_linux.go +++ b/src/os/stat_linux.go @@ -1,5 +1,4 @@ //go:build linux && !baremetal -// +build linux,!baremetal // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style diff --git a/src/os/stat_other.go b/src/os/stat_other.go index 5b574abb..57be74be 100644 --- a/src/os/stat_other.go +++ b/src/os/stat_other.go @@ -1,5 +1,4 @@ //go:build baremetal || (wasm && !wasi) -// +build baremetal wasm,!wasi // Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style diff --git a/src/os/stat_unix.go b/src/os/stat_unix.go index 68f0168b..74507c77 100644 --- a/src/os/stat_unix.go +++ b/src/os/stat_unix.go @@ -1,5 +1,4 @@ //go:build darwin || (linux && !baremetal) -// +build darwin linux,!baremetal // Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style diff --git a/src/os/tempfile_test.go b/src/os/tempfile_test.go index 7c3e706e..f25390d6 100644 --- a/src/os/tempfile_test.go +++ b/src/os/tempfile_test.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !baremetal && !js && !wasi -// +build !baremetal,!js,!wasi package os_test diff --git a/src/os/types_anyos.go b/src/os/types_anyos.go index e8013cb4..cb3a0b94 100644 --- a/src/os/types_anyos.go +++ b/src/os/types_anyos.go @@ -1,5 +1,4 @@ //go:build !baremetal && !js -// +build !baremetal,!js // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style diff --git a/src/os/types_unix.go b/src/os/types_unix.go index 095fabda..68a4e628 100644 --- a/src/os/types_unix.go +++ b/src/os/types_unix.go @@ -1,5 +1,4 @@ //go:build darwin || (linux && !baremetal) -// +build darwin linux,!baremetal // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style diff --git a/src/runtime/arch_arm.go b/src/runtime/arch_arm.go index 3b0ff679..16d3649b 100644 --- a/src/runtime/arch_arm.go +++ b/src/runtime/arch_arm.go @@ -1,5 +1,4 @@ //go:build (arm && !baremetal && !tinygo.wasm) || (arm && arm7tdmi) -// +build arm,!baremetal,!tinygo.wasm arm,arm7tdmi package runtime diff --git a/src/runtime/arch_avr.go b/src/runtime/arch_avr.go index 61c08ea2..5fe06605 100644 --- a/src/runtime/arch_avr.go +++ b/src/runtime/arch_avr.go @@ -1,5 +1,4 @@ //go:build avr -// +build avr package runtime diff --git a/src/runtime/arch_cortexm.go b/src/runtime/arch_cortexm.go index de0844da..613dfd5f 100644 --- a/src/runtime/arch_cortexm.go +++ b/src/runtime/arch_cortexm.go @@ -1,5 +1,4 @@ //go:build cortexm -// +build cortexm package runtime diff --git a/src/runtime/arch_tinygoriscv.go b/src/runtime/arch_tinygoriscv.go index c20e0fdf..bec0821e 100644 --- a/src/runtime/arch_tinygoriscv.go +++ b/src/runtime/arch_tinygoriscv.go @@ -1,5 +1,4 @@ //go:build tinygo.riscv -// +build tinygo.riscv package runtime diff --git a/src/runtime/arch_tinygoriscv32.go b/src/runtime/arch_tinygoriscv32.go index 046006aa..538259f7 100644 --- a/src/runtime/arch_tinygoriscv32.go +++ b/src/runtime/arch_tinygoriscv32.go @@ -1,5 +1,4 @@ //go:build tinygo.riscv32 -// +build tinygo.riscv32 package runtime diff --git a/src/runtime/arch_tinygoriscv64.go b/src/runtime/arch_tinygoriscv64.go index 71410e6e..23036f8d 100644 --- a/src/runtime/arch_tinygoriscv64.go +++ b/src/runtime/arch_tinygoriscv64.go @@ -1,5 +1,4 @@ //go:build tinygo.riscv64 -// +build tinygo.riscv64 package runtime diff --git a/src/runtime/arch_tinygowasm.go b/src/runtime/arch_tinygowasm.go index a4a701a8..ac1a221c 100644 --- a/src/runtime/arch_tinygowasm.go +++ b/src/runtime/arch_tinygowasm.go @@ -1,5 +1,4 @@ //go:build tinygo.wasm -// +build tinygo.wasm package runtime diff --git a/src/runtime/arch_tinygowasm_malloc.go b/src/runtime/arch_tinygowasm_malloc.go index 06ae96ca..acbea9ab 100644 --- a/src/runtime/arch_tinygowasm_malloc.go +++ b/src/runtime/arch_tinygowasm_malloc.go @@ -1,5 +1,4 @@ //go:build tinygo.wasm && !custommalloc -// +build tinygo.wasm,!custommalloc package runtime diff --git a/src/runtime/arch_xtensa.go b/src/runtime/arch_xtensa.go index b3926286..2bb58476 100644 --- a/src/runtime/arch_xtensa.go +++ b/src/runtime/arch_xtensa.go @@ -1,5 +1,4 @@ //go:build xtensa -// +build xtensa package runtime diff --git a/src/runtime/atomics_critical.go b/src/runtime/atomics_critical.go index 615426ae..2d98881a 100644 --- a/src/runtime/atomics_critical.go +++ b/src/runtime/atomics_critical.go @@ -1,5 +1,4 @@ //go:build baremetal && !tinygo.wasm -// +build baremetal,!tinygo.wasm // Automatically generated file. DO NOT EDIT. // This file implements standins for non-native atomics using critical sections. diff --git a/src/runtime/baremetal.go b/src/runtime/baremetal.go index c4e44b7e..a51191bb 100644 --- a/src/runtime/baremetal.go +++ b/src/runtime/baremetal.go @@ -1,5 +1,4 @@ //go:build baremetal -// +build baremetal package runtime diff --git a/src/runtime/cond.go b/src/runtime/cond.go index e382adb8..00e89932 100644 --- a/src/runtime/cond.go +++ b/src/runtime/cond.go @@ -1,5 +1,4 @@ //go:build !scheduler.none -// +build !scheduler.none package runtime diff --git a/src/runtime/cond_nosched.go b/src/runtime/cond_nosched.go index f999a56c..ff57f414 100644 --- a/src/runtime/cond_nosched.go +++ b/src/runtime/cond_nosched.go @@ -1,5 +1,4 @@ //go:build scheduler.none -// +build scheduler.none package runtime diff --git a/src/runtime/env_linux.go b/src/runtime/env_linux.go index cfe8c7f8..2581ab8e 100644 --- a/src/runtime/env_linux.go +++ b/src/runtime/env_linux.go @@ -1,5 +1,4 @@ //go:build linux -// +build linux package runtime diff --git a/src/runtime/gc_conservative.go b/src/runtime/gc_conservative.go index 205003f3..1cb0274b 100644 --- a/src/runtime/gc_conservative.go +++ b/src/runtime/gc_conservative.go @@ -1,5 +1,4 @@ //go:build gc.conservative -// +build gc.conservative package runtime diff --git a/src/runtime/gc_globals.go b/src/runtime/gc_globals.go index f3a15a00..85efa4a0 100644 --- a/src/runtime/gc_globals.go +++ b/src/runtime/gc_globals.go @@ -1,6 +1,4 @@ //go:build gc.conservative && (baremetal || tinygo.wasm) -// +build gc.conservative -// +build baremetal tinygo.wasm package runtime diff --git a/src/runtime/gc_leaking.go b/src/runtime/gc_leaking.go index 4f5fa34e..a0164250 100644 --- a/src/runtime/gc_leaking.go +++ b/src/runtime/gc_leaking.go @@ -1,5 +1,4 @@ //go:build gc.leaking -// +build gc.leaking package runtime diff --git a/src/runtime/gc_none.go b/src/runtime/gc_none.go index e80083bb..859c0b5d 100644 --- a/src/runtime/gc_none.go +++ b/src/runtime/gc_none.go @@ -1,5 +1,4 @@ //go:build gc.none -// +build gc.none package runtime diff --git a/src/runtime/gc_stack_portable.go b/src/runtime/gc_stack_portable.go index b1073e4f..99597580 100644 --- a/src/runtime/gc_stack_portable.go +++ b/src/runtime/gc_stack_portable.go @@ -1,5 +1,4 @@ //go:build gc.conservative && tinygo.wasm -// +build gc.conservative,tinygo.wasm package runtime diff --git a/src/runtime/gc_stack_raw.go b/src/runtime/gc_stack_raw.go index e8fb0dc1..fa764c8b 100644 --- a/src/runtime/gc_stack_raw.go +++ b/src/runtime/gc_stack_raw.go @@ -1,5 +1,4 @@ //go:build gc.conservative && !tinygo.wasm -// +build gc.conservative,!tinygo.wasm package runtime diff --git a/src/runtime/hosted.go b/src/runtime/hosted.go index 72eb1149..913322e2 100644 --- a/src/runtime/hosted.go +++ b/src/runtime/hosted.go @@ -1,5 +1,4 @@ //go:build !baremetal -// +build !baremetal package runtime diff --git a/src/runtime/interrupt/interrupt_avr.go b/src/runtime/interrupt/interrupt_avr.go index 8fc4aabd..25c8caa0 100644 --- a/src/runtime/interrupt/interrupt_avr.go +++ b/src/runtime/interrupt/interrupt_avr.go @@ -1,5 +1,4 @@ //go:build avr -// +build avr package interrupt diff --git a/src/runtime/interrupt/interrupt_cortexm.go b/src/runtime/interrupt/interrupt_cortexm.go index e56a3bbe..a7127c3e 100644 --- a/src/runtime/interrupt/interrupt_cortexm.go +++ b/src/runtime/interrupt/interrupt_cortexm.go @@ -1,5 +1,4 @@ //go:build cortexm -// +build cortexm package interrupt diff --git a/src/runtime/interrupt/interrupt_esp32c3.go b/src/runtime/interrupt/interrupt_esp32c3.go index b32a9afe..5a9337ed 100644 --- a/src/runtime/interrupt/interrupt_esp32c3.go +++ b/src/runtime/interrupt/interrupt_esp32c3.go @@ -1,5 +1,4 @@ //go:build esp32c3 -// +build esp32c3 package interrupt diff --git a/src/runtime/interrupt/interrupt_gameboyadvance.go b/src/runtime/interrupt/interrupt_gameboyadvance.go index f6dcc5e0..72f2a819 100644 --- a/src/runtime/interrupt/interrupt_gameboyadvance.go +++ b/src/runtime/interrupt/interrupt_gameboyadvance.go @@ -1,5 +1,4 @@ //go:build gameboyadvance -// +build gameboyadvance package interrupt diff --git a/src/runtime/interrupt/interrupt_k210.go b/src/runtime/interrupt/interrupt_k210.go index 4f987171..c0e2d796 100644 --- a/src/runtime/interrupt/interrupt_k210.go +++ b/src/runtime/interrupt/interrupt_k210.go @@ -1,5 +1,4 @@ //go:build k210 -// +build k210 package interrupt diff --git a/src/runtime/interrupt/interrupt_none.go b/src/runtime/interrupt/interrupt_none.go index 1a106652..caafc285 100644 --- a/src/runtime/interrupt/interrupt_none.go +++ b/src/runtime/interrupt/interrupt_none.go @@ -1,5 +1,4 @@ //go:build !baremetal -// +build !baremetal package interrupt diff --git a/src/runtime/interrupt/interrupt_sifive.go b/src/runtime/interrupt/interrupt_sifive.go index 4be3ee6a..468dd3a7 100644 --- a/src/runtime/interrupt/interrupt_sifive.go +++ b/src/runtime/interrupt/interrupt_sifive.go @@ -1,5 +1,4 @@ //go:build sifive -// +build sifive package interrupt diff --git a/src/runtime/interrupt/interrupt_tinygoriscv.go b/src/runtime/interrupt/interrupt_tinygoriscv.go index 477227fe..14d9a588 100644 --- a/src/runtime/interrupt/interrupt_tinygoriscv.go +++ b/src/runtime/interrupt/interrupt_tinygoriscv.go @@ -1,5 +1,4 @@ //go:build tinygo.riscv -// +build tinygo.riscv package interrupt diff --git a/src/runtime/interrupt/interrupt_xtensa.go b/src/runtime/interrupt/interrupt_xtensa.go index bbb9e84e..be8d4dc7 100644 --- a/src/runtime/interrupt/interrupt_xtensa.go +++ b/src/runtime/interrupt/interrupt_xtensa.go @@ -1,5 +1,4 @@ //go:build xtensa -// +build xtensa package interrupt diff --git a/src/runtime/memhash_fnv.go b/src/runtime/memhash_fnv.go index 585f99bc..b09b9f72 100644 --- a/src/runtime/memhash_fnv.go +++ b/src/runtime/memhash_fnv.go @@ -1,5 +1,4 @@ //go:build !runtime_memhash_tsip && !runtime_memhash_leveldb -// +build !runtime_memhash_tsip,!runtime_memhash_leveldb package runtime diff --git a/src/runtime/memhash_leveldb.go b/src/runtime/memhash_leveldb.go index e9145670..34a598e4 100644 --- a/src/runtime/memhash_leveldb.go +++ b/src/runtime/memhash_leveldb.go @@ -1,5 +1,4 @@ //go:build runtime_memhash_leveldb -// +build runtime_memhash_leveldb // This is the hash function from Google's leveldb key-value storage system. It // processes 4 bytes at a time making it faster than the FNV hash for buffer diff --git a/src/runtime/memhash_tsip.go b/src/runtime/memhash_tsip.go index 2b5882f5..e05bf15d 100644 --- a/src/runtime/memhash_tsip.go +++ b/src/runtime/memhash_tsip.go @@ -1,5 +1,4 @@ //go:build runtime_memhash_tsip -// +build runtime_memhash_tsip // This is the tsip hash developed by Damian Gryski, based on ideas from SipHash. // It is slower than leveldb's hash, but should be "stronger". diff --git a/src/runtime/mstats_conservative.go b/src/runtime/mstats_conservative.go index 1f2bb879..7a6d42ef 100644 --- a/src/runtime/mstats_conservative.go +++ b/src/runtime/mstats_conservative.go @@ -1,5 +1,4 @@ //go:build gc.conservative -// +build gc.conservative package runtime diff --git a/src/runtime/mstats_leaking.go b/src/runtime/mstats_leaking.go index f1cfa793..c568905c 100644 --- a/src/runtime/mstats_leaking.go +++ b/src/runtime/mstats_leaking.go @@ -1,5 +1,4 @@ //go:build gc.leaking -// +build gc.leaking package runtime diff --git a/src/runtime/nonhosted.go b/src/runtime/nonhosted.go index 010b7c4c..6b47ba8b 100644 --- a/src/runtime/nonhosted.go +++ b/src/runtime/nonhosted.go @@ -1,5 +1,4 @@ //go:build baremetal || js -// +build baremetal js package runtime diff --git a/src/runtime/os_darwin.go b/src/runtime/os_darwin.go index f18a46cf..005600e6 100644 --- a/src/runtime/os_darwin.go +++ b/src/runtime/os_darwin.go @@ -1,5 +1,4 @@ //go:build darwin -// +build darwin package runtime diff --git a/src/runtime/os_js.go b/src/runtime/os_js.go index d4000108..31ea8f5d 100644 --- a/src/runtime/os_js.go +++ b/src/runtime/os_js.go @@ -1,5 +1,4 @@ //go:build js -// +build js package runtime diff --git a/src/runtime/os_linux.go b/src/runtime/os_linux.go index 8f157265..67ae2169 100644 --- a/src/runtime/os_linux.go +++ b/src/runtime/os_linux.go @@ -1,5 +1,4 @@ //go:build linux && !baremetal && !nintendoswitch && !wasi -// +build linux,!baremetal,!nintendoswitch,!wasi package runtime diff --git a/src/runtime/os_other.go b/src/runtime/os_other.go index 93773e53..63d8153f 100644 --- a/src/runtime/os_other.go +++ b/src/runtime/os_other.go @@ -1,6 +1,4 @@ //go:build linux && (baremetal || nintendoswitch || wasi) -// +build linux -// +build baremetal nintendoswitch wasi // Other systems that aren't operating systems supported by the Go toolchain // need to pretend to be an existing operating system. Linux seems like a good diff --git a/src/runtime/runtime_arm7tdmi.go b/src/runtime/runtime_arm7tdmi.go index 5c52e4a9..4f0ad833 100644 --- a/src/runtime/runtime_arm7tdmi.go +++ b/src/runtime/runtime_arm7tdmi.go @@ -1,5 +1,4 @@ //go:build arm7tdmi -// +build arm7tdmi package runtime diff --git a/src/runtime/runtime_atmega.go b/src/runtime/runtime_atmega.go index 17c0eabe..b2e02445 100644 --- a/src/runtime/runtime_atmega.go +++ b/src/runtime/runtime_atmega.go @@ -1,5 +1,4 @@ //go:build avr && atmega -// +build avr,atmega package runtime diff --git a/src/runtime/runtime_atsamd21.go b/src/runtime/runtime_atsamd21.go index 0f411366..166df214 100644 --- a/src/runtime/runtime_atsamd21.go +++ b/src/runtime/runtime_atsamd21.go @@ -1,5 +1,4 @@ //go:build sam && atsamd21 -// +build sam,atsamd21 package runtime diff --git a/src/runtime/runtime_atsamd21e18.go b/src/runtime/runtime_atsamd21e18.go index 2ad6eae9..fd3ed84a 100644 --- a/src/runtime/runtime_atsamd21e18.go +++ b/src/runtime/runtime_atsamd21e18.go @@ -1,5 +1,4 @@ //go:build sam && atsamd21 && atsamd21e18 -// +build sam,atsamd21,atsamd21e18 package runtime diff --git a/src/runtime/runtime_atsamd21g18.go b/src/runtime/runtime_atsamd21g18.go index 46938734..d699a042 100644 --- a/src/runtime/runtime_atsamd21g18.go +++ b/src/runtime/runtime_atsamd21g18.go @@ -1,5 +1,4 @@ //go:build sam && atsamd21 && atsamd21g18 -// +build sam,atsamd21,atsamd21g18 package runtime diff --git a/src/runtime/runtime_atsamd51.go b/src/runtime/runtime_atsamd51.go index f1e585ee..f58e097e 100644 --- a/src/runtime/runtime_atsamd51.go +++ b/src/runtime/runtime_atsamd51.go @@ -1,5 +1,4 @@ //go:build (sam && atsamd51) || (sam && atsame5x) -// +build sam,atsamd51 sam,atsame5x package runtime diff --git a/src/runtime/runtime_atsamd51g19.go b/src/runtime/runtime_atsamd51g19.go index c8aed717..e0869f4b 100644 --- a/src/runtime/runtime_atsamd51g19.go +++ b/src/runtime/runtime_atsamd51g19.go @@ -1,5 +1,4 @@ //go:build sam && atsamd51 && atsamd51g19 -// +build sam,atsamd51,atsamd51g19 package runtime diff --git a/src/runtime/runtime_atsamd51j19.go b/src/runtime/runtime_atsamd51j19.go index b3e1db0f..3b202b72 100644 --- a/src/runtime/runtime_atsamd51j19.go +++ b/src/runtime/runtime_atsamd51j19.go @@ -1,5 +1,4 @@ //go:build sam && atsamd51 && atsamd51j19 -// +build sam,atsamd51,atsamd51j19 package runtime diff --git a/src/runtime/runtime_atsamd51j20.go b/src/runtime/runtime_atsamd51j20.go index af50349e..a92002e2 100644 --- a/src/runtime/runtime_atsamd51j20.go +++ b/src/runtime/runtime_atsamd51j20.go @@ -1,5 +1,4 @@ //go:build sam && atsamd51 && atsamd51j20 -// +build sam,atsamd51,atsamd51j20 package runtime diff --git a/src/runtime/runtime_atsamd51p19.go b/src/runtime/runtime_atsamd51p19.go index 07c220fc..48970573 100644 --- a/src/runtime/runtime_atsamd51p19.go +++ b/src/runtime/runtime_atsamd51p19.go @@ -1,5 +1,4 @@ //go:build sam && atsamd51 && atsamd51p19 -// +build sam,atsamd51,atsamd51p19 package runtime diff --git a/src/runtime/runtime_atsamd51p20.go b/src/runtime/runtime_atsamd51p20.go index 83562101..de7c9e69 100644 --- a/src/runtime/runtime_atsamd51p20.go +++ b/src/runtime/runtime_atsamd51p20.go @@ -1,5 +1,4 @@ //go:build sam && atsamd51 && atsamd51p20 -// +build sam,atsamd51,atsamd51p20 package runtime diff --git a/src/runtime/runtime_atsame51j19.go b/src/runtime/runtime_atsame51j19.go index 907b95be..8126e561 100644 --- a/src/runtime/runtime_atsame51j19.go +++ b/src/runtime/runtime_atsame51j19.go @@ -1,5 +1,4 @@ //go:build sam && atsame51 && atsame51j19 -// +build sam,atsame51,atsame51j19 package runtime diff --git a/src/runtime/runtime_atsame54p20.go b/src/runtime/runtime_atsame54p20.go index 34a28153..96006e0f 100644 --- a/src/runtime/runtime_atsame54p20.go +++ b/src/runtime/runtime_atsame54p20.go @@ -1,5 +1,4 @@ //go:build sam && atsame5x && atsame54p20 -// +build sam,atsame5x,atsame54p20 package runtime diff --git a/src/runtime/runtime_atsame5x_can.go b/src/runtime/runtime_atsame5x_can.go index dc1fc2ab..fb9f3a34 100644 --- a/src/runtime/runtime_atsame5x_can.go +++ b/src/runtime/runtime_atsame5x_can.go @@ -1,5 +1,4 @@ //go:build (sam && atsame51) || (sam && atsame54) -// +build sam,atsame51 sam,atsame54 package runtime diff --git a/src/runtime/runtime_attiny.go b/src/runtime/runtime_attiny.go index bb196840..6405e363 100644 --- a/src/runtime/runtime_attiny.go +++ b/src/runtime/runtime_attiny.go @@ -1,5 +1,4 @@ //go:build avr && attiny -// +build avr,attiny package runtime diff --git a/src/runtime/runtime_avr.go b/src/runtime/runtime_avr.go index 10ce1dad..aff6f789 100644 --- a/src/runtime/runtime_avr.go +++ b/src/runtime/runtime_avr.go @@ -1,5 +1,4 @@ //go:build avr -// +build avr package runtime diff --git a/src/runtime/runtime_cortexm.go b/src/runtime/runtime_cortexm.go index e718344f..55ccc7d3 100644 --- a/src/runtime/runtime_cortexm.go +++ b/src/runtime/runtime_cortexm.go @@ -1,5 +1,4 @@ //go:build cortexm -// +build cortexm package runtime diff --git a/src/runtime/runtime_cortexm_abort.go b/src/runtime/runtime_cortexm_abort.go index 584c0c22..4a02e44f 100644 --- a/src/runtime/runtime_cortexm_abort.go +++ b/src/runtime/runtime_cortexm_abort.go @@ -1,5 +1,4 @@ //go:build cortexm && !nxp && !qemu -// +build cortexm,!nxp,!qemu package runtime diff --git a/src/runtime/runtime_cortexm_hardfault.go b/src/runtime/runtime_cortexm_hardfault.go index e7eb67a9..1e264c28 100644 --- a/src/runtime/runtime_cortexm_hardfault.go +++ b/src/runtime/runtime_cortexm_hardfault.go @@ -1,5 +1,4 @@ //go:build atsamd21 || nrf51 -// +build atsamd21 nrf51 package runtime diff --git a/src/runtime/runtime_cortexm_hardfault_debug.go b/src/runtime/runtime_cortexm_hardfault_debug.go index 2ee7a496..ea6c5070 100644 --- a/src/runtime/runtime_cortexm_hardfault_debug.go +++ b/src/runtime/runtime_cortexm_hardfault_debug.go @@ -1,5 +1,4 @@ //go:build cortexm && !atsamd21 && !nrf51 -// +build cortexm,!atsamd21,!nrf51 package runtime diff --git a/src/runtime/runtime_cortexm_qemu.go b/src/runtime/runtime_cortexm_qemu.go index 458b9764..22bfee16 100644 --- a/src/runtime/runtime_cortexm_qemu.go +++ b/src/runtime/runtime_cortexm_qemu.go @@ -1,5 +1,4 @@ //go:build cortexm && qemu -// +build cortexm,qemu package runtime diff --git a/src/runtime/runtime_esp32.go b/src/runtime/runtime_esp32.go index 2b24d371..909d3cc7 100644 --- a/src/runtime/runtime_esp32.go +++ b/src/runtime/runtime_esp32.go @@ -1,5 +1,4 @@ //go:build esp32 -// +build esp32 package runtime diff --git a/src/runtime/runtime_esp32c3.go b/src/runtime/runtime_esp32c3.go index f5af66be..561ba4bf 100644 --- a/src/runtime/runtime_esp32c3.go +++ b/src/runtime/runtime_esp32c3.go @@ -1,5 +1,4 @@ //go:build esp32c3 -// +build esp32c3 package runtime diff --git a/src/runtime/runtime_esp32xx.go b/src/runtime/runtime_esp32xx.go index 08370f72..36b49965 100644 --- a/src/runtime/runtime_esp32xx.go +++ b/src/runtime/runtime_esp32xx.go @@ -1,5 +1,4 @@ //go:build esp32 || esp32c3 -// +build esp32 esp32c3 package runtime @@ -43,7 +42,10 @@ func initTimer() { // INCREASE: Count up every tick (as opposed to counting down). // DIVIDER: 16-bit prescaler, set to 2 for dividing the APB clock by two // (40MHz). + // esp.TIMG0.T0CONFIG.Set(0 << esp.TIMG_T0CONFIG_T0_EN_Pos) esp.TIMG0.T0CONFIG.Set(esp.TIMG_T0CONFIG_T0_EN | esp.TIMG_T0CONFIG_T0_INCREASE | 2<