Zerocat Chipflasher  v0.4.3 (board-edition-1)
Flash free firmware to BIOS chips, kick the Manageability Engine.
proppins.h
Go to the documentation of this file.
1 /******************************************************************/
30 #ifndef __PROPPINS_H__
31 #define __PROPPINS_H__
32 
51 //fast addressable pins 0..8
52 #define PIN_CEn 0
53 #define PIN_CEn_1 1
54 #define PIN_MOSI 2
55 #define PIN_WPn 3
56 #define PIN_SCLK3 4
57 #define PIN_SCLK2 5
58 #define PIN_SCLK1 6
59 #define PIN_SCLK0 7
60 #define PIN_MISO 8
61 //slow addressable pins
62 #define PIN_PLUGTESTn 9
63 #define PIN_PNP 10
64 #define PIN_HOLDn 12
65 #define LED_YELLOW 13
66 #define LED_ORANGE 14
67 #define LED_GREEN 15
68 #define RST_DISABLE 16
69 #define PIN_RX 31
70 #define PIN_TX 30
71 //bit values
72 #define BIT_LED_YELLOW (1 << LED_YELLOW)
73 #define BIT_LED_ORANGE (1 << LED_ORANGE)
74 #define BIT_LED_GREEN (1 << LED_GREEN)
75 #define BIT_PNP (1 << PIN_PNP)
76 #define BIT_SCLK3 (1 << PIN_SCLK3)
77 #define BIT_SCLK2 (1 << PIN_SCLK2)
78 #define BIT_SCLK1 (1 << PIN_SCLK1)
79 #define BIT_SCLK0 (1 << PIN_SCLK0)
80 #define BIT_WPn (1 << PIN_WPn)
81 #define BIT_MISO (1 << PIN_MISO)
82 #define BIT_CEn (1 << PIN_CEn)
83 #define BIT_CEn_1 (1 << PIN_CEn_1)
84 #define BIT_HOLDn (1 << PIN_HOLDn)
85 #define BIT_MOSI (1 << PIN_MOSI)
86 #define BIT_PLUGTESTn (1 << PIN_PLUGTESTn)
87 
88 #define BIT_PNP_DEVICE BIT_PNP
89 #define CEn_AVAIL (BIT_CEn | BIT_CEn_1)
90 #define SCLK_AVAIL (BIT_SCLK0 | BIT_SCLK1 | BIT_SCLK2 | BIT_SCLK3)
91 #define SPI_BUS (CEn_AVAIL | BIT_MOSI | BIT_WPn | BIT_HOLDn | SCLK_AVAIL | BIT_MISO)
92 
102 #define SCLK_ACTIVE (BIT_SCLK0 | BIT_SCLK1 | BIT_SCLK2 | BIT_SCLK3)
103 
105 #endif
106 /* __PROPPINS_H__ */