cpu/msp430_common/include/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 
29 #define FLASHPAGE_SIZE (512)
30 
31 #if defined (CPU_MODEL_MSP430F1611)
32 #define CPU_FLASH_BASE (0x4000)
33 #define FLASHPAGE_NUMOF (96) /* 48K */
34 #elif defined (CPU_MODEL_MSP430F1612)
35 #define CPU_FLASH_BASE (0x2600)
36 #define FLASHPAGE_NUMOF (110) /* 56K */
37 #elif defined (CPU_MODEL_MSP430F2617)
38 #define CPU_FLASH_BASE (0x3100)
39 #define FLASHPAGE_NUMOF (128) /* we can currently only access 52K */
40 #elif defined (CPU_MODEL_CC430F6137)
41 #define CPU_FLASH_BASE (0x8000)
42 #define FLASHPAGE_NUMOF (64) /* 32K */
43 #endif
44 
50 #ifndef THREAD_EXTRA_STACKSIZE_PRINTF
51 # define THREAD_EXTRA_STACKSIZE_PRINTF (256)
52 #endif
53 
54 #ifndef THREAD_EXTRA_STACKSIZE_PRINTF
55 # define THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT (THREAD_EXTRA_STACKSIZE_PRINTF)
56 #endif
57 
58 #ifndef THREAD_STACKSIZE_DEFAULT
59 # define THREAD_STACKSIZE_DEFAULT (256)
60 #endif
61 
62 #ifndef THREAD_STACKSIZE_IDLE
63 # define THREAD_STACKSIZE_IDLE (96)
64 #endif
65 
66 #ifndef ISR_STACKSIZE
67 # define ISR_STACKSIZE (256)
68 #endif
69 
70 #ifndef GNRC_PKTBUF_SIZE
71 /* TODO: Make this value overall MTU dependent */
72 # define GNRC_PKTBUF_SIZE (2560)
73 #endif
74 
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 #endif /* CPU_CONF_H */
81