diff --git a/nanosoc_board/C_Cxx/hello_world/CMakeLists.txt b/nanosoc_board/C_Cxx/hello_world/CMakeLists.txt index 8067f91262e676afecaa3018a3bbe3a2e394a4f7..2b2bf20245cec5a39ebf4c65d1a926f0dc86b890 100644 --- a/nanosoc_board/C_Cxx/hello_world/CMakeLists.txt +++ b/nanosoc_board/C_Cxx/hello_world/CMakeLists.txt @@ -1,6 +1,5 @@ add_subdirectory(screen) add_subdirectory(usb) add_subdirectory(sdcard) -add_subdirectory(nanosoc) add_subdirectory(nanosoc_serial) add_subdirectory(nanosoc_adp) \ No newline at end of file diff --git a/nanosoc_board/C_Cxx/hello_world/nanosoc/CMakeLists.txt b/nanosoc_board/C_Cxx/hello_world/nanosoc/CMakeLists.txt deleted file mode 100644 index 3aab5e61b7c460ccb28e7556c0fc70fb597800ac..0000000000000000000000000000000000000000 --- a/nanosoc_board/C_Cxx/hello_world/nanosoc/CMakeLists.txt +++ /dev/null @@ -1,25 +0,0 @@ -if (TARGET tinyusb_device) - add_executable(hello_world_nanosoc - hello_world_nanosoc.c - ) - - # Create C header file with the name <pio program>.pio.h - pico_generate_pio_header(hello_world_nanosoc - ${SOCLABS_PIO_PATH}/ft1248x1/ft1248x1_sm.pio - ) - # pull in common dependencies - target_link_libraries(hello_world_nanosoc - pico_stdlib - hardware_pio) - - # enable usb output, disable uart output - pico_enable_stdio_usb(hello_world_nanosoc 1) - pico_enable_stdio_uart(hello_world_nanosoc 0) - - # create map/bin/hex/uf2 file etc. - pico_add_extra_outputs(hello_world_nanosoc) - - # add url via pico_set_program_url -elseif(PICO_ON_DEVICE) - message(WARNING "not building hello_world_nanosoc because TinyUSB submodule is not initialized in the SDK") -endif() diff --git a/nanosoc_board/C_Cxx/hello_world/nanosoc/hello_world_nanosoc.c b/nanosoc_board/C_Cxx/hello_world/nanosoc/hello_world_nanosoc.c deleted file mode 100644 index 04c0f71401e887d865906f7956a5b267edbd19be..0000000000000000000000000000000000000000 --- a/nanosoc_board/C_Cxx/hello_world/nanosoc/hello_world_nanosoc.c +++ /dev/null @@ -1,33 +0,0 @@ -#include <stdio.h> -#include "pico/stdlib.h" -#include "hardware/pio.h" -#include "hardware/clocks.h" -#include "ft1248x1_sm.pio.h" - -int main(){ - stdio_init_all(); - sleep_ms(500); - - PIO pio = pio0; - - if(pio_sm_is_claimed(pio,0)) - { - while(1){ - printf("ERROR: SM 0 ALREADY CLAIMED\n"); - sleep_ms(200); - } - } - else { - printf("Hello, world! From RP2040\n"); - ft1248x1_sm_program_init(pio); - while(1){ - while(pio_sm_is_rx_fifo_empty(pio,0)){ - printf("PC = %d\n", pio_sm_get_pc(pio,0)); - sleep_ms(500); - pio_sm_restart(pio,0); - } - uint32_t c = pio_sm_get(pio, 0); - printf("%d", c); - } - } -} \ No newline at end of file