github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/board_particle_boron.go (about) 1 //go:build particle_boron 2 3 package machine 4 5 const HasLowFrequencyCrystal = true 6 7 // More info: https://docs.particle.io/datasheets/cellular/boron-datasheet/ 8 // Board diagram: https://docs.particle.io/assets/images/boron/boron-block-diagram.png 9 10 // GPIOs 11 const ( 12 A0 Pin = 3 13 A1 Pin = 4 14 A2 Pin = 28 15 A3 Pin = 29 16 A4 Pin = 30 17 A5 Pin = 31 18 D0 Pin = 26 // Also SDA 19 D1 Pin = 27 // Also SCL 20 D2 Pin = 33 21 D3 Pin = 34 22 D4 Pin = 40 23 D5 Pin = 42 24 D6 Pin = 43 25 D7 Pin = 44 // Also LED 26 D8 Pin = 35 27 D9 Pin = 6 // Also TX 28 D10 Pin = 8 // Also RX 29 D11 Pin = 46 // Also SDI 30 D12 Pin = 45 // Also SDO 31 D13 Pin = 47 // Also SCK 32 ) 33 34 // LEDs 35 const ( 36 LED Pin = 44 37 LED_GREEN Pin = 14 38 LED_RED Pin = 13 39 LED_BLUE Pin = 15 40 ) 41 42 // UART 43 var ( 44 DefaultUART = UART0 45 ) 46 47 const ( 48 UART_TX_PIN Pin = 6 49 UART_RX_PIN Pin = 8 50 ) 51 52 // I2C pins 53 const ( 54 SDA_PIN Pin = 26 55 SCL_PIN Pin = 27 56 57 // Internal I2C with MAX17043 (Fuel gauge) and BQ24195 (Power management) chips on it 58 SDA1_PIN Pin = 24 59 SCL1_PIN Pin = 41 60 INT1_PIN Pin = 5 61 ) 62 63 // SPI pins 64 const ( 65 SPI0_SCK_PIN Pin = 47 66 SPI0_SDO_PIN Pin = 45 67 SPI0_SDI_PIN Pin = 46 68 ) 69 70 // Internal 4MB SPI Flash 71 const ( 72 SPI1_SCK_PIN Pin = 19 73 SPI1_SDO_PIN Pin = 20 74 SPI1_SDI_PIN Pin = 21 75 SPI1_CS_PIN Pin = 17 76 SPI1_WP_PIN Pin = 22 77 SPI1_HOLD_PIN Pin = 23 78 ) 79 80 // u-blox SARA coprocessor 81 const ( 82 SARA_TXD_PIN Pin = 37 83 SARA_RXD_PIN Pin = 36 84 SARA_CTS_PIN Pin = 38 85 SARA_RTS_PIN Pin = 39 86 SARA_RESET_PIN Pin = 12 87 SARA_POWER_ON_PIN Pin = 16 88 SARA_BUFF_EN_PIN Pin = 25 89 SARA_VINT_PIN Pin = 2 90 ) 91 92 // Other peripherals 93 const ( 94 MODE_BUTTON_PIN Pin = 11 95 ANTENNA_SEL_PIN Pin = 7 // Low: chip antenna, High: External uFL 96 NFC1_PIN Pin = 9 97 NFC2_PIN Pin = 10 98 ) 99 100 // USB CDC identifiers 101 const ( 102 usb_STRING_PRODUCT = "Boron" 103 usb_STRING_MANUFACTURER = "Particle" 104 ) 105 106 var ( 107 usb_VID uint16 = 0x2B04 108 usb_PID uint16 = 0xD00D 109 )