github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/board_mdbt50qrx.go (about) 1 //go:build mdbt50qrx 2 3 package machine 4 5 const HasLowFrequencyCrystal = false 6 7 // GPIO Pins 8 const ( 9 D0 = P1_13 // LED1 10 D1 = P1_11 // LED2 (not populated by default) 11 D2 = P0_15 // Button 12 ) 13 14 const ( 15 LED = D0 16 ) 17 18 // MDBT50Q-RX dongle does not have pins broken out for the peripherals below, 19 // however the machine_nrf*.go implementations of I2C/SPI/etc expect the pin 20 // constants to be defined, so we are defining them all as NoPin 21 const ( 22 UART_TX_PIN = NoPin 23 UART_RX_PIN = NoPin 24 SDA_PIN = NoPin 25 SCL_PIN = NoPin 26 SPI0_SCK_PIN = NoPin 27 SPI0_SDO_PIN = NoPin 28 SPI0_SDI_PIN = NoPin 29 ) 30 31 // USB CDC identifiers 32 const ( 33 usb_STRING_PRODUCT = "Raytac MDBT50Q - RX" 34 usb_STRING_MANUFACTURER = "Raytac Corporation" 35 ) 36 37 var ( 38 usb_VID uint16 = 0x239A 39 usb_PID uint16 = 0x810B 40 )