github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/board_pca10059.go (about) 1 //go:build pca10059 2 3 package machine 4 5 // The PCA10040 has a low-frequency (32kHz) crystal oscillator on board. 6 const HasLowFrequencyCrystal = true 7 8 // LEDs on the PCA10059 (nRF52840 dongle) 9 const ( 10 LED1 Pin = 6 11 LED2 Pin = 8 12 LED3 Pin = (1 << 5) | 9 13 LED4 Pin = 12 14 LED Pin = LED1 15 ) 16 17 // Buttons on the PCA10059 (nRF52840 dongle) 18 const ( 19 BUTTON1 Pin = (1 << 5) | 6 20 BUTTON Pin = BUTTON1 21 ) 22 23 // ADC pins 24 const ( 25 ADC1 Pin = 2 26 ADC2 Pin = 4 27 ADC3 Pin = 29 28 ADC4 Pin = 31 29 ) 30 31 // UART pins 32 const ( 33 UART_TX_PIN Pin = NoPin 34 UART_RX_PIN Pin = NoPin 35 ) 36 37 // I2C pins (unused) 38 const ( 39 SDA_PIN = NoPin 40 SCL_PIN = NoPin 41 ) 42 43 // SPI pins (unused) 44 const ( 45 SPI0_SCK_PIN = NoPin 46 SPI0_SDO_PIN = NoPin 47 SPI0_SDI_PIN = NoPin 48 ) 49 50 // USB CDC identifiers 51 const ( 52 usb_STRING_PRODUCT = "nRF52840 Dongle" 53 usb_STRING_MANUFACTURER = "Nordic Semiconductor ASA" 54 ) 55 56 var ( 57 usb_VID uint16 = 0x1915 58 usb_PID uint16 = 0xCAFE 59 )