web.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. /**
  14. * @file web.h
  15. * @brief HTTP server wrapper thread macros and structures.
  16. * @addtogroup WEB_THREAD
  17. * @{
  18. */
  19. #ifndef WEB_H
  20. #define WEB_H
  21. #if !defined(WEB_THREAD_STACK_SIZE)
  22. #define WEB_THREAD_STACK_SIZE (16 * 1024)
  23. #endif
  24. #if !defined(WEB_THREAD_PORT)
  25. #define WEB_THREAD_PORT 443
  26. #endif
  27. #if !defined(WEB_THREAD_PRIORITY)
  28. #define WEB_THREAD_PRIORITY (LOWPRIO + 2)
  29. #endif
  30. #if !defined(WEB_MAX_PATH_SIZE)
  31. #define WEB_MAX_PATH_SIZE 128
  32. #endif
  33. extern THD_WORKING_AREA(wa_https_server, WEB_THREAD_STACK_SIZE);
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37. THD_FUNCTION(https_server, p);
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41. #endif /* WEB_H */
  42. /** @} */