forked from tormodvolden/maple-bootloader
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAJOR Initial checkin of the new bootloader (serial free), using the …
…new file tree for usb app skeletons. still some work to be done on main.c level control logic
- Loading branch information
AJM
committed
Apr 9, 2010
1 parent
c093f08
commit 5cef336
Showing
20 changed files
with
876 additions
and
1,789 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
Empty file.
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,43 @@ | ||
/* ***************************************************************************** | ||
* The MIT License | ||
* | ||
* Copyright (c) 2010 LeafLabs LLC. | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
* THE SOFTWARE. | ||
* ****************************************************************************/ | ||
|
||
/** | ||
* @file common.h | ||
* | ||
* @brief toplevel include for bootloader source files | ||
* | ||
* | ||
*/ | ||
|
||
#ifndef __COMMON_H | ||
#define __COMMON_H | ||
|
||
#include "config.h" | ||
#include "hardware.h" | ||
#include "stm32f10x_type.h" | ||
#include "cortexm3_macro.h" | ||
|
||
typedef void (*FuncPtr)(void); | ||
|
||
#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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* ***************************************************************************** | ||
* The MIT License | ||
* | ||
* Copyright (c) 2010 LeafLabs LLC. | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
* THE SOFTWARE. | ||
* ****************************************************************************/ | ||
|
||
/** | ||
* @file config.h | ||
* | ||
* @brief bootloader settings and macro defines | ||
* | ||
* | ||
*/ | ||
|
||
#ifndef __CONFIG_H | ||
#define __CONFIG_H | ||
|
||
#include "common.h" | ||
|
||
#define LED_BANK GPIOA | ||
#define LED 5 | ||
#define BLINK_FAST 0x50000 | ||
#define BLINK_SLOW 0x100000 | ||
|
||
#define BUTTON_BANK GPIOC | ||
#define BUTTON 9 | ||
|
||
#define STARTUP_BLINKS 3 | ||
#define BOOTLOADER_WAIT 2 | ||
|
||
#define USER_CODE_RAM ((u32)0x20000C00) | ||
#define USER_CODE_FLASH ((u32)0x08005000) | ||
|
||
#define VEND_ID0 0x10 | ||
#define VEND_ID1 0x01 | ||
#define PROD_ID0 0x01 | ||
#define PROD_ID1 0x10 | ||
|
||
#endif |
Oops, something went wrong.