github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/board_nrf52840-mdk-usb-dongle.go (about) 1 //go:build nrf52840_mdk_usb_dongle 2 3 package machine 4 5 const HasLowFrequencyCrystal = true 6 7 // LEDs on the nrf52840-mdk-usb-dongle 8 const ( 9 LED Pin = LED_GREEN 10 LED_GREEN Pin = 22 11 LED_RED Pin = 23 12 LED_BLUE Pin = 24 13 ) 14 15 // RESET/USR button, depending on value of PSELRESET UICR register 16 const ( 17 BUTTON Pin = 18 18 ) 19 20 // UART pins 21 const ( 22 UART_TX_PIN Pin = NoPin 23 UART_RX_PIN Pin = NoPin 24 ) 25 26 // I2C pins (unused) 27 const ( 28 SDA_PIN = NoPin 29 SCL_PIN = NoPin 30 ) 31 32 // SPI pins (unused) 33 const ( 34 SPI0_SCK_PIN = NoPin 35 SPI0_SDO_PIN = NoPin 36 SPI0_SDI_PIN = NoPin 37 ) 38 39 // USB CDC identifiers 40 const ( 41 usb_STRING_PRODUCT = "Makerdiary nRF52840 MDK USB Dongle" 42 usb_STRING_MANUFACTURER = "Nordic Semiconductor ASA" 43 ) 44 45 var ( 46 usb_VID uint16 = 0x1915 47 usb_PID uint16 = 0xCAFE 48 )