aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios/demos/STM32/RT-STM32F107-OLIMEX_P107-LWIP/web/web.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios/demos/STM32/RT-STM32F107-OLIMEX_P107-LWIP/web/web.h')
-rw-r--r--lib/chibios/demos/STM32/RT-STM32F107-OLIMEX_P107-LWIP/web/web.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/lib/chibios/demos/STM32/RT-STM32F107-OLIMEX_P107-LWIP/web/web.h b/lib/chibios/demos/STM32/RT-STM32F107-OLIMEX_P107-LWIP/web/web.h
new file mode 100644
index 000000000..a627d39b5
--- /dev/null
+++ b/lib/chibios/demos/STM32/RT-STM32F107-OLIMEX_P107-LWIP/web/web.h
@@ -0,0 +1,51 @@
1/*
2 ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
17/**
18 * @file web.h
19 * @brief HTTP server wrapper thread macros and structures.
20 * @addtogroup WEB_THREAD
21 * @{
22 */
23
24#ifndef WEB_H
25#define WEB_H
26
27#ifndef WEB_THREAD_STACK_SIZE
28#define WEB_THREAD_STACK_SIZE 1024
29#endif
30
31#ifndef WEB_THREAD_PORT
32#define WEB_THREAD_PORT 80
33#endif
34
35#ifndef WEB_THREAD_PRIORITY
36#define WEB_THREAD_PRIORITY (LOWPRIO + 2)
37#endif
38
39extern THD_WORKING_AREA(wa_http_server, WEB_THREAD_STACK_SIZE);
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44 THD_FUNCTION(http_server, p);
45#ifdef __cplusplus
46}
47#endif
48
49#endif /* WEB_H */
50
51/** @} */