![](/media/cache/profiles/827ccb0eea8a706c4c34a16891f84e7b.jpg.50x50_q85.jpg)
Bootload from SD card to sector 0, and jump to sector 24 where new firmware resides
Fork of Panel-Controller-Bootloader by
integer.h@0:c3a652eff606, 2015-04-21 (annotated)
- Committer:
- bonchenko
- Date:
- Tue Apr 21 09:30:11 2015 +0000
- Revision:
- 0:c3a652eff606
Able to remove flash content, write new firmware from sd card, and jump to that new firmware. But its still not running completely
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bonchenko | 0:c3a652eff606 | 1 | /*-------------------------------------------*/ |
bonchenko | 0:c3a652eff606 | 2 | /* Integer type definitions for FatFs module */ |
bonchenko | 0:c3a652eff606 | 3 | /*-------------------------------------------*/ |
bonchenko | 0:c3a652eff606 | 4 | |
bonchenko | 0:c3a652eff606 | 5 | #ifndef _INTEGER |
bonchenko | 0:c3a652eff606 | 6 | |
bonchenko | 0:c3a652eff606 | 7 | #if 0 |
bonchenko | 0:c3a652eff606 | 8 | #include <windows.h> |
bonchenko | 0:c3a652eff606 | 9 | #else |
bonchenko | 0:c3a652eff606 | 10 | |
bonchenko | 0:c3a652eff606 | 11 | #include "stm32f10x.h" |
bonchenko | 0:c3a652eff606 | 12 | |
bonchenko | 0:c3a652eff606 | 13 | /* These types must be 16-bit, 32-bit or larger integer */ |
bonchenko | 0:c3a652eff606 | 14 | typedef int INT; |
bonchenko | 0:c3a652eff606 | 15 | typedef unsigned int UINT; |
bonchenko | 0:c3a652eff606 | 16 | |
bonchenko | 0:c3a652eff606 | 17 | /* These types must be 8-bit integer */ |
bonchenko | 0:c3a652eff606 | 18 | typedef signed char CHAR; |
bonchenko | 0:c3a652eff606 | 19 | typedef unsigned char UCHAR; |
bonchenko | 0:c3a652eff606 | 20 | typedef unsigned char BYTE; |
bonchenko | 0:c3a652eff606 | 21 | |
bonchenko | 0:c3a652eff606 | 22 | /* These types must be 16-bit integer */ |
bonchenko | 0:c3a652eff606 | 23 | typedef short SHORT; |
bonchenko | 0:c3a652eff606 | 24 | typedef unsigned short USHORT; |
bonchenko | 0:c3a652eff606 | 25 | typedef unsigned short WORD; |
bonchenko | 0:c3a652eff606 | 26 | typedef unsigned short WCHAR; |
bonchenko | 0:c3a652eff606 | 27 | |
bonchenko | 0:c3a652eff606 | 28 | /* These types must be 32-bit integer */ |
bonchenko | 0:c3a652eff606 | 29 | typedef long LONG; |
bonchenko | 0:c3a652eff606 | 30 | typedef unsigned long ULONG; |
bonchenko | 0:c3a652eff606 | 31 | typedef unsigned long DWORD; |
bonchenko | 0:c3a652eff606 | 32 | |
bonchenko | 0:c3a652eff606 | 33 | /* Boolean type */ |
bonchenko | 0:c3a652eff606 | 34 | // typedef enum { FALSE = 0, TRUE } BOOL; |
bonchenko | 0:c3a652eff606 | 35 | #include <stdbool.h> |
bonchenko | 0:c3a652eff606 | 36 | typedef bool BOOL; |
bonchenko | 0:c3a652eff606 | 37 | #ifndef FALSE |
bonchenko | 0:c3a652eff606 | 38 | #define FALSE false |
bonchenko | 0:c3a652eff606 | 39 | #define TRUE true |
bonchenko | 0:c3a652eff606 | 40 | #endif |
bonchenko | 0:c3a652eff606 | 41 | |
bonchenko | 0:c3a652eff606 | 42 | |
bonchenko | 0:c3a652eff606 | 43 | #endif |
bonchenko | 0:c3a652eff606 | 44 | |
bonchenko | 0:c3a652eff606 | 45 | #define _INTEGER |
bonchenko | 0:c3a652eff606 | 46 | #endif |