cpu_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013, Freie Universitaet Berlin (FUB). All rights reserved.
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
18 #ifndef CPU_CONF_H
19 #define CPU_CONF_H
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
28 #define IRQ_API_INLINED (1)
29 
34 #define FLASHPAGE_SIZE (512U)
35 
36 #if defined (CPU_MODEL_MSP430F1611)
37 #define CPU_FLASH_BASE (0x4000)
38 #define FLASHPAGE_NUMOF (96U) /* 48K */
39 #elif defined (CPU_MODEL_MSP430F1612)
40 #define CPU_FLASH_BASE (0x2600) /* first sector is only 256 byte, skip it*/
41 #define FLASHPAGE_NUMOF (109U) /* 54.5K */
42 #elif defined (CPU_MODEL_MSP430F2617)
43 #define CPU_FLASH_BASE (0x3200) /* first sector is only 256 byte, skip it*/
44 #define FLASHPAGE_NUMOF (103U) /* we can currently only access 51.5K */
45 #elif defined (CPU_MODEL_CC430F6137)
46 #define CPU_FLASH_BASE (0x8000)
47 #define FLASHPAGE_NUMOF (64U) /* 32K */
48 #endif
49 
50 /* The minimum block size which can be written is 1B. However, the erase
51  * block is always FLASHPAGE_SIZE.
52  */
53 #define FLASHPAGE_WRITE_BLOCK_SIZE (1U)
54 /* Writing should be always 2 byte aligned */
55 #define FLASHPAGE_WRITE_BLOCK_ALIGNMENT (2U)
56 
62 #ifndef THREAD_EXTRA_STACKSIZE_PRINTF
63 # define THREAD_EXTRA_STACKSIZE_PRINTF (256)
64 #endif
65 
66 #ifndef THREAD_EXTRA_STACKSIZE_PRINTF
67 # define THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT (THREAD_EXTRA_STACKSIZE_PRINTF)
68 #endif
69 
70 #ifndef THREAD_STACKSIZE_DEFAULT
71 # define THREAD_STACKSIZE_DEFAULT (384)
72 #endif
73 
74 #ifndef THREAD_STACKSIZE_IDLE
75 # define THREAD_STACKSIZE_IDLE (96)
76 #endif
77 
78 #ifndef ISR_STACKSIZE
79 # define ISR_STACKSIZE (256)
80 #endif
81 
82 #ifndef CONFIG_GNRC_PKTBUF_SIZE
83 /* TODO: Make this value overall MTU dependent */
84 # define CONFIG_GNRC_PKTBUF_SIZE (2560)
85 #endif
86 
87 #ifndef GNRC_IPV6_STACK_SIZE
88 # define GNRC_IPV6_STACK_SIZE (512)
89 #endif
90 
92 #ifdef __cplusplus
93 }
94 #endif
95 
96 #endif /* CPU_CONF_H */
97