github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/machine_generic_peripherals.go (about)

     1  //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
     2  
     3  package machine
     4  
     5  // These peripherals are defined separately so that they can be excluded on
     6  // boards that define their peripherals in the board file (e.g. board_qtpy.go).
     7  
     8  var (
     9  	UART0 = hardwareUART0
    10  	UART1 = hardwareUART1
    11  	SPI0  = SPI{0}
    12  	SPI1  = SPI{1}
    13  	I2C0  = &I2C{0}
    14  )