OpenOCD
ocl.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Copyright (C) 2007 by Pavel Chromy *
5  * chromy@asix.cz *
6  ***************************************************************************/
7 
8 #ifndef OPENOCD_FLASH_NOR_OCL_H
9 #define OPENOCD_FLASH_NOR_OCL_H
10 
11 /* command/response mask */
12 #define OCL_CMD_MASK 0xFFFF0000L
13 
14 /* commands */
15 #define OCL_FLASH_BLOCK 0x0CFB0000L
16 #define OCL_ERASE_BLOCK 0x0CEB0000L
17 #define OCL_ERASE_ALL 0x0CEA0000L
18 #define OCL_PROBE 0x0CBE0000L
19 
20 /* responses */
21 #define OCL_CMD_DONE 0x0ACD0000L
22 #define OCL_CMD_ERR 0x0ACE0000L
23 #define OCL_CHKS_FAIL 0x0ACF0000L
24 #define OCL_BUFF_OVER 0x0AB00000L
25 
26 #define OCL_CHKS_INIT 0xC100CD0CL
27 
28 #endif /* OPENOCD_FLASH_NOR_OCL_H */