USB Serial application

Fork of USBSerial_HelloWorld by Samuel Mokrani

Committer:
Zaitsev
Date:
Tue Jan 10 20:42:26 2017 +0000
Revision:
10:41552d038a69
USB Serial bi-directional bridge

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Zaitsev 10:41552d038a69 1 /* mbed Microcontroller Library
Zaitsev 10:41552d038a69 2 * Copyright (c) 2016 ARM Limited
Zaitsev 10:41552d038a69 3 *
Zaitsev 10:41552d038a69 4 * Licensed under the Apache License, Version 2.0 (the "License");
Zaitsev 10:41552d038a69 5 * you may not use this file except in compliance with the License.
Zaitsev 10:41552d038a69 6 * You may obtain a copy of the License at
Zaitsev 10:41552d038a69 7 *
Zaitsev 10:41552d038a69 8 * http://www.apache.org/licenses/LICENSE-2.0
Zaitsev 10:41552d038a69 9 *
Zaitsev 10:41552d038a69 10 * Unless required by applicable law or agreed to in writing, software
Zaitsev 10:41552d038a69 11 * distributed under the License is distributed on an "AS IS" BASIS,
Zaitsev 10:41552d038a69 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Zaitsev 10:41552d038a69 13 * See the License for the specific language governing permissions and
Zaitsev 10:41552d038a69 14 * limitations under the License.
Zaitsev 10:41552d038a69 15 */
Zaitsev 10:41552d038a69 16
Zaitsev 10:41552d038a69 17 #ifndef MBED_MBED_RTX_H
Zaitsev 10:41552d038a69 18 #define MBED_MBED_RTX_H
Zaitsev 10:41552d038a69 19
Zaitsev 10:41552d038a69 20 #if defined(TARGET_LPC11U68)
Zaitsev 10:41552d038a69 21
Zaitsev 10:41552d038a69 22 #ifndef INITIAL_SP
Zaitsev 10:41552d038a69 23 #define INITIAL_SP (0x10008000UL)
Zaitsev 10:41552d038a69 24 #endif
Zaitsev 10:41552d038a69 25 #ifndef OS_TASKCNT
Zaitsev 10:41552d038a69 26 #define OS_TASKCNT 14
Zaitsev 10:41552d038a69 27 #endif
Zaitsev 10:41552d038a69 28 #ifndef OS_MAINSTKSIZE
Zaitsev 10:41552d038a69 29 #define OS_MAINSTKSIZE 256
Zaitsev 10:41552d038a69 30 #endif
Zaitsev 10:41552d038a69 31 #ifndef OS_CLOCK
Zaitsev 10:41552d038a69 32 #define OS_CLOCK 48000000
Zaitsev 10:41552d038a69 33 #endif
Zaitsev 10:41552d038a69 34
Zaitsev 10:41552d038a69 35 #elif defined(TARGET_LPC11U24) \
Zaitsev 10:41552d038a69 36 || defined(TARGET_LPC11U35_401) \
Zaitsev 10:41552d038a69 37 || defined(TARGET_LPC11U35_501) \
Zaitsev 10:41552d038a69 38 || defined(TARGET_LPCCAPPUCCINO)
Zaitsev 10:41552d038a69 39
Zaitsev 10:41552d038a69 40 #ifndef INITIAL_SP
Zaitsev 10:41552d038a69 41 #define INITIAL_SP (0x10002000UL)
Zaitsev 10:41552d038a69 42 #endif
Zaitsev 10:41552d038a69 43 #ifndef OS_TASKCNT
Zaitsev 10:41552d038a69 44 #define OS_TASKCNT 6
Zaitsev 10:41552d038a69 45 #endif
Zaitsev 10:41552d038a69 46 #ifndef OS_MAINSTKSIZE
Zaitsev 10:41552d038a69 47 #define OS_MAINSTKSIZE 128
Zaitsev 10:41552d038a69 48 #endif
Zaitsev 10:41552d038a69 49 #ifndef OS_CLOCK
Zaitsev 10:41552d038a69 50 #define OS_CLOCK 48000000
Zaitsev 10:41552d038a69 51 #endif
Zaitsev 10:41552d038a69 52
Zaitsev 10:41552d038a69 53 #elif defined(TARGET_LPC1114)
Zaitsev 10:41552d038a69 54
Zaitsev 10:41552d038a69 55 #ifndef INITIAL_SP
Zaitsev 10:41552d038a69 56 #define INITIAL_SP (0x10001000UL)
Zaitsev 10:41552d038a69 57 #endif
Zaitsev 10:41552d038a69 58 #ifndef OS_TASKCNT
Zaitsev 10:41552d038a69 59 #define OS_TASKCNT 6
Zaitsev 10:41552d038a69 60 #endif
Zaitsev 10:41552d038a69 61 #ifndef OS_MAINSTKSIZE
Zaitsev 10:41552d038a69 62 #define OS_MAINSTKSIZE 128
Zaitsev 10:41552d038a69 63 #endif
Zaitsev 10:41552d038a69 64 #ifndef OS_CLOCK
Zaitsev 10:41552d038a69 65 #define OS_CLOCK 48000000
Zaitsev 10:41552d038a69 66 #endif
Zaitsev 10:41552d038a69 67
Zaitsev 10:41552d038a69 68 #elif defined(TARGET_LPC1347)
Zaitsev 10:41552d038a69 69
Zaitsev 10:41552d038a69 70 #ifndef INITIAL_SP
Zaitsev 10:41552d038a69 71 #define INITIAL_SP (0x10002000UL)
Zaitsev 10:41552d038a69 72 #endif
Zaitsev 10:41552d038a69 73 #ifndef OS_TASKCNT
Zaitsev 10:41552d038a69 74 #define OS_TASKCNT 14
Zaitsev 10:41552d038a69 75 #endif
Zaitsev 10:41552d038a69 76 #ifndef OS_MAINSTKSIZE
Zaitsev 10:41552d038a69 77 #define OS_MAINSTKSIZE 256
Zaitsev 10:41552d038a69 78 #endif
Zaitsev 10:41552d038a69 79 #ifndef OS_CLOCK
Zaitsev 10:41552d038a69 80 #define OS_CLOCK 72000000
Zaitsev 10:41552d038a69 81 #endif
Zaitsev 10:41552d038a69 82
Zaitsev 10:41552d038a69 83 #elif defined(TARGET_LPC1549)
Zaitsev 10:41552d038a69 84
Zaitsev 10:41552d038a69 85 #ifndef INITIAL_SP
Zaitsev 10:41552d038a69 86 #define INITIAL_SP (0x02009000UL)
Zaitsev 10:41552d038a69 87 #endif
Zaitsev 10:41552d038a69 88 #ifndef OS_TASKCNT
Zaitsev 10:41552d038a69 89 #define OS_TASKCNT 14
Zaitsev 10:41552d038a69 90 #endif
Zaitsev 10:41552d038a69 91 #ifndef OS_MAINSTKSIZE
Zaitsev 10:41552d038a69 92 #define OS_MAINSTKSIZE 256
Zaitsev 10:41552d038a69 93 #endif
Zaitsev 10:41552d038a69 94 #ifndef OS_CLOCK
Zaitsev 10:41552d038a69 95 #define OS_CLOCK 72000000
Zaitsev 10:41552d038a69 96 #endif
Zaitsev 10:41552d038a69 97
Zaitsev 10:41552d038a69 98 #elif defined(TARGET_LPC1768)
Zaitsev 10:41552d038a69 99
Zaitsev 10:41552d038a69 100 #ifndef INITIAL_SP
Zaitsev 10:41552d038a69 101 #define INITIAL_SP (0x10008000UL)
Zaitsev 10:41552d038a69 102 #endif
Zaitsev 10:41552d038a69 103 #ifndef OS_TASKCNT
Zaitsev 10:41552d038a69 104 #define OS_TASKCNT 14
Zaitsev 10:41552d038a69 105 #endif
Zaitsev 10:41552d038a69 106 #ifndef OS_MAINSTKSIZE
Zaitsev 10:41552d038a69 107 #define OS_MAINSTKSIZE 256
Zaitsev 10:41552d038a69 108 #endif
Zaitsev 10:41552d038a69 109 #ifndef OS_CLOCK
Zaitsev 10:41552d038a69 110 #define OS_CLOCK 96000000
Zaitsev 10:41552d038a69 111 #endif
Zaitsev 10:41552d038a69 112
Zaitsev 10:41552d038a69 113 #elif defined(TARGET_LPC2368)
Zaitsev 10:41552d038a69 114
Zaitsev 10:41552d038a69 115 /* FIXME: INITIAL_SP is undefined for this target */
Zaitsev 10:41552d038a69 116 #ifndef OS_TASKCNT
Zaitsev 10:41552d038a69 117 #define OS_TASKCNT 14
Zaitsev 10:41552d038a69 118 #endif
Zaitsev 10:41552d038a69 119 #ifndef OS_MAINSTKSIZE
Zaitsev 10:41552d038a69 120 #define OS_MAINSTKSIZE 256
Zaitsev 10:41552d038a69 121 #endif
Zaitsev 10:41552d038a69 122 #ifndef OS_CLOCK
Zaitsev 10:41552d038a69 123 #define OS_CLOCK 96000000
Zaitsev 10:41552d038a69 124 #endif
Zaitsev 10:41552d038a69 125 #ifndef OS_SCHEDULERSTKSIZE
Zaitsev 10:41552d038a69 126 #define OS_SCHEDULERSTKSIZE (136*2)
Zaitsev 10:41552d038a69 127 #endif
Zaitsev 10:41552d038a69 128
Zaitsev 10:41552d038a69 129 #elif defined(TARGET_LPC2460)
Zaitsev 10:41552d038a69 130
Zaitsev 10:41552d038a69 131 extern unsigned char __usr_stack_top__[];
Zaitsev 10:41552d038a69 132 #ifndef INITIAL_SP
Zaitsev 10:41552d038a69 133 #define INITIAL_SP (__usr_stack_top__)
Zaitsev 10:41552d038a69 134 #endif
Zaitsev 10:41552d038a69 135 #ifndef OS_TASKCNT
Zaitsev 10:41552d038a69 136 #define OS_TASKCNT 14
Zaitsev 10:41552d038a69 137 #endif
Zaitsev 10:41552d038a69 138 #ifndef OS_MAINSTKSIZE
Zaitsev 10:41552d038a69 139 #define OS_MAINSTKSIZE 256
Zaitsev 10:41552d038a69 140 #endif
Zaitsev 10:41552d038a69 141 #ifndef OS_CLOCK
Zaitsev 10:41552d038a69 142 #define OS_CLOCK 72000000
Zaitsev 10:41552d038a69 143 #endif
Zaitsev 10:41552d038a69 144 #ifndef OS_SCHEDULERSTKSIZE
Zaitsev 10:41552d038a69 145 #define OS_SCHEDULERSTKSIZE (136*2)
Zaitsev 10:41552d038a69 146 #endif
Zaitsev 10:41552d038a69 147
Zaitsev 10:41552d038a69 148 #elif defined(TARGET_LPC4088) || defined(TARGET_LPC4088_DM)
Zaitsev 10:41552d038a69 149
Zaitsev 10:41552d038a69 150 #ifndef INITIAL_SP
Zaitsev 10:41552d038a69 151 #define INITIAL_SP (0x10010000UL)
Zaitsev 10:41552d038a69 152 #endif
Zaitsev 10:41552d038a69 153 #ifndef OS_TASKCNT
Zaitsev 10:41552d038a69 154 #define OS_TASKCNT 14
Zaitsev 10:41552d038a69 155 #endif
Zaitsev 10:41552d038a69 156 #ifndef OS_MAINSTKSIZE
Zaitsev 10:41552d038a69 157 #define OS_MAINSTKSIZE 256
Zaitsev 10:41552d038a69 158 #endif
Zaitsev 10:41552d038a69 159 #ifndef OS_CLOCK
Zaitsev 10:41552d038a69 160 #define OS_CLOCK 120000000
Zaitsev 10:41552d038a69 161 #endif
Zaitsev 10:41552d038a69 162
Zaitsev 10:41552d038a69 163 #elif defined(TARGET_LPC4330) || defined(TARGET_LPC4337)
Zaitsev 10:41552d038a69 164
Zaitsev 10:41552d038a69 165 #ifndef INITIAL_SP
Zaitsev 10:41552d038a69 166 #define INITIAL_SP (0x10008000UL)
Zaitsev 10:41552d038a69 167 #endif
Zaitsev 10:41552d038a69 168 #define OS_TASKCNT 14
Zaitsev 10:41552d038a69 169 #ifndef OS_MAINSTKSIZE
Zaitsev 10:41552d038a69 170 #define OS_MAINSTKSIZE 256
Zaitsev 10:41552d038a69 171 #endif
Zaitsev 10:41552d038a69 172 #ifndef OS_CLOCK
Zaitsev 10:41552d038a69 173 #define OS_CLOCK 204000000
Zaitsev 10:41552d038a69 174 #endif
Zaitsev 10:41552d038a69 175
Zaitsev 10:41552d038a69 176 #elif defined(TARGET_LPC812)
Zaitsev 10:41552d038a69 177
Zaitsev 10:41552d038a69 178 #ifndef INITIAL_SP
Zaitsev 10:41552d038a69 179 #define INITIAL_SP (0x10001000UL)
Zaitsev 10:41552d038a69 180 #endif
Zaitsev 10:41552d038a69 181 #ifndef OS_TASKCNT
Zaitsev 10:41552d038a69 182 #define OS_TASKCNT 6
Zaitsev 10:41552d038a69 183 #endif
Zaitsev 10:41552d038a69 184 #ifndef OS_MAINSTKSIZE
Zaitsev 10:41552d038a69 185 #define OS_MAINSTKSIZE 128
Zaitsev 10:41552d038a69 186 #endif
Zaitsev 10:41552d038a69 187 #ifndef OS_CLOCK
Zaitsev 10:41552d038a69 188 #define OS_CLOCK 36000000
Zaitsev 10:41552d038a69 189 #endif
Zaitsev 10:41552d038a69 190
Zaitsev 10:41552d038a69 191 #elif defined(TARGET_LPC824) || defined(TARGET_SSCI824)
Zaitsev 10:41552d038a69 192
Zaitsev 10:41552d038a69 193 #ifndef INITIAL_SP
Zaitsev 10:41552d038a69 194 #define INITIAL_SP (0x10002000UL)
Zaitsev 10:41552d038a69 195 #endif
Zaitsev 10:41552d038a69 196 #ifndef OS_TASKCNT
Zaitsev 10:41552d038a69 197 #define OS_TASKCNT 6
Zaitsev 10:41552d038a69 198 #endif
Zaitsev 10:41552d038a69 199 #ifndef OS_MAINSTKSIZE
Zaitsev 10:41552d038a69 200 #define OS_MAINSTKSIZE 128
Zaitsev 10:41552d038a69 201 #endif
Zaitsev 10:41552d038a69 202 #ifndef OS_CLOCK
Zaitsev 10:41552d038a69 203 #define OS_CLOCK 30000000
Zaitsev 10:41552d038a69 204 #endif
Zaitsev 10:41552d038a69 205
Zaitsev 10:41552d038a69 206 #endif
Zaitsev 10:41552d038a69 207
Zaitsev 10:41552d038a69 208 #endif // MBED_MBED_RTX_H