From b035b3a731eabca2f16143ec1ed11b7d356f02f8 Mon Sep 17 00:00:00 2001 From: yota Date: Wed, 18 Sep 2024 15:25:59 +0900 Subject: [PATCH] fixed typo and details & added macro Added new line --- RPi-Pico/benchmark/CMakeLists.txt | 2 +- RPi-Pico/config/lwipopts_examples_common.h | 2 +- RPi-Pico/config/user_settings.h | 14 +++++++------- RPi-Pico/include/wolf/blink.h | 2 +- RPi-Pico/include/wolf/common.h | 2 +- RPi-Pico/include/wolf/tls.h | 4 +++- RPi-Pico/include/wolf/wifi.h | 2 +- RPi-Pico/src/blink.c | 2 +- RPi-Pico/src/tcpServer_main.c | 2 +- RPi-Pico/src/test_main.c | 2 +- RPi-Pico/src/tlsClient_main.c | 2 +- RPi-Pico/src/tlsServer_main.c | 2 +- RPi-Pico/src/wolfTcp.c | 2 +- RPi-Pico/tcp_client/CMakeLists.txt | 2 +- RPi-Pico/tcp_server/CMakeLists.txt | 2 +- RPi-Pico/testwolfcrypt/CMakeLists.txt | 2 +- RPi-Pico/tls_client/CMakeLists.txt | 2 +- RPi-Pico/tls_server/CMakeLists.txt | 2 +- 18 files changed, 26 insertions(+), 24 deletions(-) diff --git a/RPi-Pico/benchmark/CMakeLists.txt b/RPi-Pico/benchmark/CMakeLists.txt index 9a3ee169c..77e70cb77 100644 --- a/RPi-Pico/benchmark/CMakeLists.txt +++ b/RPi-Pico/benchmark/CMakeLists.txt @@ -18,4 +18,4 @@ target_compile_definitions(benchmark PRIVATE pico_enable_stdio_usb(benchmark 1) pico_enable_stdio_uart(benchmark 1) -pico_add_extra_outputs(benchmark) \ No newline at end of file +pico_add_extra_outputs(benchmark) diff --git a/RPi-Pico/config/lwipopts_examples_common.h b/RPi-Pico/config/lwipopts_examples_common.h index 496f7881b..217cb1357 100644 --- a/RPi-Pico/config/lwipopts_examples_common.h +++ b/RPi-Pico/config/lwipopts_examples_common.h @@ -87,4 +87,4 @@ #define SLIP_DEBUG LWIP_DBG_OFF #define DHCP_DEBUG LWIP_DBG_OFF -#endif /* __LWIPOPTS_H__ */ \ No newline at end of file +#endif /* __LWIPOPTS_H__ */ diff --git a/RPi-Pico/config/user_settings.h b/RPi-Pico/config/user_settings.h index 982753124..bd955c06e 100644 --- a/RPi-Pico/config/user_settings.h +++ b/RPi-Pico/config/user_settings.h @@ -294,9 +294,9 @@ extern time_t myTime(time_t *); #define USE_CERT_BUFFERS_2048 #endif - /* ------------------------------------------------------------------------- */ - /* Debugging */ - /* ------------------------------------------------------------------------- */ +/* ------------------------------------------------------------------------- */ +/* Debugging */ +/* ------------------------------------------------------------------------- */ #undef DEBUG_WOLFSSL #undef NO_ERROR_STRINGS @@ -436,9 +436,9 @@ extern int my_rng_gen_block(unsigned char *output, unsigned int sz); #define XSNPRINTF snprintf #endif - /* ------------------------------------------------------------------------- */ - /* Enable Features */ - /* ------------------------------------------------------------------------- */ +/* ------------------------------------------------------------------------- */ +/* Enable Features */ +/* ------------------------------------------------------------------------- */ #define WOLFSSL_TLS13 #define WOLFSSL_OLD_PRIME_CHECK /* Use faster DH prime checking */ @@ -466,7 +466,7 @@ extern int my_rng_gen_block(unsigned char *output, unsigned int sz); // #define NO_CRYPT_BENCHMARK // #define WOLFCRYPT_ONLY -/* do not warm when file is included to be built and not required to be */ +/* do not warn when file is included to be built and not required to be */ //define WOLFSSL_IGNORE_FILE_WARN /* In-lining of misc.c functions */ diff --git a/RPi-Pico/include/wolf/blink.h b/RPi-Pico/include/wolf/blink.h index bf3c2693c..dbc3e86e8 100644 --- a/RPi-Pico/include/wolf/blink.h +++ b/RPi-Pico/include/wolf/blink.h @@ -26,4 +26,4 @@ void blink(int n, int init); #define WOLF_BLINK_INIT 1 -#endif \ No newline at end of file +#endif diff --git a/RPi-Pico/include/wolf/common.h b/RPi-Pico/include/wolf/common.h index 473f7c6f9..9a614518b 100644 --- a/RPi-Pico/include/wolf/common.h +++ b/RPi-Pico/include/wolf/common.h @@ -25,4 +25,4 @@ #define WOLF_SUCCESS 0 #define WOLF_FAIL -1 -#endif \ No newline at end of file +#endif diff --git a/RPi-Pico/include/wolf/tls.h b/RPi-Pico/include/wolf/tls.h index cfbac1b35..810be4734 100644 --- a/RPi-Pico/include/wolf/tls.h +++ b/RPi-Pico/include/wolf/tls.h @@ -22,7 +22,9 @@ #ifndef TLS_H #define TLS_H +#define SOCKET_INVALID -1 + int my_IORecv(WOLFSSL *ssl, char *buff, int sz, void *ctx); int my_IOSend(WOLFSSL *ssl, char *buff, int sz, void *ctx); -#endif \ No newline at end of file +#endif diff --git a/RPi-Pico/include/wolf/wifi.h b/RPi-Pico/include/wolf/wifi.h index eb4983745..e858215c9 100644 --- a/RPi-Pico/include/wolf/wifi.h +++ b/RPi-Pico/include/wolf/wifi.h @@ -25,4 +25,4 @@ int wolf_wifiConnect(const char *ssid, const char *pw, uint32_t auth, uint32_t timeout); int wolf_wifiDisconnect(void); -#endif \ No newline at end of file +#endif diff --git a/RPi-Pico/src/blink.c b/RPi-Pico/src/blink.c index 7b8d978b8..fee8af476 100644 --- a/RPi-Pico/src/blink.c +++ b/RPi-Pico/src/blink.c @@ -55,4 +55,4 @@ void blink(int n, int init) cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 0); SLEEP_MS(250); } -} \ No newline at end of file +} diff --git a/RPi-Pico/src/tcpServer_main.c b/RPi-Pico/src/tcpServer_main.c index a88c74128..d499adce6 100644 --- a/RPi-Pico/src/tcpServer_main.c +++ b/RPi-Pico/src/tcpServer_main.c @@ -175,4 +175,4 @@ void main(void) xTaskCreate(tcpServer_test, "WifiMainThread", STACK_SIZE, NULL, CYW43_TASK_PRIORITY + 1, &task_tcpServer); vTaskStartScheduler(); -} \ No newline at end of file +} diff --git a/RPi-Pico/src/test_main.c b/RPi-Pico/src/test_main.c index e3be773c9..b814dd434 100644 --- a/RPi-Pico/src/test_main.c +++ b/RPi-Pico/src/test_main.c @@ -52,4 +52,4 @@ time_t myTime(time_t *t) { *t = (((2023 - 1970) * 12 + 8) * 30 * 24 * 60 * 60); return *t; -} \ No newline at end of file +} diff --git a/RPi-Pico/src/tlsClient_main.c b/RPi-Pico/src/tlsClient_main.c index e4eb2ccf7..6567a051c 100644 --- a/RPi-Pico/src/tlsClient_main.c +++ b/RPi-Pico/src/tlsClient_main.c @@ -200,4 +200,4 @@ void main(void) xTaskCreate(tlsClient_test, "TLS_MainThread", STACK_SIZE, NULL, CYW43_TASK_PRIORITY + 1, &task_tlsClient); vTaskStartScheduler(); -} \ No newline at end of file +} diff --git a/RPi-Pico/src/tlsServer_main.c b/RPi-Pico/src/tlsServer_main.c index 0c05aeeab..0afbcde89 100644 --- a/RPi-Pico/src/tlsServer_main.c +++ b/RPi-Pico/src/tlsServer_main.c @@ -258,4 +258,4 @@ void main(void) xTaskCreate(tlsServer_test, "TLS_MainThread", STACK_SIZE, NULL, CYW43_TASK_PRIORITY + 1, &task_tlsServer); vTaskStartScheduler(); -} \ No newline at end of file +} diff --git a/RPi-Pico/src/wolfTcp.c b/RPi-Pico/src/wolfTcp.c index 24442822e..589d00c16 100644 --- a/RPi-Pico/src/wolfTcp.c +++ b/RPi-Pico/src/wolfTcp.c @@ -243,4 +243,4 @@ int wolf_TCPread(WOLF_SOCKET_T sock, unsigned char *buff, long unsigned int len) cyw43_arch_poll(); cyw43_arch_wait_for_work_until(make_timeout_time_ms(10)); } -} \ No newline at end of file +} diff --git a/RPi-Pico/tcp_client/CMakeLists.txt b/RPi-Pico/tcp_client/CMakeLists.txt index ededd412e..416de65d4 100644 --- a/RPi-Pico/tcp_client/CMakeLists.txt +++ b/RPi-Pico/tcp_client/CMakeLists.txt @@ -25,4 +25,4 @@ target_link_libraries(tcp_Client pico_enable_stdio_usb(tcp_Client 1) pico_enable_stdio_uart(tcp_Client 1) -pico_add_extra_outputs(tcp_Client) \ No newline at end of file +pico_add_extra_outputs(tcp_Client) diff --git a/RPi-Pico/tcp_server/CMakeLists.txt b/RPi-Pico/tcp_server/CMakeLists.txt index 94f398237..5197a4bb7 100644 --- a/RPi-Pico/tcp_server/CMakeLists.txt +++ b/RPi-Pico/tcp_server/CMakeLists.txt @@ -24,4 +24,4 @@ target_link_libraries(tcp_Server pico_enable_stdio_usb(tcp_Server 1) pico_enable_stdio_uart(tcp_Server 1) -pico_add_extra_outputs(tcp_Server) \ No newline at end of file +pico_add_extra_outputs(tcp_Server) diff --git a/RPi-Pico/testwolfcrypt/CMakeLists.txt b/RPi-Pico/testwolfcrypt/CMakeLists.txt index 1c0c1bc41..bdc6e4815 100644 --- a/RPi-Pico/testwolfcrypt/CMakeLists.txt +++ b/RPi-Pico/testwolfcrypt/CMakeLists.txt @@ -14,4 +14,4 @@ target_link_libraries(testwolfcrypt pico_enable_stdio_usb(testwolfcrypt 1) pico_enable_stdio_uart(testwolfcrypt 1) -pico_add_extra_outputs(testwolfcrypt) \ No newline at end of file +pico_add_extra_outputs(testwolfcrypt) diff --git a/RPi-Pico/tls_client/CMakeLists.txt b/RPi-Pico/tls_client/CMakeLists.txt index 9e36b2c05..ab365cc40 100644 --- a/RPi-Pico/tls_client/CMakeLists.txt +++ b/RPi-Pico/tls_client/CMakeLists.txt @@ -30,4 +30,4 @@ target_link_libraries(tls_Client pico_enable_stdio_usb(tls_Client 1) pico_enable_stdio_uart(tls_Client 1) -pico_add_extra_outputs(tls_Client) \ No newline at end of file +pico_add_extra_outputs(tls_Client) diff --git a/RPi-Pico/tls_server/CMakeLists.txt b/RPi-Pico/tls_server/CMakeLists.txt index 9a49465c8..aef5e2875 100644 --- a/RPi-Pico/tls_server/CMakeLists.txt +++ b/RPi-Pico/tls_server/CMakeLists.txt @@ -29,4 +29,4 @@ target_link_libraries(tls_Server pico_enable_stdio_usb(tls_Server 1) pico_enable_stdio_uart(tls_Server 1) -pico_add_extra_outputs(tls_Server) \ No newline at end of file +pico_add_extra_outputs(tls_Server)