Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
9
#pragma once
10
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
27
#define IRQ_API_INLINED (1)
28
33
#define FLASHPAGE_SIZE (512U)
34
35
#if defined (CPU_MODEL_MSP430F1611)
36
#define CPU_FLASH_BASE (0x4000)
37
#define FLASHPAGE_NUMOF (96U)
/* 48K */
38
#elif defined (CPU_MODEL_MSP430F1612)
39
#define CPU_FLASH_BASE (0x2600)
/* first sector is only 256 byte, skip it*/
40
#define FLASHPAGE_NUMOF (109U)
/* 54.5K */
41
#elif defined (CPU_MODEL_MSP430F2617)
42
#define CPU_FLASH_BASE (0x3200)
/* first sector is only 256 byte, skip it*/
43
#define FLASHPAGE_NUMOF (103U)
/* we can currently only access 51.5K */
44
#elif defined (CPU_MODEL_MSP430F2618)
45
#define CPU_FLASH_BASE (0x3200)
/* first sector is only 256 byte, skip it*/
46
#define FLASHPAGE_NUMOF (103U)
/* we can currently only access 51.5K */
47
#elif defined (CPU_MODEL_CC430F6137)
48
#define CPU_FLASH_BASE (0x8000)
49
#define FLASHPAGE_NUMOF (64U)
/* 32K */
50
#endif
51
52
/* The minimum block size which can be written is 1B. However, the erase
53
* block is always FLASHPAGE_SIZE.
54
*/
55
#define FLASHPAGE_WRITE_BLOCK_SIZE (1U)
56
/* Writing should be always 2 byte aligned */
57
#define FLASHPAGE_WRITE_BLOCK_ALIGNMENT (2U)
64
#ifndef THREAD_EXTRA_STACKSIZE_PRINTF
65
# define THREAD_EXTRA_STACKSIZE_PRINTF (256)
66
#endif
67
68
#ifndef THREAD_EXTRA_STACKSIZE_PRINTF
69
# define THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT (THREAD_EXTRA_STACKSIZE_PRINTF)
70
#endif
71
72
#ifndef THREAD_STACKSIZE_DEFAULT
73
# define THREAD_STACKSIZE_DEFAULT (384)
74
#endif
75
76
#ifndef THREAD_STACKSIZE_IDLE
77
# define THREAD_STACKSIZE_IDLE (96)
78
#endif
79
80
#ifndef ISR_STACKSIZE
81
# define ISR_STACKSIZE (256)
82
#endif
83
84
#ifndef CONFIG_GNRC_PKTBUF_SIZE
85
/* TODO: Make this value overall MTU dependent */
86
# define CONFIG_GNRC_PKTBUF_SIZE (2560)
87
#endif
88
89
#ifndef GNRC_IPV6_STACK_SIZE
90
# define GNRC_IPV6_STACK_SIZE (512)
91
#endif
94
#ifdef __cplusplus
95
}
96
#endif
97
Generated on Mon Jun 30 2025 18:46:45 by
1.9.1