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.
 
 
 
 
 

94 lines
2.4 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 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 PF9 __pin__('F', 9)
#define PF10 __pin__('F', 10)
#define PF11 __pin__('F', 11)
#define PG5 __pin__('G', 5)
#define PG6 __pin__('G', 6)
#define PG7 __pin__('G', 7)
#define PG10 __pin__('G', 10)
#define PG12 __pin__('G', 12)
#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 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)
#endif