summaryrefslogtreecommitdiff
path: root/cmd/sbc_harness
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-25 21:55:07 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-25 21:55:07 -0600
commit7c03983529f6502206cd40692c794b7c6605d9bf (patch)
treeecac9afa4928b6a1c040c97662371c01fde046c3 /cmd/sbc_harness
parent9f4494685a29714c57cc11d62dead71f7004e061 (diff)
Enable pico-sdk for host binaries
Diffstat (limited to 'cmd/sbc_harness')
-rw-r--r--cmd/sbc_harness/CMakeLists.txt6
-rw-r--r--cmd/sbc_harness/hw/w5500.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/cmd/sbc_harness/CMakeLists.txt b/cmd/sbc_harness/CMakeLists.txt
index 54553f0..d6261cb 100644
--- a/cmd/sbc_harness/CMakeLists.txt
+++ b/cmd/sbc_harness/CMakeLists.txt
@@ -3,7 +3,7 @@
# Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com>
# SPDX-Licence-Identifier: AGPL-3.0-or-later
-pico_sdk_init()
+if (PICO_PLATFORM STREQUAL "rp2040")
add_executable(sbc_harness
main.c
@@ -21,7 +21,7 @@ target_link_libraries(sbc_harness
libmisc
libusb
- libdhcp
+ #libdhcp
)
pico_enable_stdio_usb(sbc_harness 0)
@@ -31,3 +31,5 @@ pico_enable_stdio_rtt(sbc_harness 0)
pico_add_extra_outputs(sbc_harness) # create .map/.bin/.hex/.uf2 files in addition to .elf
pico_set_program_url(sbc_harness "https://git.lukeshu.com/sbc-harness")
+
+endif()
diff --git a/cmd/sbc_harness/hw/w5500.c b/cmd/sbc_harness/hw/w5500.c
index 3bcc0a4..6b90b99 100644
--- a/cmd/sbc_harness/hw/w5500.c
+++ b/cmd/sbc_harness/hw/w5500.c
@@ -296,6 +296,7 @@ implements_net_stream_listener *w5500_tcp_listen(struct w5500 *chip, uint8_t soc
return &chip->listeners[socknum];
}
+/*
implements_net_packet_conn *w5500_udp_conn(struct w5500 *chip, uint8_t socknum,
uint16_t port) {
assert(chip);
@@ -307,6 +308,7 @@ implements_net_packet_conn *w5500_udp_conn(struct w5500 *chip, uint8_t socknum,
return &chip->listeners[socknum];
}
+*/
/* tcp_listener methods *******************************************************/