-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
52 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright (c) 2016, Devan Lai | ||
* | ||
* Permission to use, copy, modify, and/or distribute this software | ||
* for any purpose with or without fee is hereby granted, provided | ||
* that the above copyright notice and this permission notice | ||
* appear in all copies. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL | ||
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED | ||
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE | ||
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR | ||
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, | ||
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | ||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
*/ | ||
|
||
#ifndef CONFIG_H_INCLUDED | ||
#define CONFIG_H_INCLUDED | ||
|
||
#define APP_BASE_ADDRESS 0x08004000 | ||
#define FLASH_SIZE_OVERRIDE 0x20000 | ||
#define FLASH_PAGE_SIZE 1024 | ||
#define DFU_UPLOAD_AVAILABLE 1 | ||
#define DFU_DOWNLOAD_AVAILABLE 1 | ||
|
||
#ifndef HAVE_LED | ||
#define HAVE_LED 0 | ||
#endif | ||
|
||
#ifndef HAVE_BUTTON | ||
#define HAVE_BUTTON 0 | ||
#endif | ||
|
||
#ifndef HAVE_USB_PULLUP_CONTROL | ||
#define HAVE_USB_PULLUP_CONTROL 0 | ||
#endif | ||
|
||
#define UF2_FAMILY 0x5ee21072 | ||
|
||
#undef VOLUME_LABEL | ||
#define VOLUME_LABEL "BLUEPILL" | ||
#undef PRODUCT_NAME | ||
#define PRODUCT_NAME "Blue Pill STM32F103xB" | ||
#undef BOARD_ID | ||
#define BOARD_ID "STM32F103-blue-pill-v0" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,4 @@ | |
|
||
#define UF2_FAMILY 0x5ee21072 | ||
|
||
#undef VOLUME_LABEL | ||
#define VOLUME_LABEL "BLUEPILL" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
#define PRODUCT_NAME "STM32 Board" | ||
#define BOARD_ID "STM32F103-generic-v0" | ||
#define INDEX_URL "https://pxt.io" | ||
#define INDEX_URL "https://maker.makecode.com" | ||
#define UF2_NUM_BLOCKS 8000 | ||
#define VOLUME_LABEL "ARCADE" | ||
#define VOLUME_LABEL "STM32" | ||
// where the UF2 files are allowed to write data - we allow MBR, since it seems part of the softdevice .hex file | ||
#define USER_FLASH_START (uint32_t)(APP_BASE_ADDRESS) | ||
#define USER_FLASH_END (0x08000000+FLASH_SIZE_OVERRIDE) | ||
|