cpu_conf.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2013 Freie Universität Berlin (FUB)
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
24 #define IRQ_API_INLINED (1)
25 
30 #define FLASHPAGE_SIZE (512U)
31 
32 #if defined (CPU_MODEL_MSP430F1611)
33 #define CPU_FLASH_BASE (0x4000)
34 #define FLASHPAGE_NUMOF (96U) /* 48K */
35 #elif defined (CPU_MODEL_MSP430F1612)
36 #define CPU_FLASH_BASE (0x2600) /* first sector is only 256 byte, skip it*/
37 #define FLASHPAGE_NUMOF (109U) /* 54.5K */
38 #elif defined (CPU_MODEL_MSP430F2617)
39 #define CPU_FLASH_BASE (0x3200) /* first sector is only 256 byte, skip it*/
40 #define FLASHPAGE_NUMOF (103U) /* we can currently only access 51.5K */
41 #elif defined (CPU_MODEL_MSP430F2618)
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_CC430F6137)
45 #define CPU_FLASH_BASE (0x8000)
46 #define FLASHPAGE_NUMOF (64U) /* 32K */
47 #endif
48 
49 /* The minimum block size which can be written is 1B. However, the erase
50  * block is always FLASHPAGE_SIZE.
51  */
52 #define FLASHPAGE_WRITE_BLOCK_SIZE (1U)
53 /* Writing should be always 2 byte aligned */
54 #define FLASHPAGE_WRITE_BLOCK_ALIGNMENT (2U)
61 #ifndef THREAD_EXTRA_STACKSIZE_PRINTF
62 # define THREAD_EXTRA_STACKSIZE_PRINTF (256)
63 #endif
64 
65 #ifndef THREAD_EXTRA_STACKSIZE_PRINTF
66 # define THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT (THREAD_EXTRA_STACKSIZE_PRINTF)
67 #endif
68 
69 #ifndef THREAD_STACKSIZE_DEFAULT
70 # define THREAD_STACKSIZE_DEFAULT (384)
71 #endif
72 
73 #ifndef THREAD_STACKSIZE_IDLE
74 # define THREAD_STACKSIZE_IDLE (96)
75 #endif
76 
77 #ifndef ISR_STACKSIZE
78 # define ISR_STACKSIZE (256)
79 #endif
80 
81 #ifndef CONFIG_GNRC_PKTBUF_SIZE
82 /* TODO: Make this value overall MTU dependent */
83 # define CONFIG_GNRC_PKTBUF_SIZE (2560)
84 #endif
85 
86 #ifndef GNRC_IPV6_STACK_SIZE
87 # define GNRC_IPV6_STACK_SIZE (512)
88 #endif
91 #ifdef __cplusplus
92 }
93 #endif
94