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

     1  //go:build nrf52840_mdk
     2  
     3  package machine
     4  
     5  const HasLowFrequencyCrystal = true
     6  
     7  // LEDs on the nrf52840-mdk (nRF52840 dev board)
     8  const (
     9  	LED_GREEN Pin = 22
    10  	LED_RED   Pin = 23
    11  	LED_BLUE  Pin = 24
    12  	LED       Pin = LED_GREEN
    13  )
    14  
    15  // UART pins
    16  const (
    17  	UART_TX_PIN Pin = 20
    18  	UART_RX_PIN Pin = 19
    19  )
    20  
    21  // I2C pins (unused)
    22  const (
    23  	SDA_PIN = NoPin
    24  	SCL_PIN = NoPin
    25  )
    26  
    27  // SPI pins (unused)
    28  const (
    29  	SPI0_SCK_PIN = NoPin
    30  	SPI0_SDO_PIN = NoPin
    31  	SPI0_SDI_PIN = NoPin
    32  )
    33  
    34  // USB CDC identifiers
    35  const (
    36  	usb_STRING_PRODUCT      = "Makerdiary nRF52840 MDK"
    37  	usb_STRING_MANUFACTURER = "Nordic Semiconductor ASA"
    38  )
    39  
    40  var (
    41  	usb_VID uint16 = 0x1915
    42  	usb_PID uint16 = 0xCAFE
    43  )