forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flash_configuration.c
33 lines (26 loc) · 912 Bytes
/
flash_configuration.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* Copyright (c) 2019, NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/kernel.h>
#include <zephyr/linker/sections.h>
uint8_t __kinetis_flash_config_section __kinetis_flash_config[] = {
/* Backdoor Comparison Key (unused) */
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
/* Program flash protection; 1 bit/region - 0=protected, 1=unprotected
*/
0xFF, 0xFF, 0xFF, 0xFF,
/* Flash security register (FSEC) enables/disables backdoor key access,
* mass erase, factory access, and flash security
*/
CONFIG_KINETIS_FLASH_CONFIG_FSEC,
/* Flash nonvolatile option register (FOPT) enables/disables NMI,
* EzPort, and boot options
*/
CONFIG_KINETIS_FLASH_CONFIG_FOPT,
/* EEPROM protection register (FEPROT) for FlexNVM devices */
CONFIG_KINETIS_FLASH_CONFIG_FEPROT,
/* Data flash protection register (FDPROT) for FlexNVM devices */
CONFIG_KINETIS_FLASH_CONFIG_FDPROT,
};