p igmon
/
uGen4x
PCM Digital Synthesizer
from_save.h@0:ad6637c36dc7, 2016-09-02 (annotated)
- Committer:
- p_igmon
- Date:
- Fri Sep 02 13:24:16 2016 +0000
- Revision:
- 0:ad6637c36dc7
for Micro Gen4 Synthesizer
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
p_igmon | 0:ad6637c36dc7 | 1 | /* |
p_igmon | 0:ad6637c36dc7 | 2 | Sector 0 0x0800 0000 - 0x0800 3FFF 16 Kbytes |
p_igmon | 0:ad6637c36dc7 | 3 | Sector 1 0x0800 4000 - 0x0800 7FFF 16 Kbytes |
p_igmon | 0:ad6637c36dc7 | 4 | Sector 2 0x0800 8000 - 0x0800 BFFF 16 Kbytes |
p_igmon | 0:ad6637c36dc7 | 5 | Sector 3 0x0800 C000 - 0x0800 FFFF 16 Kbytes |
p_igmon | 0:ad6637c36dc7 | 6 | Sector 4 0x0801 0000 - 0x0801 FFFF 64 Kbytes |
p_igmon | 0:ad6637c36dc7 | 7 | Sector 5 0x0802 0000 - 0x0803 FFFF 128 Kbytes |
p_igmon | 0:ad6637c36dc7 | 8 | Sector 6 0x0804 0000 - 0x0805 FFFF 128 Kbytes |
p_igmon | 0:ad6637c36dc7 | 9 | Sector 7 0x0806 0000 - 0x0807 FFFF 128 Kbytes |
p_igmon | 0:ad6637c36dc7 | 10 | */ |
p_igmon | 0:ad6637c36dc7 | 11 | #define Flash_Sector0_Address (uint32_t *)0x08000000 |
p_igmon | 0:ad6637c36dc7 | 12 | #define Flash_Sector1_Address (uint32_t *)0x08004000 |
p_igmon | 0:ad6637c36dc7 | 13 | #define Flash_Sector2_Address (uint32_t *)0x08008000 |
p_igmon | 0:ad6637c36dc7 | 14 | #define Flash_Sector3_Address (uint32_t *)0x0800C000 |
p_igmon | 0:ad6637c36dc7 | 15 | #define Flash_Sector4_Address (uint32_t *)0x08010000 |
p_igmon | 0:ad6637c36dc7 | 16 | #define Flash_Sector5_Address (uint32_t *)0x08020000 |
p_igmon | 0:ad6637c36dc7 | 17 | #define Flash_Sector6_Address (uint32_t *)0x08040000 |
p_igmon | 0:ad6637c36dc7 | 18 | #define Flash_Sector7_Address (uint32_t *)0x08060000 |
p_igmon | 0:ad6637c36dc7 | 19 | |
p_igmon | 0:ad6637c36dc7 | 20 | #define ALIGNMENT4_INC(_X_) (((_X_)+3)&~3) |
p_igmon | 0:ad6637c36dc7 | 21 | |
p_igmon | 0:ad6637c36dc7 | 22 | #define Flash_Wave_Address Flash_Sector3_Address |
p_igmon | 0:ad6637c36dc7 | 23 | #define Flash_Wave_Len 3600 |
p_igmon | 0:ad6637c36dc7 | 24 | #define Flash_System_Address (uint32_t *)0x0800ce10 |
p_igmon | 0:ad6637c36dc7 | 25 | |
p_igmon | 0:ad6637c36dc7 | 26 | #define Flash_PresetVoice_Address (uint32_t *)0x0800d000 |
p_igmon | 0:ad6637c36dc7 | 27 | #define Flash_PresetVoice_Len 4096 |
p_igmon | 0:ad6637c36dc7 | 28 | #define Flash_Generator_Address (uint32_t *)0x0800e000 |
p_igmon | 0:ad6637c36dc7 | 29 | #define Flash_Generator_Len 8192 |
p_igmon | 0:ad6637c36dc7 | 30 | |
p_igmon | 0:ad6637c36dc7 | 31 | #define Flash_WaveData_Address Flash_Sector4_Address |
p_igmon | 0:ad6637c36dc7 | 32 | |
p_igmon | 0:ad6637c36dc7 | 33 | |
p_igmon | 0:ad6637c36dc7 | 34 | void FROM_WriteBlock(uint32_t MemAddress , uint32_t FromAddress ,uint32_t datalength); |
p_igmon | 0:ad6637c36dc7 | 35 | void save2from(void); |
p_igmon | 0:ad6637c36dc7 | 36 | void FROM_ReadBlock(uint32_t *MemAddress , uint32_t *FromAddress ,int datalength); |
p_igmon | 0:ad6637c36dc7 | 37 | void load2from(void); |
p_igmon | 0:ad6637c36dc7 | 38 | void dump2serial(void); |
p_igmon | 0:ad6637c36dc7 | 39 | |
p_igmon | 0:ad6637c36dc7 | 40 | |
p_igmon | 0:ad6637c36dc7 | 41 |