Skip to content

Commit

Permalink
fixed typo and details & added macro
Browse files Browse the repository at this point in the history
  • Loading branch information
yota22721 committed Sep 18, 2024
1 parent 0a6eb6f commit f46fcbf
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 23 deletions.
2 changes: 1 addition & 1 deletion RPi-Pico/benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
pico_add_extra_outputs(benchmark)
2 changes: 1 addition & 1 deletion RPi-Pico/config/lwipopts_examples_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@
#define SLIP_DEBUG LWIP_DBG_OFF
#define DHCP_DEBUG LWIP_DBG_OFF

#endif /* __LWIPOPTS_H__ */
#endif /* __LWIPOPTS_H__ */
14 changes: 7 additions & 7 deletions RPi-Pico/config/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 */
Expand Down Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion RPi-Pico/include/wolf/blink.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ void blink(int n, int init);

#define WOLF_BLINK_INIT 1

#endif
#endif
2 changes: 1 addition & 1 deletion RPi-Pico/include/wolf/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
#define WOLF_SUCCESS 0
#define WOLF_FAIL -1

#endif
#endif
4 changes: 3 additions & 1 deletion RPi-Pico/include/wolf/tls.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
#endif
2 changes: 1 addition & 1 deletion RPi-Pico/include/wolf/wifi.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
int wolf_wifiConnect(const char *ssid, const char *pw, uint32_t auth, uint32_t timeout);
int wolf_wifiDisconnect(void);

#endif
#endif
2 changes: 1 addition & 1 deletion RPi-Pico/src/blink.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ void blink(int n, int init)
cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 0);
SLEEP_MS(250);
}
}
}
2 changes: 1 addition & 1 deletion RPi-Pico/src/tcpServer_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,4 @@ void main(void)
xTaskCreate(tcpServer_test, "WifiMainThread", STACK_SIZE, NULL,
CYW43_TASK_PRIORITY + 1, &task_tcpServer);
vTaskStartScheduler();
}
}
2 changes: 1 addition & 1 deletion RPi-Pico/src/tlsClient_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,4 @@ void main(void)
xTaskCreate(tlsClient_test, "TLS_MainThread", STACK_SIZE, NULL,
CYW43_TASK_PRIORITY + 1, &task_tlsClient);
vTaskStartScheduler();
}
}
2 changes: 1 addition & 1 deletion RPi-Pico/src/tlsServer_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,4 +258,4 @@ void main(void)
xTaskCreate(tlsServer_test, "TLS_MainThread", STACK_SIZE, NULL,
CYW43_TASK_PRIORITY + 1, &task_tlsServer);
vTaskStartScheduler();
}
}
2 changes: 1 addition & 1 deletion RPi-Pico/src/wolfTcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}
2 changes: 1 addition & 1 deletion RPi-Pico/tcp_client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
pico_add_extra_outputs(tcp_Client)
2 changes: 1 addition & 1 deletion RPi-Pico/tcp_server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
pico_add_extra_outputs(tcp_Server)
2 changes: 1 addition & 1 deletion RPi-Pico/testwolfcrypt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
pico_add_extra_outputs(testwolfcrypt)
2 changes: 1 addition & 1 deletion RPi-Pico/tls_client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
pico_add_extra_outputs(tls_Client)
2 changes: 1 addition & 1 deletion RPi-Pico/tls_server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
pico_add_extra_outputs(tls_Server)

0 comments on commit f46fcbf

Please sign in to comment.