github.com/aykevl/tinygo@v0.5.0/src/machine/board_stm32f4disco.go (about) 1 // +build stm32,stm32f4disco 2 3 package machine 4 5 const ( 6 PA0 = portA + 0 7 PA1 = portA + 1 8 PA2 = portA + 2 9 PA3 = portA + 3 10 PA4 = portA + 4 11 PA5 = portA + 5 12 PA6 = portA + 6 13 PA7 = portA + 7 14 PA8 = portA + 8 15 PA9 = portA + 9 16 PA10 = portA + 10 17 PA11 = portA + 11 18 PA12 = portA + 12 19 PA13 = portA + 13 20 PA14 = portA + 14 21 PA15 = portA + 15 22 23 PB0 = portB + 0 24 PB1 = portB + 1 25 PB2 = portB + 2 26 PB3 = portB + 3 27 PB4 = portB + 4 28 PB5 = portB + 5 29 PB6 = portB + 6 30 PB7 = portB + 7 31 PB8 = portB + 8 32 PB9 = portB + 9 33 PB10 = portB + 10 34 PB11 = portB + 11 35 PB12 = portB + 12 36 PB13 = portB + 13 37 PB14 = portB + 14 38 PB15 = portB + 15 39 40 PC0 = portC + 0 41 PC1 = portC + 1 42 PC2 = portC + 2 43 PC3 = portC + 3 44 PC4 = portC + 4 45 PC5 = portC + 5 46 PC6 = portC + 6 47 PC7 = portC + 7 48 PC8 = portC + 8 49 PC9 = portC + 9 50 PC10 = portC + 10 51 PC11 = portC + 11 52 PC12 = portC + 12 53 PC13 = portC + 13 54 PC14 = portC + 14 55 PC15 = portC + 15 56 57 PD0 = portD + 0 58 PD1 = portD + 1 59 PD2 = portD + 2 60 PD3 = portD + 3 61 PD4 = portD + 4 62 PD5 = portD + 5 63 PD6 = portD + 6 64 PD7 = portD + 7 65 PD8 = portD + 8 66 PD9 = portD + 9 67 PD10 = portD + 10 68 PD11 = portD + 11 69 PD12 = portD + 12 70 PD13 = portD + 13 71 PD14 = portD + 14 72 PD15 = portD + 15 73 74 PE0 = portE + 0 75 PE1 = portE + 1 76 PE2 = portE + 2 77 PE3 = portE + 3 78 PE4 = portE + 4 79 PE5 = portE + 5 80 PE6 = portE + 6 81 PE7 = portE + 7 82 PE8 = portE + 8 83 PE9 = portE + 9 84 PE10 = portE + 10 85 PE11 = portE + 11 86 PE12 = portE + 12 87 PE13 = portE + 13 88 PE14 = portE + 14 89 PE15 = portE + 15 90 91 PH0 = portH + 0 92 PH1 = portH + 1 93 ) 94 95 const ( 96 LED = LED_BUILTIN 97 LED1 = LED_GREEN 98 LED2 = LED_ORANGE 99 LED3 = LED_RED 100 LED4 = LED_BLUE 101 LED_BUILTIN = LED_GREEN 102 LED_GREEN = PD12 103 LED_ORANGE = PD13 104 LED_RED = PD14 105 LED_BLUE = PD15 106 ) 107 108 // UART pins 109 const ( 110 UART_TX_PIN = PA2 111 UART_RX_PIN = PA3 112 )