]> rtime.felk.cvut.cz Git - arc.git/blob - boards/mpc5516it/config/Fls_SST25xx_Cfg.c
Initial commit.
[arc.git] / boards / mpc5516it / config / Fls_SST25xx_Cfg.c
1 /* -------------------------------- Arctic Core ------------------------------
2  * Arctic Core - the open source AUTOSAR platform http://arccore.com
3  *
4  * Copyright (C) 2009  ArcCore AB <contact@arccore.com>
5  *
6  * This source code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 as published by the
8  * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13  * for more details.
14  * -------------------------------- Arctic Core ------------------------------*/
15
16
17
18
19
20
21
22
23 #include "Fls.h"\r
24 #include <stdlib.h>\r
25 \r
26 \r
27 #define KB *1024\r
28 \r
29 \r
30 const Fls_SectorType fls_SST25xx_SectorList[] = {\r
31     { // L0->L7\r
32     .FlsSectorStartaddress = (Fls_AddressType)0x00000000, // Start address of this sector\r
33     .FlsPageSize = (Fls_LengthType)1, // Read page size of 128 bits (4 words), (8 bytes)\r
34     .FlsSectorSize = (Fls_LengthType)(4 KB), // 16Kbyte\r
35     // Number of continuous sectors with the above characteristics.\r
36     .FlsNumberOfSectors = (uint32)512,// L0->L7 , 8 sectors\r
37     },\r
38 };\r
39 \r
40 // Partitions start at 1\r
41 // uint8 Fls_BlockToPartitionMap[] = { 1,1,1,1,2,2,2,2,3,3,4,4,5,5,6,6,7,7,8,8 };\r
42 \r
43 const Fls_ConfigType FlsSST25xxConfigSet[]=\r
44 {\r
45   {\r
46 #if 0\r
47 #if ( FLS_AC_LOAD_ON_JOB_START == STD_ON)\r
48     .FlsAcWrite = __FLS_ERASE_RAM__,\r
49     .FlsAcErase = __FLS_WRITE_RAM__,\r
50 #else\r
51     .FlsAcWrite = NULL,\r
52     .FlsAcErase = NULL,\r
53 #endif\r
54 #endif\r
55         .FlsMaxReadFastMode = 64,\r
56         .FlsMaxReadNormalMode = 1,\r
57         .FlsMaxWriteFastMode = 1,\r
58         .FlsMaxWriteNormalMode = 1,\r
59 \r
60         .FlsJobEndNotification = NULL,\r
61         .FlsJobErrorNotification = NULL,\r
62 \r
63     .FlsSectorList = &fls_SST25xx_SectorList[0],\r
64     .FlsSectorListSize = sizeof(fls_SST25xx_SectorList)/sizeof(Fls_SectorType),\r
65 #if 0\r
66     .FlsBlockToPartitionMap = Fls_BlockToPartitionMap,\r
67 #endif\r
68   }\r
69 };\r
70 \r
71 \r