|
89 | 89 | #define BUTTON_PRESSED_STATE 1 |
90 | 90 | */ |
91 | 91 |
|
92 | | -#if defined TARGET_MAPLE_MINI |
| 92 | +#if defined TARGET_FRANKENMAPLE |
93 | 93 |
|
94 | 94 | #define HAS_MAPLE_HARDWARE 1 |
95 | 95 |
|
96 | | - #define LED_BANK GPIOB |
97 | | - #define LED_PIN 1 |
| 96 | + #define LED_BANK GPIOC |
| 97 | + #define LED_PIN 13 |
98 | 98 | #define LED_ON_STATE 1 |
99 | 99 |
|
100 | | - /* On the Mini, BUT is PB8 */ |
| 100 | + |
| 101 | + /* |
101 | 102 | #define BUTTON_BANK GPIOB |
102 | 103 | #define BUTTON_PIN 8 |
103 | 104 | #define BUTTON_PRESSED_STATE 1 |
| 105 | + */ |
104 | 106 |
|
105 | 107 | /* USB Disc Pin Setup. USB DISC is PB9 */ |
106 | 108 | #define USB_DISC_BANK GPIOB |
107 | 109 | #define USB_DISC 9 |
108 | 110 |
|
109 | | -#elif defined TARGET_MAPLE_REV3 |
110 | | - |
111 | | - #warning "Target MAPLE_REV3" |
112 | | - |
113 | | -// Flag that this type of board has the custom maple disconnect hardware |
114 | | - #define HAS_MAPLE_HARDWARE 1 |
115 | | - |
116 | | - #define LED_BANK GPIOB |
117 | | - #define LED_PIN 1 |
118 | | - #define LED_ON_STATE 1 |
119 | | - |
120 | | - #define BUTTON_BANK GPIOB |
121 | | - #define BUTTON_PIN 8 |
122 | | - #define BUTTON_PRESSED_STATE 1 |
123 | | - |
124 | | - /* USB Disc Pin Setup. USB DISC is PB9 */ |
125 | | - #define USB_DISC_BANK GPIOB |
126 | | - #define USB_DISC 9 |
127 | | - |
128 | | -#elif defined TARGET_MAPLE_REV5 |
129 | 111 |
|
130 | | -// Flag that this type of board has the custom maple disconnect hardware |
131 | | - #define HAS_MAPLE_HARDWARE 1 |
132 | | - |
133 | | - #define LED_BANK GPIOA |
134 | | - #define LED_PIN 5 |
135 | | - #define LED_ON_STATE 0 |
136 | | - |
137 | | - /* On the Mini, BUT is PB8 */ |
138 | | - #define BUTTON_BANK GPIOC |
139 | | - #define BUTTON_PIN 9 |
140 | | - |
141 | | - /* USB Disc Pin Setup. USB DISC is PB9 */ |
142 | | - #define USB_DISC_BANK GPIOB |
143 | | - #define USB_DISC 9 |
144 | | - |
145 | 112 | #elif defined TARGET_GENERIC_F103_PC13 |
146 | 113 |
|
147 | 114 | #define LED_BANK GPIOC |
|
153 | 120 | // #define BUTTON_BANK GPIOC |
154 | 121 | // #define BUTTON_PIN 14 |
155 | 122 | // #define BUTTON_PRESSED_STATE 1 |
156 | | - |
157 | | - |
158 | | -#elif defined TARGET_GENERIC_F103_PG15 |
159 | | - |
160 | | - #define LED_BANK GPIOG |
161 | | - #define LED_PIN 15 |
162 | | - #define LED_ON_STATE 1 |
163 | | - |
164 | | - // Button (if you have one) |
165 | | - #define BUTTON_BANK GPIOC |
166 | | - #define BUTTON_PIN 14 |
167 | | - #define BUTTON_PRESSED_STATE 1 |
168 | | - |
169 | | -#elif defined TARGET_GENERIC_F103_PD2 |
170 | | - |
171 | | - #define LED_BANK GPIOD |
172 | | - #define LED_PIN 2 |
173 | | - #define LED_ON_STATE 1 |
174 | | - |
175 | | - // Button (if you have one) |
176 | | - #define BUTTON_BANK GPIOC |
177 | | - #define BUTTON_PIN 14 |
178 | | - #define BUTTON_PRESSED_STATE 1 |
179 | | - |
180 | | -#elif defined TARGET_GENERIC_F103_PD1 |
181 | | - |
182 | | - #define LED_BANK GPIOD |
183 | | - #define LED_PIN 1 |
184 | | - #define LED_ON_STATE 1 |
185 | | - |
186 | | - // Button (if you have one) |
187 | | - #define BUTTON_BANK GPIOC |
188 | | - #define BUTTON_PIN 14 |
189 | | - #define BUTTON_PRESSED_STATE 1 |
190 | | - |
191 | | -#elif defined TARGET_GENERIC_F103_PA1 |
192 | | - |
193 | | - #define LED_BANK GPIOA |
194 | | - #define LED_PIN 1 |
195 | | - #define LED_ON_STATE 1 |
196 | | - |
197 | | - // Button (if you have one) |
198 | | - #define BUTTON_BANK GPIOC |
199 | | - #define BUTTON_PIN 14 |
200 | | - #define BUTTON_PRESSED_STATE 1 |
201 | | - |
202 | | -#elif defined TARGET_GENERIC_F103_PB9 |
203 | | - |
204 | | - #define LED_BANK GPIOB |
205 | | - #define LED_PIN 9 |
206 | | - #define LED_ON_STATE 1 |
207 | | - |
208 | | - // Button (if you have one) |
209 | | - #define BUTTON_BANK GPIOC |
210 | | - #define BUTTON_PIN 14 |
211 | | - #define BUTTON_PRESSED_STATE 1 |
212 | | - |
213 | | -#elif defined TARGET_GENERIC_F103_PE2 |
214 | | - |
215 | | - #define LED_BANK GPIOE |
216 | | - #define LED_PIN 2 |
217 | | - #define LED_ON_STATE 1 |
218 | | - |
| 123 | + |
219 | 124 | #else |
220 | 125 | #error "No config for this target" |
221 | 126 | #endif |
|
0 commit comments