Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
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_MSP430F2618)
46
#define CPU_FLASH_BASE (0x3200)
/* first sector is only 256 byte, skip it*/
47
#define FLASHPAGE_NUMOF (103U)
/* we can currently only access 51.5K */
48
#elif defined (CPU_MODEL_CC430F6137)
49
#define CPU_FLASH_BASE (0x8000)
50
#define FLASHPAGE_NUMOF (64U)
/* 32K */
51
#endif
52
53
/* The minimum block size which can be written is 1B. However, the erase
54
* block is always FLASHPAGE_SIZE.
55
*/
56
#define FLASHPAGE_WRITE_BLOCK_SIZE (1U)
57
/* Writing should be always 2 byte aligned */
58
#define FLASHPAGE_WRITE_BLOCK_ALIGNMENT (2U)
65
#ifndef THREAD_EXTRA_STACKSIZE_PRINTF
66
# define THREAD_EXTRA_STACKSIZE_PRINTF (256)
67
#endif
68
69
#ifndef THREAD_EXTRA_STACKSIZE_PRINTF
70
# define THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT (THREAD_EXTRA_STACKSIZE_PRINTF)
71
#endif
72
73
#ifndef THREAD_STACKSIZE_DEFAULT
74
# define THREAD_STACKSIZE_DEFAULT (384)
75
#endif
76
77
#ifndef THREAD_STACKSIZE_IDLE
78
# define THREAD_STACKSIZE_IDLE (96)
79
#endif
80
81
#ifndef ISR_STACKSIZE
82
# define ISR_STACKSIZE (256)
83
#endif
84
85
#ifndef CONFIG_GNRC_PKTBUF_SIZE
86
/* TODO: Make this value overall MTU dependent */
87
# define CONFIG_GNRC_PKTBUF_SIZE (2560)
88
#endif
89
90
#ifndef GNRC_IPV6_STACK_SIZE
91
# define GNRC_IPV6_STACK_SIZE (512)
92
#endif
95
#ifdef __cplusplus
96
}
97
#endif
98
99
#endif
/* CPU_CONF_H */
Generated on Sun Dec 22 2024 10:22:28 by
1.9.8