OpenOCD
max32xxx_options.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Copyright (C) 2016 by Maxim Integrated *
5  * Copyright (C) 2025 Analog Devices, Inc. *
6  ***************************************************************************/
7 
8 #ifndef OPENOCD_FLASH_NOR_MAX32XXX_OPTIONS_H
9 #define OPENOCD_FLASH_NOR_MAX32XXX_OPTIONS_H
10 
11 #define OPTIONS_128 0x01 /* Perform 128 bit flash writes */
12 #define OPTIONS_ENC 0x02 /* Encrypt the flash contents */
13 #define OPTIONS_AUTH 0x04 /* Authenticate the flash contents */
14 #define OPTIONS_COUNT 0x08 /* Add counter values to authentication */
15 #define OPTIONS_INTER 0x10 /* Interleave the authentication and count values*/
16 #define OPTIONS_RELATIVE_XOR 0x20 /* Only XOR the offset of the address when encrypting */
17 #define OPTIONS_KEYSIZE 0x40 /* Use a 256 bit KEY */
18 #define OPTIONS_QSPI 0x80 /* Use quad SPI */
19 
20 #endif /* OPENOCD_FLASH_NOR_MAX32XXX_OPTIONS_H */