Blame view

RIOT/cpu/kinetis_common/fcfield.c 1.68 KB
a752c7ab   elopes   add first test an...
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
34
35
36
37
38
39
40
41
42
43
44
  /*
   * Copyright (C) 2015 PHYTEC Messtechnik GmbH
   * Copyright (C) 2015 Eistec AB
   *
   * This file is subject to the terms and conditions of the GNU Lesser General
   * Public License v2.1. See the file LICENSE in the top level directory for more
   * details.
   */
  
  /**
   * @ingroup     cpu_kinetis_common
   * @{
   *
   * @file
   * @brief       Default FCF code for Freescale Kinetis MCUs
   *
   * @author      Johann Fischer <j.fischer@phytec.de>
   * @author      Joakim Nohlgård <joakim.nohlgard@eistec.se>
   *
   * @}
   */
  
  #include <stdint.h>
  
  /* fcfield table */
  __attribute__((weak, used, section(".fcfield")))
  const uint8_t flash_configuration_field[] = {
      0xff,    /* backdoor comparison key 3., offset: 0x0 */
      0xff,    /* backdoor comparison key 2., offset: 0x1 */
      0xff,    /* backdoor comparison key 1., offset: 0x2 */
      0xff,    /* backdoor comparison key 0., offset: 0x3 */
      0xff,    /* backdoor comparison key 7., offset: 0x4 */
      0xff,    /* backdoor comparison key 6., offset: 0x5 */
      0xff,    /* backdoor comparison key 5., offset: 0x6 */
      0xff,    /* backdoor comparison key 4., offset: 0x7 */
      0xff,    /* non-volatile p-flash protection 1 - low register, offset: 0x8 */
      0xff,    /* non-volatile p-flash protection 1 - high register, offset: 0x9 */
      0xff,    /* non-volatile p-flash protection 0 - low register, offset: 0xa */
      0xff,    /* non-volatile p-flash protection 0 - high register, offset: 0xb */
      0xfe,    /* non-volatile flash security register, offset: 0xc */
      0xff,    /* non-volatile flash option register, offset: 0xd */
      0xff,    /* non-volatile eeram protection register, offset: 0xe */
      0xff,    /* non-volatile d-flash protection register, offset: 0xf */
  };