|
SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Pico W lwIP httpd (TLS) + mDNS example ported to STK. More...
#include <assert.h>#include <stk.h>#include <sync/stk_sync.h>#include <time/stk_time.h>#include "example.h"#include "pico/stdlib.h"#include "pico/cyw43_arch.h"#include "hardware/structs/rosc.h"#include "lwip/ip4_addr.h"#include "lwip/apps/mdns.h"#include "lwip/apps/mdns_priv.h"#include "lwip/init.h"#include "lwip/apps/httpd.h"#include "lwip/altcp_tls.h"#include "example_certs.h"#include "psa/crypto.h"#include "mbedtls/platform.h"#include "arch/sys_arch.h"#include "pico/cyw43_arch_stk.h"#include "threading_alt.h"Go to the source code of this file.
Classes | |
| class | WifiHttpdTask |
Macros | |
| #define | STR_HELPER(x) |
| #define | STR(x) |
Enumerations | |
| enum | { TASK_STACK_SIZE = 4096 } |
Functions | |
| void | httpd_init (void) |
| static bool | InitNetwork () |
| static void | ShutdownNetwork () |
| static void | InitServer () |
| static bool | ConnectWiFi () |
| void | RunExample () |
| int | __mbedtls_platform_get_entropy (psa_driver_get_entropy_flags_t flags, size_t *estimate_bits, unsigned char *output, size_t output_size) |
Variables | |
| const char | WIFI_SSID [] = ENV_WIFI_SSID |
| const char | WIFI_PASSWORD [] = ENV_WIFI_PASSWORD |
| static const char * | SSI_TAGS [] |
Pico W lwIP httpd (TLS) + mDNS example ported to STK.
Definition in file httpd_tls/example.cpp.
| #define STR | ( | x | ) |
Definition at line 99 of file httpd_tls/example.cpp.
| #define STR_HELPER | ( | x | ) |
Definition at line 98 of file httpd_tls/example.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| TASK_STACK_SIZE | |
Definition at line 96 of file httpd_tls/example.cpp.
| int __mbedtls_platform_get_entropy | ( | psa_driver_get_entropy_flags_t | flags, |
| size_t * | estimate_bits, | ||
| unsigned char * | output, | ||
| size_t | output_size ) |
Definition at line 544 of file httpd_tls/example.cpp.
|
static |
Definition at line 420 of file httpd_tls/example.cpp.
References WIFI_PASSWORD, and WIFI_SSID.
Referenced by WifiHttpdTask::Run().
| void httpd_init | ( | void | ) |
|
static |
Definition at line 333 of file httpd_tls/example.cpp.
Referenced by WifiHttpdTask::Run().
|
static |
Definition at line 370 of file httpd_tls/example.cpp.
References httpd_init(), s_TlsCert, s_TlsKey, and SSI_TAGS.
Referenced by WifiHttpdTask::Run().
| void RunExample | ( | void | ) |
Definition at line 493 of file httpd_tls/example.cpp.
References stk::ACCESS_USER, stk::Kernel< TMode, TSize, TStrategy, TPlatform >::AddTask(), stk::Kernel< TMode, TSize, TStrategy, TPlatform >::Initialize(), stk::time::TimerHost::Initialize(), stk::KERNEL_DYNAMIC, stk::KERNEL_SYNC, stk::KERNEL_TICKLESS, stk::Kernel< TMode, TSize, TStrategy, TPlatform >::Start(), STK_ASSERT, and stk::time::TimerHost::TASK_COUNT.
|
static |
Definition at line 358 of file httpd_tls/example.cpp.
Referenced by WifiHttpdTask::Run().
|
static |
Definition at line 107 of file httpd_tls/example.cpp.
| const char WIFI_PASSWORD[] = ENV_WIFI_PASSWORD |
Definition at line 104 of file httpd_tls/example.cpp.
| const char WIFI_SSID[] = ENV_WIFI_SSID |
Definition at line 103 of file httpd_tls/example.cpp.