You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
197 lines
5.5 KiB
197 lines
5.5 KiB
#ifndef __PINS_H___
|
|
#define __PINS_H___
|
|
|
|
#define PORT_SHIFT (16)
|
|
#define PIN_MASK (0xffff)
|
|
|
|
#define __pin__(x, y) ((x << PORT_SHIFT) | ((1 << y)))
|
|
|
|
#define PA0 __pin__('A', 0)
|
|
#define PA1 __pin__('A', 1)
|
|
#define PA2 __pin__('A', 2)
|
|
#define PA3 __pin__('A', 3)
|
|
#define PA4 __pin__('A', 4)
|
|
#define PA5 __pin__('A', 5)
|
|
#define PA6 __pin__('A', 6)
|
|
#define PA7 __pin__('A', 7)
|
|
#define PA8 __pin__('A', 8)
|
|
#define PA9 __pin__('A', 9)
|
|
#define PA10 __pin__('A', 10)
|
|
#define PA11 __pin__('A', 11)
|
|
#define PA12 __pin__('A', 12)
|
|
#define PA13 __pin__('A', 13)
|
|
#define PA14 __pin__('A', 14)
|
|
#define PA15 __pin__('A', 15)
|
|
|
|
#define PB0 __pin__('B', 0)
|
|
#define PB1 __pin__('B', 1)
|
|
#define PB2 __pin__('B', 2)
|
|
#define PB3 __pin__('B', 3)
|
|
#define PB4 __pin__('B', 4)
|
|
#define PB5 __pin__('B', 5)
|
|
#define PB6 __pin__('B', 6)
|
|
#define PB7 __pin__('B', 7)
|
|
#define PB8 __pin__('B', 8)
|
|
#define PB9 __pin__('B', 9)
|
|
#define PB10 __pin__('B', 10)
|
|
#define PB11 __pin__('B', 11)
|
|
#define PB12 __pin__('B', 12)
|
|
#define PB13 __pin__('B', 13)
|
|
#define PB14 __pin__('B', 14)
|
|
#define PB15 __pin__('B', 15)
|
|
|
|
#define PC0 __pin__('C', 0)
|
|
#define PC1 __pin__('C', 1)
|
|
#define PC2 __pin__('C', 2)
|
|
#define PC3 __pin__('C', 3)
|
|
#define PC4 __pin__('C', 4)
|
|
#define PC5 __pin__('C', 5)
|
|
#define PC6 __pin__('C', 6)
|
|
#define PC7 __pin__('C', 7)
|
|
#define PC8 __pin__('C', 8)
|
|
#define PC9 __pin__('C', 9)
|
|
#define PC10 __pin__('C', 10)
|
|
#define PC11 __pin__('C', 11)
|
|
#define PC12 __pin__('C', 12)
|
|
#define PC13 __pin__('C', 13)
|
|
#define PC14 __pin__('C', 14)
|
|
#define PC15 __pin__('C', 15)
|
|
|
|
#define PD0 __pin__('D', 0)
|
|
#define PD1 __pin__('D', 1)
|
|
#define PD2 __pin__('D', 2)
|
|
#define PD3 __pin__('D', 3)
|
|
#define PD4 __pin__('D', 4)
|
|
#define PD5 __pin__('D', 5)
|
|
#define PD6 __pin__('D', 6)
|
|
#define PD7 __pin__('D', 7)
|
|
#define PD8 __pin__('D', 8)
|
|
#define PD9 __pin__('D', 9)
|
|
#define PD10 __pin__('D', 10)
|
|
#define PD11 __pin__('D', 11)
|
|
#define PD12 __pin__('D', 12)
|
|
#define PD13 __pin__('D', 13)
|
|
#define PD14 __pin__('D', 14)
|
|
#define PD15 __pin__('D', 15)
|
|
|
|
#define PE0 __pin__('E', 0)
|
|
#define PE1 __pin__('E', 1)
|
|
#define PE2 __pin__('E', 2)
|
|
#define PE3 __pin__('E', 3)
|
|
#define PE4 __pin__('E', 4)
|
|
#define PE5 __pin__('E', 5)
|
|
#define PE6 __pin__('E', 6)
|
|
#define PE7 __pin__('E', 7)
|
|
#define PE8 __pin__('E', 8)
|
|
#define PE9 __pin__('E', 9)
|
|
#define PE10 __pin__('E', 10)
|
|
#define PE11 __pin__('E', 11)
|
|
#define PE12 __pin__('E', 12)
|
|
#define PE13 __pin__('E', 13)
|
|
#define PE14 __pin__('E', 14)
|
|
#define PE15 __pin__('E', 15)
|
|
|
|
#define PF0 __pin__('F', 0)
|
|
#define PF1 __pin__('F', 1)
|
|
#define PF2 __pin__('F', 2)
|
|
#define PF3 __pin__('F', 3)
|
|
#define PF4 __pin__('F', 4)
|
|
#define PF5 __pin__('F', 5)
|
|
#define PF6 __pin__('F', 6)
|
|
#define PF7 __pin__('F', 7)
|
|
#define PF8 __pin__('F', 8)
|
|
#define PF9 __pin__('F', 9)
|
|
#define PF10 __pin__('F', 10)
|
|
#define PF11 __pin__('F', 11)
|
|
#define PF12 __pin__('F', 12)
|
|
#define PF13 __pin__('F', 13)
|
|
#define PF14 __pin__('F', 14)
|
|
#define PF15 __pin__('F', 15)
|
|
|
|
#define PG0 __pin__('G', 0)
|
|
#define PG1 __pin__('G', 1)
|
|
#define PG2 __pin__('G', 2)
|
|
#define PG3 __pin__('G', 3)
|
|
#define PG4 __pin__('G', 4)
|
|
#define PG5 __pin__('G', 5)
|
|
#define PG6 __pin__('G', 6)
|
|
#define PG7 __pin__('G', 7)
|
|
#define PG8 __pin__('G', 8)
|
|
#define PG9 __pin__('G', 9)
|
|
#define PG10 __pin__('G', 10)
|
|
#define PG11 __pin__('G', 11)
|
|
#define PG12 __pin__('G', 12)
|
|
#define PG13 __pin__('G', 13)
|
|
#define PG14 __pin__('G', 14)
|
|
#define PG15 __pin__('G', 15)
|
|
|
|
#define PH0 __pin__('H', 0)
|
|
#define PH1 __pin__('H', 1)
|
|
#define PH2 __pin__('H', 2)
|
|
#define PH3 __pin__('H', 3)
|
|
#define PH4 __pin__('H', 4)
|
|
#define PH5 __pin__('H', 5)
|
|
#define PH6 __pin__('H', 6)
|
|
#define PH7 __pin__('H', 7)
|
|
#define PH8 __pin__('H', 8)
|
|
#define PH9 __pin__('H', 9)
|
|
#define PH10 __pin__('H', 10)
|
|
#define PH11 __pin__('H', 11)
|
|
#define PH12 __pin__('H', 12)
|
|
#define PH13 __pin__('H', 13)
|
|
#define PH14 __pin__('H', 14)
|
|
#define PH15 __pin__('H', 15)
|
|
|
|
#define PI0 __pin__('I', 0)
|
|
#define PI1 __pin__('I', 1)
|
|
#define PI2 __pin__('I', 2)
|
|
#define PI3 __pin__('I', 3)
|
|
#define PI4 __pin__('I', 4)
|
|
#define PI5 __pin__('I', 5)
|
|
#define PI6 __pin__('I', 6)
|
|
#define PI7 __pin__('I', 7)
|
|
#define PI8 __pin__('I', 8)
|
|
#define PI9 __pin__('I', 9)
|
|
#define PI10 __pin__('I', 10)
|
|
#define PI11 __pin__('I', 11)
|
|
#define PI12 __pin__('I', 12)
|
|
#define PI13 __pin__('I', 13)
|
|
#define PI14 __pin__('I', 14)
|
|
#define PI15 __pin__('I', 15)
|
|
|
|
#define PJ0 __pin__('J', 0)
|
|
#define PJ1 __pin__('J', 1)
|
|
#define PJ2 __pin__('J', 2)
|
|
#define PJ3 __pin__('J', 3)
|
|
#define PJ4 __pin__('J', 4)
|
|
#define PJ5 __pin__('J', 5)
|
|
#define PJ6 __pin__('J', 6)
|
|
#define PJ7 __pin__('J', 7)
|
|
#define PJ8 __pin__('J', 8)
|
|
#define PJ9 __pin__('J', 9)
|
|
#define PJ10 __pin__('J', 10)
|
|
#define PJ11 __pin__('J', 11)
|
|
#define PJ12 __pin__('J', 12)
|
|
#define PJ13 __pin__('J', 13)
|
|
#define PJ14 __pin__('J', 14)
|
|
#define PJ15 __pin__('J', 15)
|
|
|
|
#define PK0 __pin__('K', 0)
|
|
#define PK1 __pin__('K', 1)
|
|
#define PK2 __pin__('K', 2)
|
|
#define PK3 __pin__('K', 3)
|
|
#define PK4 __pin__('K', 4)
|
|
#define PK5 __pin__('K', 5)
|
|
#define PK6 __pin__('K', 6)
|
|
#define PK7 __pin__('K', 7)
|
|
#define PK8 __pin__('K', 8)
|
|
#define PK9 __pin__('K', 9)
|
|
#define PK10 __pin__('K', 10)
|
|
#define PK11 __pin__('K', 11)
|
|
#define PK12 __pin__('K', 12)
|
|
#define PK13 __pin__('K', 13)
|
|
#define PK14 __pin__('K', 14)
|
|
#define PK15 __pin__('K', 15)
|
|
|
|
#endif
|
|
|
|
|