|
| 1 | +/* |
| 2 | + * Copyright (c) 2016, Devan Lai |
| 3 | + * |
| 4 | + * Permission to use, copy, modify, and/or distribute this software |
| 5 | + * for any purpose with or without fee is hereby granted, provided |
| 6 | + * that the above copyright notice and this permission notice |
| 7 | + * appear in all copies. |
| 8 | + * |
| 9 | + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 10 | + * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 11 | + * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 12 | + * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR |
| 13 | + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
| 14 | + * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, |
| 15 | + * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN |
| 16 | + * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 17 | + */ |
| 18 | + |
| 19 | +#ifndef CONFIG_H_INCLUDED |
| 20 | +#define CONFIG_H_INCLUDED |
| 21 | + |
| 22 | +#define APP_BASE_ADDRESS 0x08004000 |
| 23 | +#define FLASH_SIZE_OVERRIDE 0x20000 |
| 24 | +#define FLASH_PAGE_SIZE 1024 |
| 25 | +#define DFU_UPLOAD_AVAILABLE 1 |
| 26 | +#define DFU_DOWNLOAD_AVAILABLE 1 |
| 27 | + |
| 28 | +#ifndef HAVE_LED |
| 29 | +#define HAVE_LED 0 |
| 30 | +#endif |
| 31 | + |
| 32 | +#ifndef HAVE_BUTTON |
| 33 | +#define HAVE_BUTTON 0 |
| 34 | +#endif |
| 35 | + |
| 36 | +#ifndef HAVE_USB_PULLUP_CONTROL |
| 37 | +#define HAVE_USB_PULLUP_CONTROL 0 |
| 38 | +#endif |
| 39 | + |
| 40 | +#define UF2_FAMILY 0x5ee21072 |
| 41 | + |
| 42 | +#undef VOLUME_LABEL |
| 43 | +#define VOLUME_LABEL "BLUEPILL" |
| 44 | +#undef PRODUCT_NAME |
| 45 | +#define PRODUCT_NAME "Blue Pill STM32F103xB" |
| 46 | +#undef BOARD_ID |
| 47 | +#define BOARD_ID "STM32F103-blue-pill-v0" |
| 48 | + |
| 49 | +#endif |
0 commit comments