Brian Silverman | 44311d6 | 2013-12-06 22:03:29 -0800 | [diff] [blame] | 1 | #ifndef CAPE_BOOTLOADER_HANDOFF_H_ |
| 2 | #define CAPE_BOOTLOADER_HANDOFF_H_ |
| 3 | |
| 4 | // This file has constants and functions for dealing with the handoff between |
| 5 | // the bootloader and the main code. |
| 6 | |
| 7 | // How much flash the bootloader has (starting at address 0). |
Brian Silverman | ed183e6 | 2013-12-18 15:51:16 -0800 | [diff] [blame] | 8 | #define BOOTLOADER_FLASH_SIZE 0x4000 |
Brian Silverman | 44311d6 | 2013-12-06 22:03:29 -0800 | [diff] [blame] | 9 | // Where the main code's flash starts. |
| 10 | #define MAIN_FLASH_START BOOTLOADER_FLASH_SIZE |
| 11 | |
Brian Silverman | 3aa0d54 | 2014-01-25 17:16:43 -0800 | [diff] [blame] | 12 | #define MAIN_FLASH_START_SECTOR 1 |
| 13 | #define MAIN_FLASH_END_SECTOR 11 |
| 14 | #define MAIN_FLASH_END 0x100000 |
| 15 | |
Brian Silverman | 44311d6 | 2013-12-06 22:03:29 -0800 | [diff] [blame] | 16 | #define RAM_START 0x20000000 |
Brian Silverman | 33b66f4 | 2013-12-06 22:29:52 -0800 | [diff] [blame] | 17 | #define RAM_SIZE 0x20000 |
Brian Silverman | 44311d6 | 2013-12-06 22:03:29 -0800 | [diff] [blame] | 18 | |
| 19 | #endif // CAPE_BOOTLOADER_HANDOFF_H_ |