web.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #ifndef WEB_THREAD_STACK_SIZE
  22. #define WEB_THREAD_STACK_SIZE 1024
  23. #endif
  24. #ifndef WEB_THREAD_PORT
  25. #define WEB_THREAD_PORT 80
  26. #endif
  27. #ifndef WEB_THREAD_PRIORITY
  28. #define WEB_THREAD_PRIORITY (LOWPRIO + 2)
  29. #endif
  30. extern THD_WORKING_AREA(wa_http_server, WEB_THREAD_STACK_SIZE);
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. THD_FUNCTION(http_server, p);
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38. #endif /* WEB_H */
  39. /** @} */