github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/board_arduino_mega1280.go (about) 1 //go:build arduino_mega1280 2 3 package machine 4 5 // Return the current CPU frequency in hertz. 6 func CPUFrequency() uint32 { 7 return 16000000 8 } 9 10 const ( 11 A0 Pin = PF0 12 A1 Pin = PF1 13 A2 Pin = PF2 14 A3 Pin = PF3 15 A4 Pin = PF4 16 A5 Pin = PF5 17 A6 Pin = PF6 18 A7 Pin = PF7 19 A8 Pin = PK0 20 A9 Pin = PK1 21 A10 Pin = PK2 22 A11 Pin = PK3 23 A12 Pin = PK4 24 A13 Pin = PK5 25 A14 Pin = PK6 26 A15 Pin = PK7 27 28 // Analog Input 29 ADC0 Pin = PF0 30 ADC1 Pin = PF1 31 ADC2 Pin = PF2 32 ADC3 Pin = PF3 33 ADC4 Pin = PF4 34 ADC5 Pin = PF5 35 ADC6 Pin = PF6 36 ADC7 Pin = PF7 37 ADC8 Pin = PK0 38 ADC9 Pin = PK1 39 ADC10 Pin = PK2 40 ADC11 Pin = PK3 41 ADC12 Pin = PK4 42 ADC13 Pin = PK5 43 ADC14 Pin = PK6 44 ADC15 Pin = PK7 45 46 // Digital pins 47 D0 Pin = PE0 48 D1 Pin = PE1 49 D2 Pin = PE4 50 D3 Pin = PE5 51 D4 Pin = PG5 52 D5 Pin = PE3 53 D6 Pin = PH3 54 D7 Pin = PH4 55 D8 Pin = PH5 56 D9 Pin = PH6 57 D10 Pin = PB4 58 D11 Pin = PB5 59 D12 Pin = PB6 60 D13 Pin = PB7 61 D14 Pin = PJ1 62 D15 Pin = PJ0 63 D16 Pin = PH1 64 D17 Pin = PH0 65 D18 Pin = PD3 66 D19 Pin = PD2 67 D20 Pin = PD1 68 D21 Pin = PD0 69 D22 Pin = PA0 70 D23 Pin = PA1 71 D24 Pin = PA2 72 D25 Pin = PA3 73 D26 Pin = PA4 74 D27 Pin = PA5 75 D28 Pin = PA6 76 D29 Pin = PA7 77 D30 Pin = PC7 78 D31 Pin = PC6 79 D32 Pin = PC5 80 D33 Pin = PC4 81 D34 Pin = PC3 82 D35 Pin = PC2 83 D36 Pin = PC1 84 D37 Pin = PC0 85 D38 Pin = PD7 86 D39 Pin = PG2 87 D40 Pin = PG1 88 D41 Pin = PG0 89 D42 Pin = PL7 90 D43 Pin = PL6 91 D44 Pin = PL5 92 D45 Pin = PL4 93 D46 Pin = PL3 94 D47 Pin = PL2 95 D48 Pin = PL1 96 D49 Pin = PL0 97 D50 Pin = PB3 98 D51 Pin = PB2 99 D52 Pin = PB1 100 D53 Pin = PB0 101 102 AREF Pin = NoPin 103 LED Pin = PB7 104 )