|
143 | 143 | #define USER_CODE_RAM ((u32)0x20000C00) |
144 | 144 | #define RAM_END ((u32)0x20005000) |
145 | 145 |
|
146 | | -#elif defined TARGET_GENERIC_F103 |
147 | | - #warning "Target TARGET_GENERIC_F103" |
| 146 | +#elif defined TARGET_GENERIC_F103_PC13 |
148 | 147 |
|
149 | | -// LED now defined in the make file |
| 148 | + #define LED_BANK GPIOC |
| 149 | + #define LED_PIN 13 |
| 150 | + #define LED_ON_STATE 0 |
150 | 151 |
|
151 | | - // this is fairly meaningless on generic boards, but change this if you want to use a button |
| 152 | + // Button (if you have one) |
152 | 153 | #define BUTTON_BANK GPIOC |
153 | 154 | #define BUTTON 14 |
154 | 155 |
|
155 | 156 | /* Generic boards don't have disconnect hardware, so we drive PA12 which is connected to the usb D+ line*/ |
156 | 157 | #define USB_DISC_BANK GPIOA |
157 | 158 | #define USB_DISC 12 |
158 | 159 |
|
| 160 | + // Ram stuff not really needed any more |
159 | 161 | #define USER_CODE_RAM ((u32)0x20000C00) |
160 | 162 | #define RAM_END ((u32)0x20005000) |
| 163 | + |
| 164 | +#elif defined TARGET_GENERIC_F103_PG15 |
| 165 | + |
| 166 | + #define LED_BANK GPIOG |
| 167 | + #define LED_PIN 15 |
| 168 | + #define LED_ON_STATE 1 |
| 169 | + |
| 170 | + // Button (if you have one) |
| 171 | + #define BUTTON_BANK GPIOC |
| 172 | + #define BUTTON 14 |
| 173 | + |
| 174 | + /* Generic boards don't have disconnect hardware, so we drive PA12 which is connected to the usb D+ line*/ |
| 175 | + #define USB_DISC_BANK GPIOA |
| 176 | + #define USB_DISC 12 |
| 177 | + |
| 178 | + // Ram stuff not really needed any more |
| 179 | + #define USER_CODE_RAM ((u32)0x20000C00) |
| 180 | + #define RAM_END ((u32)0x20005000) |
| 181 | + |
| 182 | +#elif defined TARGET_GENERIC_F103_PD2 |
| 183 | + |
| 184 | + #define LED_BANK GPIOD |
| 185 | + #define LED_PIN 2 |
| 186 | + #define LED_ON_STATE 1 |
| 187 | + |
| 188 | + // Button (if you have one) |
| 189 | + #define BUTTON_BANK GPIOC |
| 190 | + #define BUTTON 14 |
| 191 | + |
| 192 | + /* Generic boards don't have disconnect hardware, so we drive PA12 which is connected to the usb D+ line*/ |
| 193 | + #define USB_DISC_BANK GPIOA |
| 194 | + #define USB_DISC 12 |
| 195 | + |
| 196 | + // Ram stuff not really needed any more |
| 197 | + #define USER_CODE_RAM ((u32)0x20000C00) |
| 198 | + #define RAM_END ((u32)0x20005000) |
| 199 | + |
| 200 | +#elif defined TARGET_GENERIC_F103_PD1 |
| 201 | + |
| 202 | + #define LED_BANK GPIOD |
| 203 | + #define LED_PIN 1 |
| 204 | + #define LED_ON_STATE 1 |
| 205 | + |
| 206 | + // Button (if you have one) |
| 207 | + #define BUTTON_BANK GPIOC |
| 208 | + #define BUTTON 14 |
| 209 | + |
| 210 | + /* Generic boards don't have disconnect hardware, so we drive PA12 which is connected to the usb D+ line*/ |
| 211 | + #define USB_DISC_BANK GPIOA |
| 212 | + #define USB_DISC 12 |
| 213 | + |
| 214 | + // Ram stuff not really needed any more |
| 215 | + #define USER_CODE_RAM ((u32)0x20000C00) |
| 216 | + #define RAM_END ((u32)0x20005000) |
| 217 | + |
161 | 218 | #else |
162 | 219 |
|
163 | 220 | #error "No config for this target" |
|
0 commit comments