diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-13 15:23:42 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-19 20:15:12 -0700 |
commit | 0360ef3a038c8c3f6f252fdc8f1b91e4cbdd4e39 (patch) | |
tree | 387fde8b794f059484e300bef5fc1051fb30095c /cmd/sbc_harness/main.c | |
parent | 363e741feba2268db9c72215460c627bcc4f33ac (diff) |
libcr: Start to add coroutine names
Diffstat (limited to 'cmd/sbc_harness/main.c')
-rw-r--r-- | cmd/sbc_harness/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/sbc_harness/main.c b/cmd/sbc_harness/main.c index d015259..85dfdfb 100644 --- a/cmd/sbc_harness/main.c +++ b/cmd/sbc_harness/main.c @@ -86,11 +86,11 @@ int main() { usb_common_lateinit(); /* set up coroutines **************************************************/ - coroutine_add(usb_common_cr, NULL); + coroutine_add("usb_common", usb_common_cr, NULL); usb_keyboard_rpc_t keyboard_chan = {0}; - coroutine_add(usb_keyboard_cr, &keyboard_chan); - //coroutine_add(hello_world_cr, &keyboard_chan); - coroutine_add_with_stack_size(4*1024, dhcp_cr, &dev_w5500); + coroutine_add("usb_keyboard", usb_keyboard_cr, &keyboard_chan); + //coroutine_add("hello_world", hello_world_cr, &keyboard_chan); + coroutine_add_with_stack_size(4*1024, "dhcp", dhcp_cr, &dev_w5500); /* event loop *********************************************************/ coroutine_main(); |