comparison target-utils/calversion/leadapi.h @ 441:1dcc9e4b71fd

target-utils/calversion: program written, compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 26 Dec 2018 06:40:02 +0000
parents
children
comparison
equal deleted inserted replaced
440:44f73d56b6f5 441:1dcc9e4b71fd
1 /*
2 * Definitions for the DSP boot and patch download mechanism,
3 * taken from leadapi.h in TCS211.
4 */
5
6 #define APIF_ADDR 0xFFD00000L
7 #define BASE_API_ARM APIF_ADDR /* API RAM for ARM */
8 #define BASE_API_LEAD 0xE000 /* API RAM for Lead */
9
10 #define DOWNLOAD_EXT_PAGE (APIF_ADDR + 0x0FF8) /* Address of the extended DSP page of the */
11 #define DOWNLOAD_SIZE (APIF_ADDR + 0x0FFA) /* Address of the download size variable */
12 #define DOWNLOAD_ADDR (APIF_ADDR + 0x0FFC) /* Address of the download address variable */
13 #define DOWNLOAD_STATUS (APIF_ADDR + 0x0FFE) /* Address of the download status variable */
14
15 /* Maximum size of a block which can be copied into the API RAM */
16
17 #define MAX_BLOCK_SIZE 0x7F0
18 #define MAX_UINT 65535
19
20 /* Possible values for the download status */
21
22 #define LEAD_READY 1
23 #define BLOCK_READY 2
24 #define PROGRAM_DONE 3
25 #define PAGE_SELECTION 4