From 38a8f4e0a57908abb3b0425332f775ec00bb5df5 Mon Sep 17 00:00:00 2001 From: qqwang Date: Mon, 21 Jun 2021 12:49:38 +0800 Subject: [PATCH] [fix] update cdkproj settings --- .../cdk/adc_continuous_differential.cdkproj | 2 +- .../cdk/adc_continuous_single_ended.cdkproj | 2 +- examples/adc/adc_key/cdk/adc_key.cdkproj | 4 +- .../cdk/adc_one_shot_differential.cdkproj | 2 +- .../cdk/adc_one_shot_single_ended.cdkproj | 2 +- .../cdk/adc_scan_single_ended.cdkproj | 2 +- .../adc_vbat_poll/cdk/adc_vbat_poll.cdkproj | 2 +- .../cdk/camera_interleave.cdkproj | 2 +- .../cdk/camera_interleave_psram.cdkproj | 2 +- .../camera/camera_lcd/cdk/camera_lcd.cdkproj | 2 +- examples/dac/dac_dma/cdk/dac_dma.cdkproj | 2 +- examples/dac/dac_poll/cdk/dac_poll.cdkproj | 4 +- examples/dma/dma_m2m/cdk/dma_m2m.cdkproj | 2 +- .../flash_rw_test/cdk/flash_rw_test.cdkproj | 2 +- .../cdk/freertos_semaphore.cdkproj | 8 +- .../gpio/gpio_blink/cdk/gpio_blink.cdkproj | 2 +- .../gpio/gpio_dht11/cdk/gpio_dht11.cdkproj | 4 +- examples/gpio/gpio_int/cdk/gpio_blink.cdkproj | 2 +- examples/gpio/gpio_int/cdk/gpio_int.cdkproj | 920 ++++++++++++++++++ .../hellowd/helloworld/cdk/helloworld.cdkproj | 2 +- .../i2c/i2c_at24cxx/cdk/i2c_at24cxx.cdkproj | 2 +- .../i2c/i2c_bmp180/cdk/i2c_bmp180.cdkproj | 2 +- .../cdk/i2s_play_from_flash.cdkproj | 2 +- examples/memheap/cdk/memheap.cdkproj | 2 +- examples/pka/sec_dsa/cdk/sec_dsa.cdkproj | 2 +- examples/pka/sec_ecdh/cdk/sec_ecdh.cdkproj | 2 +- examples/pka/sec_ecdsa/cdk/sec_ecdsa.cdkproj | 2 +- .../power/lowpower_test/cdk/powerTest.cdkproj | 2 +- .../cdk/psram_random_w_r.cdkproj | 2 +- .../psram_sf_write_read/cdk/psram_w_r.cdkproj | 2 +- .../pwm_breath_led/cdk/pwm_breath_led.cdkproj | 4 +- .../{ => pwm}/pwm_dc_motor/CMakeLists.txt | 10 +- .../pwm_dc_motor/cdk/pwm_dc_motor.cdkproj | 2 +- examples/{ => pwm}/pwm_dc_motor/main.c | 174 ++-- examples/{ => pwm}/pwm_dc_motor/readme.md | 30 +- examples/pwm/pwm_it/cdk/pwm_it.cdkproj | 2 +- .../{ => pwm}/pwm_step_motor/CMakeLists.txt | 10 +- .../pwm_step_motor/cdk/pwm_step_motor.cdkproj | 2 +- examples/{ => pwm}/pwm_step_motor/main.c | 278 +++--- examples/{ => pwm}/pwm_step_motor/readme.md | 32 +- examples/shell/cdk/shell.cdkproj | 2 +- .../spi/spi_dma_sd/cdk/spi_dma_sd.cdkproj | 2 +- .../spi/spi_gsl61xx/cdk/spi_gsl161.cdkproj | 4 +- examples/spi/spi_lcd/cdk/spi_lcd.cdkproj | 2 +- .../spi/spi_loopback/cdk/spi_loopback.cdkproj | 2 +- .../timer/timer_basic/cdk/timer_basic.cdkproj | 2 +- .../timer/timer_int/cdk/timer_int.cdkproj | 2 +- examples/uart/uart_dma/cdk/uart_dma.cdkproj | 2 +- examples/uart/uart_echo/cdk/uart_echo.cdkproj | 4 +- examples/uart/uart_poll/cdk/uart_poll.cdkproj | 2 +- .../uart/uart_rx_it/cdk/uart_rx_it.cdkproj | 2 +- examples/usb/usb2uart/cdk/usb2uart_st.cdkproj | 2 +- ..._loopback.cdkproj => usb_cdc_acm2.cdkproj} | 4 +- .../cdk/usb_cdc_loopback.cdkproj | 2 +- .../usb/usb_cdc_msc/cdk/usb_cdc_msc.cdkproj | 2 +- .../usb_cdc_video/cdk/usb_cdc_video.cdkproj | 4 +- .../usb/usb_msc_ram/cdk/usb_msc_ram.cdkproj | 2 +- .../usb/usb_msc_sd/cdk/usb_msc_sd.cdkproj | 2 +- examples/usb/usb_video/cdk/usb_video.cdkproj | 4 +- 59 files changed, 1252 insertions(+), 330 deletions(-) create mode 100644 examples/gpio/gpio_int/cdk/gpio_int.cdkproj rename examples/{ => pwm}/pwm_dc_motor/CMakeLists.txt (87%) rename examples/{ => pwm}/pwm_dc_motor/cdk/pwm_dc_motor.cdkproj (99%) rename examples/{ => pwm}/pwm_dc_motor/main.c (93%) rename examples/{ => pwm}/pwm_dc_motor/readme.md (85%) rename examples/{ => pwm}/pwm_step_motor/CMakeLists.txt (87%) rename examples/{ => pwm}/pwm_step_motor/cdk/pwm_step_motor.cdkproj (99%) rename examples/{ => pwm}/pwm_step_motor/main.c (97%) rename examples/{ => pwm}/pwm_step_motor/readme.md (95%) rename examples/usb/usb_cdc_acm2/cdk/{usb_cdc_loopback.cdkproj => usb_cdc_acm2.cdkproj} (99%) diff --git a/examples/adc/adc_continuous_differential/cdk/adc_continuous_differential.cdkproj b/examples/adc/adc_continuous_differential/cdk/adc_continuous_differential.cdkproj index 49c38b25..fb8e9a18 100644 --- a/examples/adc/adc_continuous_differential/cdk/adc_continuous_differential.cdkproj +++ b/examples/adc/adc_continuous_differential/cdk/adc_continuous_differential.cdkproj @@ -475,7 +475,7 @@ Board: bl70x_iot - + diff --git a/examples/adc/adc_continuous_single_ended/cdk/adc_continuous_single_ended.cdkproj b/examples/adc/adc_continuous_single_ended/cdk/adc_continuous_single_ended.cdkproj index 956411e3..5fc4e184 100644 --- a/examples/adc/adc_continuous_single_ended/cdk/adc_continuous_single_ended.cdkproj +++ b/examples/adc/adc_continuous_single_ended/cdk/adc_continuous_single_ended.cdkproj @@ -475,7 +475,7 @@ Board: bl70x_iot - + diff --git a/examples/adc/adc_key/cdk/adc_key.cdkproj b/examples/adc/adc_key/cdk/adc_key.cdkproj index 33dc5816..924ff78a 100644 --- a/examples/adc/adc_key/cdk/adc_key.cdkproj +++ b/examples/adc/adc_key/cdk/adc_key.cdkproj @@ -473,7 +473,7 @@ Board: bl70x_iot - + @@ -789,7 +789,7 @@ Board: bl70x_iot - BL702;BL702_EVB;ARCH_RISCV; + ARCH_RISCV; Optimize more (-O2) Default (-g) diff --git a/examples/adc/adc_one_shot_differential/cdk/adc_one_shot_differential.cdkproj b/examples/adc/adc_one_shot_differential/cdk/adc_one_shot_differential.cdkproj index 261aca38..b52ac246 100644 --- a/examples/adc/adc_one_shot_differential/cdk/adc_one_shot_differential.cdkproj +++ b/examples/adc/adc_one_shot_differential/cdk/adc_one_shot_differential.cdkproj @@ -475,7 +475,7 @@ Board: bl70x_iot - + diff --git a/examples/adc/adc_one_shot_single_ended/cdk/adc_one_shot_single_ended.cdkproj b/examples/adc/adc_one_shot_single_ended/cdk/adc_one_shot_single_ended.cdkproj index cad6b70b..7cce10dc 100644 --- a/examples/adc/adc_one_shot_single_ended/cdk/adc_one_shot_single_ended.cdkproj +++ b/examples/adc/adc_one_shot_single_ended/cdk/adc_one_shot_single_ended.cdkproj @@ -475,7 +475,7 @@ Board: bl70x_iot - + diff --git a/examples/adc/adc_scan_single_ended/cdk/adc_scan_single_ended.cdkproj b/examples/adc/adc_scan_single_ended/cdk/adc_scan_single_ended.cdkproj index 1e03e098..3e05f5b0 100644 --- a/examples/adc/adc_scan_single_ended/cdk/adc_scan_single_ended.cdkproj +++ b/examples/adc/adc_scan_single_ended/cdk/adc_scan_single_ended.cdkproj @@ -475,7 +475,7 @@ Board: bl70x_iot - + diff --git a/examples/adc/adc_vbat_poll/cdk/adc_vbat_poll.cdkproj b/examples/adc/adc_vbat_poll/cdk/adc_vbat_poll.cdkproj index db894364..5fc7064f 100644 --- a/examples/adc/adc_vbat_poll/cdk/adc_vbat_poll.cdkproj +++ b/examples/adc/adc_vbat_poll/cdk/adc_vbat_poll.cdkproj @@ -475,7 +475,7 @@ Board: bl70x_iot - + diff --git a/examples/camera/camera_interleave/cdk/camera_interleave.cdkproj b/examples/camera/camera_interleave/cdk/camera_interleave.cdkproj index 6b3cdad4..3a362da6 100644 --- a/examples/camera/camera_interleave/cdk/camera_interleave.cdkproj +++ b/examples/camera/camera_interleave/cdk/camera_interleave.cdkproj @@ -480,7 +480,7 @@ Board: bl70x_iot - + diff --git a/examples/camera/camera_interleave_psram/cdk/camera_interleave_psram.cdkproj b/examples/camera/camera_interleave_psram/cdk/camera_interleave_psram.cdkproj index 3878b9f4..10ced9d1 100644 --- a/examples/camera/camera_interleave_psram/cdk/camera_interleave_psram.cdkproj +++ b/examples/camera/camera_interleave_psram/cdk/camera_interleave_psram.cdkproj @@ -483,7 +483,7 @@ Board: bl70x_iot - + diff --git a/examples/camera/camera_lcd/cdk/camera_lcd.cdkproj b/examples/camera/camera_lcd/cdk/camera_lcd.cdkproj index 3dc4f01a..9d4abdc8 100644 --- a/examples/camera/camera_lcd/cdk/camera_lcd.cdkproj +++ b/examples/camera/camera_lcd/cdk/camera_lcd.cdkproj @@ -486,7 +486,7 @@ Board: bl70x_iot - + diff --git a/examples/dac/dac_dma/cdk/dac_dma.cdkproj b/examples/dac/dac_dma/cdk/dac_dma.cdkproj index bac3c113..6428c7e4 100644 --- a/examples/dac/dac_dma/cdk/dac_dma.cdkproj +++ b/examples/dac/dac_dma/cdk/dac_dma.cdkproj @@ -475,7 +475,7 @@ Board: bl70x_iot - + diff --git a/examples/dac/dac_poll/cdk/dac_poll.cdkproj b/examples/dac/dac_poll/cdk/dac_poll.cdkproj index 3d7d9bf6..934bc12c 100644 --- a/examples/dac/dac_poll/cdk/dac_poll.cdkproj +++ b/examples/dac/dac_poll/cdk/dac_poll.cdkproj @@ -473,7 +473,7 @@ Board: bl70x_iot - + @@ -789,7 +789,7 @@ Board: bl70x_iot - BL702;BL702_EVB;ARCH_RISCV; + ARCH_RISCV; Optimize more (-O2) Default (-g) diff --git a/examples/dma/dma_m2m/cdk/dma_m2m.cdkproj b/examples/dma/dma_m2m/cdk/dma_m2m.cdkproj index 0c767419..b7d0e0c3 100644 --- a/examples/dma/dma_m2m/cdk/dma_m2m.cdkproj +++ b/examples/dma/dma_m2m/cdk/dma_m2m.cdkproj @@ -475,7 +475,7 @@ Board: bl70x_iot - + diff --git a/examples/flash/flash_rw_test/cdk/flash_rw_test.cdkproj b/examples/flash/flash_rw_test/cdk/flash_rw_test.cdkproj index 58a5add8..3cf68dbc 100644 --- a/examples/flash/flash_rw_test/cdk/flash_rw_test.cdkproj +++ b/examples/flash/flash_rw_test/cdk/flash_rw_test.cdkproj @@ -480,7 +480,7 @@ Board: bl70x_iot - + diff --git a/examples/freertos/freertos_semaphore/cdk/freertos_semaphore.cdkproj b/examples/freertos/freertos_semaphore/cdk/freertos_semaphore.cdkproj index cd142437..80d0f82b 100644 --- a/examples/freertos/freertos_semaphore/cdk/freertos_semaphore.cdkproj +++ b/examples/freertos/freertos_semaphore/cdk/freertos_semaphore.cdkproj @@ -477,7 +477,7 @@ Board: bl70x_iot - + @@ -648,7 +648,7 @@ Board: bl70x_iot Optimize more (-O2) Default (-g) - $(ProjectPath);$(ProjectPath)../;$(ProjectPath)../../../../components/fatfs;$(ProjectPath)../../../../components/freertos/Source/include;$(ProjectPath)../../../../components/shell;$(ProjectPath)../../../../components/usb_stack/class/audio;$(ProjectPath)../../../../components/usb_stack/class/cdc;$(ProjectPath)../../../../components/usb_stack/class/hid;$(ProjectPath)../../../../components/usb_stack/class/msc;$(ProjectPath)../../../../components/usb_stack/class/video;$(ProjectPath)../../../../components/usb_stack/class/webusb;$(ProjectPath)../../../../components/usb_stack/class/winusb;$(ProjectPath)../../../../components/usb_stack/common;$(ProjectPath)../../../../components/usb_stack/core;$(ProjectPath)../../../../bsp/board/bl706_iot;$(ProjectPath)../../../../bsp/bsp_common/platform;$(ProjectPath)../../../../common/libc/inc;$(ProjectPath)../../../../common/libc/inc/arm_gcc;$(ProjectPath)../../../../common/libc/inc/bits;$(ProjectPath)../../../../common/libc/inc/sys;$(ProjectPath)../../../../common/libc/src;$(ProjectPath)../../../../common/device;$(ProjectPath)../../../../common/list;$(ProjectPath)../../../../common/memheap;$(ProjectPath)../../../../common/misc;$(ProjectPath)../../../../common/ring_buffer;$(ProjectPath)../../../../common/soft_crc;$(ProjectPath)../../../../components/shell;$(ProjectPath)../../../../drivers/bl702_driver/hal_drv/default_config;$(ProjectPath)../../../../drivers/bl702_driver/risc-v/Core/Include;$(ProjectPath)../../../../drivers/bl702_driver/hal_drv/inc;$(ProjectPath)../../../../drivers/bl702_driver/regs;$(ProjectPath)../../../../drivers/bl702_driver/startup;$(ProjectPath)../../../../drivers/bl702_driver/std_drv/inc + $(ProjectPath);$(ProjectPath)../;$(ProjectPath)../../../../components/fatfs;$(ProjectPath)../../../../components/freertos/Source/include;$(ProjectPath)../../../../components/shell;$(ProjectPath)../../../../components/usb_stack/class/audio;$(ProjectPath)../../../../components/usb_stack/class/cdc;$(ProjectPath)../../../../components/usb_stack/class/hid;$(ProjectPath)../../../../components/usb_stack/class/msc;$(ProjectPath)../../../../components/usb_stack/class/video;$(ProjectPath)../../../../components/usb_stack/class/webusb;$(ProjectPath)../../../../components/usb_stack/class/winusb;$(ProjectPath)../../../../components/usb_stack/common;$(ProjectPath)../../../../components/usb_stack/core;$(ProjectPath)../../../../bsp/board/bl706_iot;$(ProjectPath)../../../../bsp/bsp_common/platform;$(ProjectPath)../../../../common/libc/inc;$(ProjectPath)../../../../common/libc/inc/arm_gcc;$(ProjectPath)../../../../common/libc/inc/bits;$(ProjectPath)../../../../common/libc/inc/sys;$(ProjectPath)../../../../common/libc/src;$(ProjectPath)../../../../common/device;$(ProjectPath)../../../../common/list;$(ProjectPath)../../../../common/memheap;$(ProjectPath)../../../../common/misc;$(ProjectPath)../../../../common/ring_buffer;$(ProjectPath)../../../../common/soft_crc;$(ProjectPath)../../../../components/shell;$(ProjectPath)../../../../components/freertos/include;$(ProjectPath)../../../../components/freertos/portable/gcc/risc-v/bl702;$(ProjectPath)../../../../drivers/bl702_driver/hal_drv/default_config;$(ProjectPath)../../../../drivers/bl702_driver/risc-v/Core/Include;$(ProjectPath)../../../../drivers/bl702_driver/hal_drv/inc;$(ProjectPath)../../../../drivers/bl702_driver/regs;$(ProjectPath)../../../../drivers/bl702_driver/startup;$(ProjectPath)../../../../drivers/bl702_driver/std_drv/inc -fshort-enums -fno-common -fms-extensions -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Wshift-negative-value -Wchar-subscripts -Wformat -Wuninitialized -Winit-self -fno-jump-tables -Wignored-qualifiers -Wswitch-default -Wunused -Wundef -msmall-data-limit=4 no no @@ -662,9 +662,9 @@ Board: bl70x_iot no - + portasmHANDLE_INTERRUPT=FreeRTOS_Interrupt_Handler; - $(ProjectPath);$(ProjectPath)../;$(ProjectPath)../../../../components/fatfs;$(ProjectPath)../../../../components/freertos/Source/include;$(ProjectPath)../../../../components/shell;$(ProjectPath)../../../../components/usb_stack/class/audio;$(ProjectPath)../../../../components/usb_stack/class/cdc;$(ProjectPath)../../../../components/usb_stack/class/hid;$(ProjectPath)../../../../components/usb_stack/class/msc;$(ProjectPath)../../../../components/usb_stack/class/video;$(ProjectPath)../../../../components/usb_stack/class/webusb;$(ProjectPath)../../../../components/usb_stack/class/winusb;$(ProjectPath)../../../../components/usb_stack/common;$(ProjectPath)../../../../components/usb_stack/core;$(ProjectPath)../../../../bsp/board/bl706_iot;$(ProjectPath)../../../../bsp/bsp_common/platform;$(ProjectPath)../../../../common/device;$(ProjectPath)../../../../common/list;$(ProjectPath)../../../../common/memheap;$(ProjectPath)../../../../common/misc;$(ProjectPath)../../../../common/ring_buffer;$(ProjectPath)../../../../common/soft_crc;$(ProjectPath)../../../../components/shell;$(ProjectPath)../../../../drivers/bl702_driver/hal_drv/default_config;$(ProjectPath)../../../../drivers/bl702_driver/hal_drv/inc;$(ProjectPath)../../../../drivers/bl702_driver/risc-v/Core/Include;$(ProjectPath)../../../../drivers/bl702_driver/regs;$(ProjectPath)../../../../drivers/bl702_driver/startup;$(ProjectPath)../../../../drivers/bl702_driver/std_drv/inc;$(ProjectPath)../../../../drivers/bl602_driver/risc-v/Core/Include;$(ProjectPath)../../../../drivers/bl602_driver/startup;$(ProjectPath)../../../../drivers/bl602_driver/hal_drv/inc;$(ProjectPath)../../../../drivers/bl602_driver/hal_drv/default_config;$(ProjectPath)../../../../drivers/bl602_driver/regs;$(ProjectPath)../../../../drivers/bl602_driver/std_drv/inc + $(ProjectPath);$(ProjectPath)../;$(ProjectPath)../../../../components/fatfs;$(ProjectPath)../../../../components/freertos/Source/include;$(ProjectPath)../../../../components/shell;$(ProjectPath)../../../../components/usb_stack/class/audio;$(ProjectPath)../../../../components/usb_stack/class/cdc;$(ProjectPath)../../../../components/usb_stack/class/hid;$(ProjectPath)../../../../components/usb_stack/class/msc;$(ProjectPath)../../../../components/usb_stack/class/video;$(ProjectPath)../../../../components/usb_stack/class/webusb;$(ProjectPath)../../../../components/usb_stack/class/winusb;$(ProjectPath)../../../../components/usb_stack/common;$(ProjectPath)../../../../components/usb_stack/core;$(ProjectPath)../../../../bsp/board/bl706_iot;$(ProjectPath)../../../../bsp/bsp_common/platform;$(ProjectPath)../../../../common/device;$(ProjectPath)../../../../common/list;$(ProjectPath)../../../../common/memheap;$(ProjectPath)../../../../common/misc;$(ProjectPath)../../../../common/ring_buffer;$(ProjectPath)../../../../common/soft_crc;$(ProjectPath)../../../../components/shell;$(ProjectPath)../../../../components/freertos/include;$(ProjectPath)../../../../components/freertos/portable/gcc/risc-v/bl702;$(ProjectPath)../../../../drivers/bl702_driver/hal_drv/default_config;$(ProjectPath)../../../../drivers/bl702_driver/hal_drv/inc;$(ProjectPath)../../../../drivers/bl702_driver/risc-v/Core/Include;$(ProjectPath)../../../../drivers/bl702_driver/regs;$(ProjectPath)../../../../drivers/bl702_driver/startup;$(ProjectPath)../../../../drivers/bl702_driver/std_drv/inc gdwarf2 diff --git a/examples/gpio/gpio_blink/cdk/gpio_blink.cdkproj b/examples/gpio/gpio_blink/cdk/gpio_blink.cdkproj index 88e5c9f7..a5817248 100644 --- a/examples/gpio/gpio_blink/cdk/gpio_blink.cdkproj +++ b/examples/gpio/gpio_blink/cdk/gpio_blink.cdkproj @@ -477,7 +477,7 @@ Board: bl70x_iot - + diff --git a/examples/gpio/gpio_dht11/cdk/gpio_dht11.cdkproj b/examples/gpio/gpio_dht11/cdk/gpio_dht11.cdkproj index 0bfd8540..9b801454 100644 --- a/examples/gpio/gpio_dht11/cdk/gpio_dht11.cdkproj +++ b/examples/gpio/gpio_dht11/cdk/gpio_dht11.cdkproj @@ -477,7 +477,7 @@ Board: bl70x_iot - + @@ -788,7 +788,7 @@ Board: bl70x_iot - yes + no $(ProjectPath)../../../../tools/bflb_flash_tool/bflb_mcu_tool.exe --chipname=bl702 --interface=openocd --firmware="$(ProjectPath)/Obj/$(ProjectName).bin" diff --git a/examples/gpio/gpio_int/cdk/gpio_blink.cdkproj b/examples/gpio/gpio_int/cdk/gpio_blink.cdkproj index 2f19c215..1bb18552 100644 --- a/examples/gpio/gpio_int/cdk/gpio_blink.cdkproj +++ b/examples/gpio/gpio_int/cdk/gpio_blink.cdkproj @@ -477,7 +477,7 @@ Board: bl70x_iot - + diff --git a/examples/gpio/gpio_int/cdk/gpio_int.cdkproj b/examples/gpio/gpio_int/cdk/gpio_int.cdkproj new file mode 100644 index 00000000..82bb399b --- /dev/null +++ b/examples/gpio/gpio_int/cdk/gpio_int.cdkproj @@ -0,0 +1,920 @@ + + + CPU: RV32IMAFC +Chip: bl70x +Board: bl70x_iot + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 154 + 104 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + no + 0x23000000 + 0x100000 + + + no + 0x22014000 + 0x4000 + + + no + 0x42018000 + 0x8000 + + + no + + + + + no + + + + + + + yes + 0x42020000 + 0xc000 + yes + + + no + + + yes + + + no + + + yes + + + no + + + yes + + + no + + + yes + + + rv32imafc + no + little + no + no + no + no + + + $(ProjectName) + Executable + no + yes + no + yes + no + yes + + + + no + + + + no + + + + no + $(ProjectPath)../../../../tools/bflb_flash_tool/bflb_mcu_tool.exe --chipname=bl702 --interface=openocd --firmware="$(ProjectPath)/Obj/$(ProjectName).bin" + + + + ARCH_RISCV; + + Optimize more (-O2) + Default (-g) + $(ProjectPath);$(ProjectPath)../;$(ProjectPath)../../../../components/fatfs;$(ProjectPath)../../../../components/freertos/Source/include;$(ProjectPath)../../../../components/shell;$(ProjectPath)../../../../components/usb_stack/class/audio;$(ProjectPath)../../../../components/usb_stack/class/cdc;$(ProjectPath)../../../../components/usb_stack/class/hid;$(ProjectPath)../../../../components/usb_stack/class/msc;$(ProjectPath)../../../../components/usb_stack/class/video;$(ProjectPath)../../../../components/usb_stack/class/webusb;$(ProjectPath)../../../../components/usb_stack/class/winusb;$(ProjectPath)../../../../components/usb_stack/common;$(ProjectPath)../../../../components/usb_stack/core;$(ProjectPath)../../../../bsp/board/bl706_iot;$(ProjectPath)../../../../bsp/bsp_common/platform;$(ProjectPath)../../../../common/libc/inc;$(ProjectPath)../../../../common/libc/inc/arm_gcc;$(ProjectPath)../../../../common/libc/inc/bits;$(ProjectPath)../../../../common/libc/inc/sys;$(ProjectPath)../../../../common/libc/src;$(ProjectPath)../../../../common/device;$(ProjectPath)../../../../common/list;$(ProjectPath)../../../../common/memheap;$(ProjectPath)../../../../common/misc;$(ProjectPath)../../../../common/ring_buffer;$(ProjectPath)../../../../common/soft_crc;$(ProjectPath)../../../../components/shell;$(ProjectPath)../../../../drivers/bl702_driver/hal_drv/default_config;$(ProjectPath)../../../../drivers/bl702_driver/risc-v/Core/Include;$(ProjectPath)../../../../drivers/bl702_driver/hal_drv/inc;$(ProjectPath)../../../../drivers/bl702_driver/regs;$(ProjectPath)../../../../drivers/bl702_driver/startup;$(ProjectPath)../../../../drivers/bl702_driver/std_drv/inc + -fshort-enums -fno-common -fms-extensions -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Wshift-negative-value -Wchar-subscripts -Wformat -Wuninitialized -Winit-self -fno-jump-tables -Wignored-qualifiers -Wswitch-default -Wunused -Wundef -msmall-data-limit=4 + no + no + no + no + no + no + yes + no + yes + no + + + + + $(ProjectPath);$(ProjectPath)../;$(ProjectPath)../../../../components/fatfs;$(ProjectPath)../../../../components/freertos/Source/include;$(ProjectPath)../../../../components/shell;$(ProjectPath)../../../../components/usb_stack/class/audio;$(ProjectPath)../../../../components/usb_stack/class/cdc;$(ProjectPath)../../../../components/usb_stack/class/hid;$(ProjectPath)../../../../components/usb_stack/class/msc;$(ProjectPath)../../../../components/usb_stack/class/video;$(ProjectPath)../../../../components/usb_stack/class/webusb;$(ProjectPath)../../../../components/usb_stack/class/winusb;$(ProjectPath)../../../../components/usb_stack/common;$(ProjectPath)../../../../components/usb_stack/core;$(ProjectPath)../../../../bsp/board/bl706_iot;$(ProjectPath)../../../../bsp/bsp_common/platform;$(ProjectPath)../../../../common/device;$(ProjectPath)../../../../common/list;$(ProjectPath)../../../../common/memheap;$(ProjectPath)../../../../common/misc;$(ProjectPath)../../../../common/ring_buffer;$(ProjectPath)../../../../common/soft_crc;$(ProjectPath)../../../../components/shell;$(ProjectPath)../../../../drivers/bl702_driver/hal_drv/default_config;$(ProjectPath)../../../../drivers/bl702_driver/hal_drv/inc;$(ProjectPath)../../../../drivers/bl702_driver/risc-v/Core/Include;$(ProjectPath)../../../../drivers/bl702_driver/regs;$(ProjectPath)../../../../drivers/bl702_driver/startup;$(ProjectPath)../../../../drivers/bl702_driver/std_drv/inc;$(ProjectPath)../../../../drivers/bl602_driver/risc-v/Core/Include;$(ProjectPath)../../../../drivers/bl602_driver/startup;$(ProjectPath)../../../../drivers/bl602_driver/hal_drv/inc;$(ProjectPath)../../../../drivers/bl602_driver/hal_drv/default_config;$(ProjectPath)../../../../drivers/bl602_driver/regs;$(ProjectPath)../../../../drivers/bl602_driver/std_drv/inc + + gdwarf2 + + + yes + yes + $(ProjectPath)../../../../drivers/bl702_driver/bl702_flash.ld + + + + no + + + + yes + OpenOCD + yes + main + + $(ProjectPath)/../../../../tools/openocd/bl70x_gdb.init + yes + Hard Reset + 23000000 + no + no + $(ProjectPath)/$(ProjectName).cdkcore + + localhost + 1025 + 0 + 2000 + 10 + 50 + yes + no + no + Normal + Hard Reset + 21000000 + Bare Metal + yes + yes + + Local + -arch riscv + + + + + yes + no + no + + + openocd-hifive + no + 4444 + no + 6666 + -f ../../../../tools/openocd/if_rv_dbg_plus.cfg -f ../../../../tools/openocd/tgt_702.cfg + + + + + Erase Sectors + bl70x_flasher.elf + yes + yes + no + Hard Reset + + no + + + + + + + + + no + 0x23000000 + 0x100000 + + + no + 0x22014000 + 0x4000 + + + no + 0x42018000 + 0x8000 + + + no + + + + + no + + + + + + + yes + 0x42020000 + 0xc000 + yes + + + no + + + yes + + + no + + + yes + + + no + + + yes + + + no + + + yes + + + rv32imafc + no + little + no + no + no + no + + + $(ProjectName) + Executable + no + yes + no + yes + no + yes + + + + no + + + + no + + + + no + $(ProjectPath)../../../../tools/bflb_flash_tool/bflb_mcu_tool.exe --chipname=bl702 --interface=openocd --firmware="$(ProjectPath)/Obj/$(ProjectName).bin" + + + + ARCH_RISCV; + + Optimize more (-O2) + Default (-g) + $(ProjectPath);$(ProjectPath)../;$(ProjectPath)../../../../components/fatfs;$(ProjectPath)../../../../components/freertos/Source/include;$(ProjectPath)../../../../components/shell;$(ProjectPath)../../../../components/usb_stack/class/audio;$(ProjectPath)../../../../components/usb_stack/class/cdc;$(ProjectPath)../../../../components/usb_stack/class/hid;$(ProjectPath)../../../../components/usb_stack/class/msc;$(ProjectPath)../../../../components/usb_stack/class/video;$(ProjectPath)../../../../components/usb_stack/class/webusb;$(ProjectPath)../../../../components/usb_stack/class/winusb;$(ProjectPath)../../../../components/usb_stack/common;$(ProjectPath)../../../../components/usb_stack/core;$(ProjectPath)../../../../bsp/board/bl706_iot;$(ProjectPath)../../../../bsp/bsp_common/platform;$(ProjectPath)../../../../common/libc/inc;$(ProjectPath)../../../../common/libc/inc/arm_gcc;$(ProjectPath)../../../../common/libc/inc/bits;$(ProjectPath)../../../../common/libc/inc/sys;$(ProjectPath)../../../../common/libc/src;$(ProjectPath)../../../../common/device;$(ProjectPath)../../../../common/list;$(ProjectPath)../../../../common/memheap;$(ProjectPath)../../../../common/misc;$(ProjectPath)../../../../common/ring_buffer;$(ProjectPath)../../../../common/soft_crc;$(ProjectPath)../../../../components/shell;$(ProjectPath)../../../../drivers/bl702_driver/hal_drv/default_config;$(ProjectPath)../../../../drivers/bl702_driver/risc-v/Core/Include;$(ProjectPath)../../../../drivers/bl702_driver/hal_drv/inc;$(ProjectPath)../../../../drivers/bl702_driver/regs;$(ProjectPath)../../../../drivers/bl702_driver/startup;$(ProjectPath)../../../../drivers/bl702_driver/std_drv/inc;$(ProjectPath)../../../../drivers/bl602_driver/risc-v/Core/Include;$(ProjectPath)../../../../drivers/bl602_driver/hal_drv/inc;$(ProjectPath)../../../../drivers/bl602_driver/hal_drv/default_config;$(ProjectPath)../../../../drivers/bl602_driver/regs;$(ProjectPath)../../../../drivers/bl602_driver/std_drv/inc + -fshort-enums -fno-common -fms-extensions -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Wshift-negative-value -Wchar-subscripts -Wformat -Wuninitialized -Winit-self -fno-jump-tables -Wignored-qualifiers -Wswitch-default -Wunused -Wundef -msmall-data-limit=4 + no + no + no + no + no + no + yes + no + yes + no + + + + + $(ProjectPath);$(ProjectPath)../;$(ProjectPath)../../../../components/fatfs;$(ProjectPath)../../../../components/freertos/Source/include;$(ProjectPath)../../../../components/shell;$(ProjectPath)../../../../components/usb_stack/class/audio;$(ProjectPath)../../../../components/usb_stack/class/cdc;$(ProjectPath)../../../../components/usb_stack/class/hid;$(ProjectPath)../../../../components/usb_stack/class/msc;$(ProjectPath)../../../../components/usb_stack/class/video;$(ProjectPath)../../../../components/usb_stack/class/webusb;$(ProjectPath)../../../../components/usb_stack/class/winusb;$(ProjectPath)../../../../components/usb_stack/common;$(ProjectPath)../../../../components/usb_stack/core;$(ProjectPath)../../../../bsp/board/bl706_iot;$(ProjectPath)../../../../bsp/bsp_common/platform;$(ProjectPath)../../../../common/device;$(ProjectPath)../../../../common/list;$(ProjectPath)../../../../common/memheap;$(ProjectPath)../../../../common/misc;$(ProjectPath)../../../../common/ring_buffer;$(ProjectPath)../../../../common/soft_crc;$(ProjectPath)../../../../components/shell;$(ProjectPath)../../../../drivers/bl702_driver/hal_drv/default_config;$(ProjectPath)../../../../drivers/bl702_driver/hal_drv/inc;$(ProjectPath)../../../../drivers/bl702_driver/risc-v/Core/Include;$(ProjectPath)../../../../drivers/bl702_driver/regs;$(ProjectPath)../../../../drivers/bl702_driver/startup;$(ProjectPath)../../../../drivers/bl702_driver/std_drv/inc;$(ProjectPath)../../../../drivers/bl602_driver/risc-v/Core/Include;$(ProjectPath)../../../../drivers/bl602_driver/startup;$(ProjectPath)../../../../drivers/bl602_driver/hal_drv/inc;$(ProjectPath)../../../../drivers/bl602_driver/hal_drv/default_config;$(ProjectPath)../../../../drivers/bl602_driver/regs;$(ProjectPath)../../../../drivers/bl602_driver/std_drv/inc + + gdwarf2 + + + yes + yes + $(ProjectPath)../../../../drivers/bl702_driver/bl702_flash.ld + + + + no + + + + yes + ICE + yes + main + + $(ProjectPath)/../../../../tools/openocd/bl70x_gdb.init + yes + Hard Reset + 23000000 + no + no + $(ProjectPath)/$(ProjectName).cdkcore + + localhost + 1025 + 0 + 2000 + 10 + 50 + yes + no + no + Normal + Hard Reset + 21000000 + Bare Metal + yes + yes + + Local + -arch riscv + + + + + yes + no + no + + + openocd-hifive + no + 4444 + no + 6666 + -f ../../../../tools/openocd/if_rv_dbg_plus.cfg -f ../../../../tools/openocd/tgt_702.cfg + + + + + Erase Sectors + bl70x_flasher.elf + yes + yes + no + Hard Reset + + no + + + + + + + + ;;; + ;;MHZ; + + glb + uart + + 1 + 1 + + 100:8;100:8;100:8;100:8; + + + + ;;; + ;;MHZ; + + glb + uart + + 1 + 1 + + 100:8;100:8;100:8;100:8; + + diff --git a/examples/hellowd/helloworld/cdk/helloworld.cdkproj b/examples/hellowd/helloworld/cdk/helloworld.cdkproj index f734eb94..79c1e28e 100644 --- a/examples/hellowd/helloworld/cdk/helloworld.cdkproj +++ b/examples/hellowd/helloworld/cdk/helloworld.cdkproj @@ -477,7 +477,7 @@ Board: bl70x_iot - + diff --git a/examples/i2c/i2c_at24cxx/cdk/i2c_at24cxx.cdkproj b/examples/i2c/i2c_at24cxx/cdk/i2c_at24cxx.cdkproj index a700f211..35a2a4f4 100644 --- a/examples/i2c/i2c_at24cxx/cdk/i2c_at24cxx.cdkproj +++ b/examples/i2c/i2c_at24cxx/cdk/i2c_at24cxx.cdkproj @@ -475,7 +475,7 @@ Board: bl70x_iot - + diff --git a/examples/i2c/i2c_bmp180/cdk/i2c_bmp180.cdkproj b/examples/i2c/i2c_bmp180/cdk/i2c_bmp180.cdkproj index 0d639462..a8d9d884 100644 --- a/examples/i2c/i2c_bmp180/cdk/i2c_bmp180.cdkproj +++ b/examples/i2c/i2c_bmp180/cdk/i2c_bmp180.cdkproj @@ -475,7 +475,7 @@ Board: bl70x_iot - + diff --git a/examples/i2s/i2s_play_from_flash/cdk/i2s_play_from_flash.cdkproj b/examples/i2s/i2s_play_from_flash/cdk/i2s_play_from_flash.cdkproj index 696ef160..83564165 100644 --- a/examples/i2s/i2s_play_from_flash/cdk/i2s_play_from_flash.cdkproj +++ b/examples/i2s/i2s_play_from_flash/cdk/i2s_play_from_flash.cdkproj @@ -473,7 +473,7 @@ Board: bl70x_iot - + diff --git a/examples/memheap/cdk/memheap.cdkproj b/examples/memheap/cdk/memheap.cdkproj index 9862daeb..77f78315 100644 --- a/examples/memheap/cdk/memheap.cdkproj +++ b/examples/memheap/cdk/memheap.cdkproj @@ -468,7 +468,7 @@ Board: bl70x_iot - + diff --git a/examples/pka/sec_dsa/cdk/sec_dsa.cdkproj b/examples/pka/sec_dsa/cdk/sec_dsa.cdkproj index 2fe018ca..8d82c9a0 100644 --- a/examples/pka/sec_dsa/cdk/sec_dsa.cdkproj +++ b/examples/pka/sec_dsa/cdk/sec_dsa.cdkproj @@ -478,7 +478,7 @@ Board: bl70x_iot - + diff --git a/examples/pka/sec_ecdh/cdk/sec_ecdh.cdkproj b/examples/pka/sec_ecdh/cdk/sec_ecdh.cdkproj index 35c4cad4..58137797 100644 --- a/examples/pka/sec_ecdh/cdk/sec_ecdh.cdkproj +++ b/examples/pka/sec_ecdh/cdk/sec_ecdh.cdkproj @@ -478,7 +478,7 @@ Board: bl70x_iot - + diff --git a/examples/pka/sec_ecdsa/cdk/sec_ecdsa.cdkproj b/examples/pka/sec_ecdsa/cdk/sec_ecdsa.cdkproj index c40c8810..afe7f5d1 100644 --- a/examples/pka/sec_ecdsa/cdk/sec_ecdsa.cdkproj +++ b/examples/pka/sec_ecdsa/cdk/sec_ecdsa.cdkproj @@ -478,7 +478,7 @@ Board: bl70x_iot - + diff --git a/examples/power/lowpower_test/cdk/powerTest.cdkproj b/examples/power/lowpower_test/cdk/powerTest.cdkproj index 762748ec..28c57471 100644 --- a/examples/power/lowpower_test/cdk/powerTest.cdkproj +++ b/examples/power/lowpower_test/cdk/powerTest.cdkproj @@ -480,7 +480,7 @@ Board: bl70x_iot - + diff --git a/examples/psram/psram_sf_random_write_read/cdk/psram_random_w_r.cdkproj b/examples/psram/psram_sf_random_write_read/cdk/psram_random_w_r.cdkproj index d59a2189..79440090 100644 --- a/examples/psram/psram_sf_random_write_read/cdk/psram_random_w_r.cdkproj +++ b/examples/psram/psram_sf_random_write_read/cdk/psram_random_w_r.cdkproj @@ -480,7 +480,7 @@ Board: bl70x_iot - + diff --git a/examples/psram/psram_sf_write_read/cdk/psram_w_r.cdkproj b/examples/psram/psram_sf_write_read/cdk/psram_w_r.cdkproj index fe604294..48e96089 100644 --- a/examples/psram/psram_sf_write_read/cdk/psram_w_r.cdkproj +++ b/examples/psram/psram_sf_write_read/cdk/psram_w_r.cdkproj @@ -480,7 +480,7 @@ Board: bl70x_iot - + diff --git a/examples/pwm/pwm_breath_led/cdk/pwm_breath_led.cdkproj b/examples/pwm/pwm_breath_led/cdk/pwm_breath_led.cdkproj index 315ac562..2216dd19 100644 --- a/examples/pwm/pwm_breath_led/cdk/pwm_breath_led.cdkproj +++ b/examples/pwm/pwm_breath_led/cdk/pwm_breath_led.cdkproj @@ -477,7 +477,7 @@ Board: bl70x_iot - + @@ -793,7 +793,7 @@ Board: bl70x_iot - BL702;BL702_EVB;ARCH_RISCV; + ARCH_RISCV; Optimize more (-O2) Default (-g) diff --git a/examples/pwm_dc_motor/CMakeLists.txt b/examples/pwm/pwm_dc_motor/CMakeLists.txt similarity index 87% rename from examples/pwm_dc_motor/CMakeLists.txt rename to examples/pwm/pwm_dc_motor/CMakeLists.txt index bfd0e557..6e74d6f5 100644 --- a/examples/pwm_dc_motor/CMakeLists.txt +++ b/examples/pwm/pwm_dc_motor/CMakeLists.txt @@ -1,5 +1,5 @@ -set(mains main.c) -generate_bin() - - - +set(mains main.c) +generate_bin() + + + diff --git a/examples/pwm_dc_motor/cdk/pwm_dc_motor.cdkproj b/examples/pwm/pwm_dc_motor/cdk/pwm_dc_motor.cdkproj similarity index 99% rename from examples/pwm_dc_motor/cdk/pwm_dc_motor.cdkproj rename to examples/pwm/pwm_dc_motor/cdk/pwm_dc_motor.cdkproj index 4c64de9d..ac004009 100644 --- a/examples/pwm_dc_motor/cdk/pwm_dc_motor.cdkproj +++ b/examples/pwm/pwm_dc_motor/cdk/pwm_dc_motor.cdkproj @@ -477,7 +477,7 @@ Board: bl70x_iot - + diff --git a/examples/pwm_dc_motor/main.c b/examples/pwm/pwm_dc_motor/main.c similarity index 93% rename from examples/pwm_dc_motor/main.c rename to examples/pwm/pwm_dc_motor/main.c index df60f194..6b2160a4 100644 --- a/examples/pwm_dc_motor/main.c +++ b/examples/pwm/pwm_dc_motor/main.c @@ -1,87 +1,87 @@ -/** - * @file pwm_dc_motor.c - * @brief - * - * Copyright (c) 2021 Bouffalolab team - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. The - * ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the - * License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - */ -#include "hal_pwm.h" -#include "hal_gpio.h" -#include "hal_clock.h" - -int main(void) -{ - pwm_dutycycle_config_t pwm_cfg[2]; - - pwm_cfg[0].threshold_low = 0; - pwm_cfg[0].threshold_high = 0; - - pwm_cfg[1].threshold_low = 0; - pwm_cfg[1].threshold_high = 0; - - bflb_platform_init(0); - - pwm_register(PWM_CH0_INDEX, "dc_motor_ch0", DEVICE_OFLAG_RDWR); - pwm_register(PWM_CH1_INDEX, "dc_motor_ch1", DEVICE_OFLAG_RDWR); - - struct device *dc_motor_ch0 = device_find("dc_motor_ch0"); - struct device *dc_motor_ch1 = device_find("dc_motor_ch1"); - - if (dc_motor_ch0) { - PWM_DEV(dc_motor_ch0)->period = 32; //frequence = 32M/1/32 = 1Mhz - PWM_DEV(dc_motor_ch0)->threshold_low = 16; - PWM_DEV(dc_motor_ch0)->threshold_high = 32; - device_open(dc_motor_ch0, DEVICE_OFLAG_STREAM_TX); - pwm_channel_start(dc_motor_ch0); - } - if (dc_motor_ch1) { - PWM_DEV(dc_motor_ch1)->period = 32; //frequence = 32M/1/32 = 1Mhz - PWM_DEV(dc_motor_ch1)->threshold_low = 16; - PWM_DEV(dc_motor_ch1)->threshold_high = 32; - device_open(dc_motor_ch1, DEVICE_OFLAG_STREAM_TX); - pwm_channel_start(dc_motor_ch1); - } - - while (1) { - pwm_cfg[1].threshold_low = 0; - pwm_cfg[1].threshold_high = 0; - device_control(dc_motor_ch1, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[1]); - for (pwm_cfg[0].threshold_high = 16; pwm_cfg[0].threshold_high <= 32; pwm_cfg[0].threshold_high++) { - device_control(dc_motor_ch0, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[0]); - bflb_platform_delay_ms(1000); - } - - for (pwm_cfg[0].threshold_high = 32; 16 <= pwm_cfg[0].threshold_high && pwm_cfg[0].threshold_high <= 32; pwm_cfg[0].threshold_high--) { - device_control(dc_motor_ch0, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[0]); - bflb_platform_delay_ms(1000); - } - - pwm_cfg[0].threshold_low = 0; - pwm_cfg[0].threshold_high = 0; - device_control(dc_motor_ch0, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[0]); - for (pwm_cfg[1].threshold_high = 16; pwm_cfg[1].threshold_high <= 32; pwm_cfg[1].threshold_high++) { - device_control(dc_motor_ch1, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[1]); - bflb_platform_delay_ms(1000); - } - - for (pwm_cfg[1].threshold_high = 32; 16 <= pwm_cfg[1].threshold_high && pwm_cfg[1].threshold_high <= 32; pwm_cfg[1].threshold_high--) { - device_control(dc_motor_ch1, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[1]); - bflb_platform_delay_ms(1000); - } - } -} +/** + * @file pwm_dc_motor.c + * @brief + * + * Copyright (c) 2021 Bouffalolab team + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. The + * ASF licenses this file to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + */ +#include "hal_pwm.h" +#include "hal_gpio.h" +#include "hal_clock.h" + +int main(void) +{ + pwm_dutycycle_config_t pwm_cfg[2]; + + pwm_cfg[0].threshold_low = 0; + pwm_cfg[0].threshold_high = 0; + + pwm_cfg[1].threshold_low = 0; + pwm_cfg[1].threshold_high = 0; + + bflb_platform_init(0); + + pwm_register(PWM_CH0_INDEX, "dc_motor_ch0", DEVICE_OFLAG_RDWR); + pwm_register(PWM_CH1_INDEX, "dc_motor_ch1", DEVICE_OFLAG_RDWR); + + struct device *dc_motor_ch0 = device_find("dc_motor_ch0"); + struct device *dc_motor_ch1 = device_find("dc_motor_ch1"); + + if (dc_motor_ch0) { + PWM_DEV(dc_motor_ch0)->period = 32; //frequence = 32K/1/32 = 1Khz + PWM_DEV(dc_motor_ch0)->threshold_low = 16; + PWM_DEV(dc_motor_ch0)->threshold_high = 32; + device_open(dc_motor_ch0, DEVICE_OFLAG_STREAM_TX); + pwm_channel_start(dc_motor_ch0); + } + if (dc_motor_ch1) { + PWM_DEV(dc_motor_ch1)->period = 32; //frequence = 32K/1/32 = 1Khz + PWM_DEV(dc_motor_ch1)->threshold_low = 16; + PWM_DEV(dc_motor_ch1)->threshold_high = 32; + device_open(dc_motor_ch1, DEVICE_OFLAG_STREAM_TX); + pwm_channel_start(dc_motor_ch1); + } + + while (1) { + pwm_cfg[1].threshold_low = 0; + pwm_cfg[1].threshold_high = 0; + device_control(dc_motor_ch1, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[1]); + for (pwm_cfg[0].threshold_high = 16; pwm_cfg[0].threshold_high <= 32; pwm_cfg[0].threshold_high++) { + device_control(dc_motor_ch0, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[0]); + bflb_platform_delay_ms(1000); + } + + for (pwm_cfg[0].threshold_high = 32; 16 <= pwm_cfg[0].threshold_high && pwm_cfg[0].threshold_high <= 32; pwm_cfg[0].threshold_high--) { + device_control(dc_motor_ch0, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[0]); + bflb_platform_delay_ms(1000); + } + + pwm_cfg[0].threshold_low = 0; + pwm_cfg[0].threshold_high = 0; + device_control(dc_motor_ch0, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[0]); + for (pwm_cfg[1].threshold_high = 16; pwm_cfg[1].threshold_high <= 32; pwm_cfg[1].threshold_high++) { + device_control(dc_motor_ch1, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[1]); + bflb_platform_delay_ms(1000); + } + + for (pwm_cfg[1].threshold_high = 32; 16 <= pwm_cfg[1].threshold_high && pwm_cfg[1].threshold_high <= 32; pwm_cfg[1].threshold_high--) { + device_control(dc_motor_ch1, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[1]); + bflb_platform_delay_ms(1000); + } + } +} diff --git a/examples/pwm_dc_motor/readme.md b/examples/pwm/pwm_dc_motor/readme.md similarity index 85% rename from examples/pwm_dc_motor/readme.md rename to examples/pwm/pwm_dc_motor/readme.md index a2db712e..28b8dfd3 100644 --- a/examples/pwm_dc_motor/readme.md +++ b/examples/pwm/pwm_dc_motor/readme.md @@ -1,14 +1,16 @@ -**board/bl706_iot/pinmux_config.h** 中 **CONFIG_GPIO20_FUNC**、**CONFIG_GPIO21_FUNC** 选择 **GPIO_FUN_PWM** - -**board/bl706_iot/clock_config.h** 中 - -- **BSP_PWM_CLOCK_SOURCE** 选择 **ROOT_CLOCK_SOURCE_RC_32K**,也可选择其他时钟源,用其他时钟源时应注意 case 中的设置要匹配 -- **BSP_PWM_CLOCK_DIV** 设置成 **1** - -将两个通道分别接到 H 桥或半桥的两个通道 - -```bash - -$ make APP=pwm_dc_motor BOARD=bl706_iot - -``` \ No newline at end of file +**board/bl706_iot/pinmux_config.h** 中 **CONFIG_GPIO20_FUNC**、**CONFIG_GPIO21_FUNC** 选择 **GPIO_FUN_PWM** + +**board/bl706_iot/clock_config.h** 中 + +- **BSP_PWM_CLOCK_SOURCE** 选择 **ROOT_CLOCK_SOURCE_RC_32K**,也可选择其他时钟源,用其他时钟源时应注意 case 中的设置要匹配 +- **BSP_PWM_CLOCK_DIV** 设置成 **1** + +将两个通道分别接到 H 桥或半桥的两个通道 + +```bash + +$ make APP=pwm_dc_motor BOARD=bl706_iot + +``` + +**正常运行后,GPIO20 和 GPIO21 引脚分别先后输出 PWM 波** \ No newline at end of file diff --git a/examples/pwm/pwm_it/cdk/pwm_it.cdkproj b/examples/pwm/pwm_it/cdk/pwm_it.cdkproj index aea3ca7a..6e2de0e7 100644 --- a/examples/pwm/pwm_it/cdk/pwm_it.cdkproj +++ b/examples/pwm/pwm_it/cdk/pwm_it.cdkproj @@ -477,7 +477,7 @@ Board: bl70x_iot - + diff --git a/examples/pwm_step_motor/CMakeLists.txt b/examples/pwm/pwm_step_motor/CMakeLists.txt similarity index 87% rename from examples/pwm_step_motor/CMakeLists.txt rename to examples/pwm/pwm_step_motor/CMakeLists.txt index bfd0e557..6e74d6f5 100644 --- a/examples/pwm_step_motor/CMakeLists.txt +++ b/examples/pwm/pwm_step_motor/CMakeLists.txt @@ -1,5 +1,5 @@ -set(mains main.c) -generate_bin() - - - +set(mains main.c) +generate_bin() + + + diff --git a/examples/pwm_step_motor/cdk/pwm_step_motor.cdkproj b/examples/pwm/pwm_step_motor/cdk/pwm_step_motor.cdkproj similarity index 99% rename from examples/pwm_step_motor/cdk/pwm_step_motor.cdkproj rename to examples/pwm/pwm_step_motor/cdk/pwm_step_motor.cdkproj index 86d3f338..8134df6b 100644 --- a/examples/pwm_step_motor/cdk/pwm_step_motor.cdkproj +++ b/examples/pwm/pwm_step_motor/cdk/pwm_step_motor.cdkproj @@ -477,7 +477,7 @@ Board: bl70x_iot - + diff --git a/examples/pwm_step_motor/main.c b/examples/pwm/pwm_step_motor/main.c similarity index 97% rename from examples/pwm_step_motor/main.c rename to examples/pwm/pwm_step_motor/main.c index f8d1ae7a..2b7fbd50 100644 --- a/examples/pwm_step_motor/main.c +++ b/examples/pwm/pwm_step_motor/main.c @@ -1,139 +1,139 @@ -/** - * @file pwm_step_motor.c - * @brief - * - * Copyright (c) 2021 Bouffalolab team - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. The - * ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the - * License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - */ -#include "hal_pwm.h" -#include "hal_gpio.h" -#include "hal_clock.h" -/* 一二相励磁:八拍(A+B+,B+,B+A-,A-,A-B-,B-,B-A+,A+。。。。) - ___ ___ ___ -CH0 |___ ___ ___ ___ ___| - ___ ___ ___ -CH1 ___| |___ ___ ___ ___ - ___ ___ ___ -CH2 ___ ___ ___| |___ ___ - ___ ___ ___ -CH3 ___ ___ ___ ___ ___| - -*/ - -struct device *motor_ch0; -struct device *motor_ch1; -struct device *motor_ch2; -struct device *motor_ch3; - -enum motor_dir_type { - CW, - CCW, - STOP -}; - -void motor_set_dir(enum motor_dir_type dir) -{ - pwm_dutycycle_config_t pwm_cfg[4]; - - if (dir == CW) { - pwm_cfg[0].threshold_low = 2; - pwm_cfg[0].threshold_high = 7; - pwm_cfg[1].threshold_low = 1; - pwm_cfg[1].threshold_high = 4; - pwm_cfg[2].threshold_low = 3; - pwm_cfg[2].threshold_high = 6; - pwm_cfg[3].threshold_low = 5; - pwm_cfg[3].threshold_high = 8; - } - - else if (dir == CCW) { - pwm_cfg[0].threshold_low = 2; - pwm_cfg[0].threshold_high = 7; - pwm_cfg[1].threshold_low = 5; - pwm_cfg[1].threshold_high = 8; - pwm_cfg[2].threshold_low = 3; - pwm_cfg[2].threshold_high = 6; - pwm_cfg[3].threshold_low = 1; - pwm_cfg[3].threshold_high = 4; - } else if (dir == STOP) { - pwm_cfg[0].threshold_low = 0; - pwm_cfg[0].threshold_high = 0; - pwm_cfg[1].threshold_low = 0; - pwm_cfg[1].threshold_high = 0; - pwm_cfg[2].threshold_low = 0; - pwm_cfg[2].threshold_high = 0; - pwm_cfg[3].threshold_low = 0; - pwm_cfg[3].threshold_high = 0; - } - device_control(motor_ch0, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[0]); - device_control(motor_ch1, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[1]); - device_control(motor_ch2, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[2]); - device_control(motor_ch3, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[3]); -} - -int main(void) -{ - bflb_platform_init(0); - - pwm_register(PWM_CH0_INDEX, "motor_ch0", DEVICE_OFLAG_RDWR); - pwm_register(PWM_CH1_INDEX, "motor_ch1", DEVICE_OFLAG_RDWR); - pwm_register(PWM_CH2_INDEX, "motor_ch2", DEVICE_OFLAG_RDWR); - pwm_register(PWM_CH3_INDEX, "motor_ch3", DEVICE_OFLAG_RDWR); - - motor_ch0 = device_find("motor_ch0"); - motor_ch1 = device_find("motor_ch1"); - motor_ch2 = device_find("motor_ch2"); - motor_ch3 = device_find("motor_ch3"); - - if (motor_ch0) { - PWM_DEV(motor_ch0)->period = 8; //frequence = 32K/32/8 = 125hz - PWM_DEV(motor_ch0)->threshold_low = 2; - PWM_DEV(motor_ch0)->threshold_high = 7; - PWM_DEV(motor_ch0)->polarity_invert_mode = ENABLE; - device_open(motor_ch0, DEVICE_OFLAG_STREAM_TX); - } - if (motor_ch1) { - PWM_DEV(motor_ch1)->period = 8; //frequence = 32K/32/8 = 125hz - PWM_DEV(motor_ch1)->threshold_low = 1; - PWM_DEV(motor_ch1)->threshold_high = 4; - device_open(motor_ch1, DEVICE_OFLAG_STREAM_TX); - } - if (motor_ch2) { - PWM_DEV(motor_ch2)->period = 8; //frequence = 32K/32/8 = 125hz - PWM_DEV(motor_ch2)->threshold_low = 3; - PWM_DEV(motor_ch2)->threshold_high = 6; - device_open(motor_ch2, DEVICE_OFLAG_STREAM_TX); - } - if (motor_ch3) { - PWM_DEV(motor_ch3)->period = 8; //frequence = 32K/32/8 = 125hz - PWM_DEV(motor_ch3)->threshold_low = 5; - PWM_DEV(motor_ch3)->threshold_high = 8; - device_open(motor_ch3, DEVICE_OFLAG_STREAM_TX); - } - pwm_channel_start(motor_ch0); - pwm_channel_start(motor_ch1); - pwm_channel_start(motor_ch2); - pwm_channel_start(motor_ch3); - - while (1) { - motor_set_dir(CW); - bflb_platform_delay_ms(5000); - motor_set_dir(CCW); - bflb_platform_delay_ms(5000); - } -} +/** + * @file pwm_step_motor.c + * @brief + * + * Copyright (c) 2021 Bouffalolab team + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. The + * ASF licenses this file to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + */ +#include "hal_pwm.h" +#include "hal_gpio.h" +#include "hal_clock.h" +/* 一二相励磁:八拍(A+B+,B+,B+A-,A-,A-B-,B-,B-A+,A+。。。。) + ___ ___ ___ +CH0 |___ ___ ___ ___ ___| + ___ ___ ___ +CH1 ___| |___ ___ ___ ___ + ___ ___ ___ +CH2 ___ ___ ___| |___ ___ + ___ ___ ___ +CH3 ___ ___ ___ ___ ___| + +*/ + +struct device *motor_ch0; +struct device *motor_ch1; +struct device *motor_ch2; +struct device *motor_ch3; + +enum motor_dir_type { + CW, + CCW, + STOP +}; + +void motor_set_dir(enum motor_dir_type dir) +{ + pwm_dutycycle_config_t pwm_cfg[4]; + + if (dir == CW) { + pwm_cfg[0].threshold_low = 2; + pwm_cfg[0].threshold_high = 7; + pwm_cfg[1].threshold_low = 1; + pwm_cfg[1].threshold_high = 4; + pwm_cfg[2].threshold_low = 3; + pwm_cfg[2].threshold_high = 6; + pwm_cfg[3].threshold_low = 5; + pwm_cfg[3].threshold_high = 8; + } + + else if (dir == CCW) { + pwm_cfg[0].threshold_low = 2; + pwm_cfg[0].threshold_high = 7; + pwm_cfg[1].threshold_low = 5; + pwm_cfg[1].threshold_high = 8; + pwm_cfg[2].threshold_low = 3; + pwm_cfg[2].threshold_high = 6; + pwm_cfg[3].threshold_low = 1; + pwm_cfg[3].threshold_high = 4; + } else if (dir == STOP) { + pwm_cfg[0].threshold_low = 0; + pwm_cfg[0].threshold_high = 0; + pwm_cfg[1].threshold_low = 0; + pwm_cfg[1].threshold_high = 0; + pwm_cfg[2].threshold_low = 0; + pwm_cfg[2].threshold_high = 0; + pwm_cfg[3].threshold_low = 0; + pwm_cfg[3].threshold_high = 0; + } + device_control(motor_ch0, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[0]); + device_control(motor_ch1, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[1]); + device_control(motor_ch2, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[2]); + device_control(motor_ch3, DEIVCE_CTRL_PWM_DUTYCYCLE_CONFIG, &pwm_cfg[3]); +} + +int main(void) +{ + bflb_platform_init(0); + + pwm_register(PWM_CH0_INDEX, "motor_ch0", DEVICE_OFLAG_RDWR); + pwm_register(PWM_CH1_INDEX, "motor_ch1", DEVICE_OFLAG_RDWR); + pwm_register(PWM_CH2_INDEX, "motor_ch2", DEVICE_OFLAG_RDWR); + pwm_register(PWM_CH3_INDEX, "motor_ch3", DEVICE_OFLAG_RDWR); + + motor_ch0 = device_find("motor_ch0"); + motor_ch1 = device_find("motor_ch1"); + motor_ch2 = device_find("motor_ch2"); + motor_ch3 = device_find("motor_ch3"); + + if (motor_ch0) { + PWM_DEV(motor_ch0)->period = 8; //frequence = 32K/32/8 = 125hz + PWM_DEV(motor_ch0)->threshold_low = 2; + PWM_DEV(motor_ch0)->threshold_high = 7; + PWM_DEV(motor_ch0)->polarity_invert_mode = ENABLE; + device_open(motor_ch0, DEVICE_OFLAG_STREAM_TX); + } + if (motor_ch1) { + PWM_DEV(motor_ch1)->period = 8; //frequence = 32K/32/8 = 125hz + PWM_DEV(motor_ch1)->threshold_low = 1; + PWM_DEV(motor_ch1)->threshold_high = 4; + device_open(motor_ch1, DEVICE_OFLAG_STREAM_TX); + } + if (motor_ch2) { + PWM_DEV(motor_ch2)->period = 8; //frequence = 32K/32/8 = 125hz + PWM_DEV(motor_ch2)->threshold_low = 3; + PWM_DEV(motor_ch2)->threshold_high = 6; + device_open(motor_ch2, DEVICE_OFLAG_STREAM_TX); + } + if (motor_ch3) { + PWM_DEV(motor_ch3)->period = 8; //frequence = 32K/32/8 = 125hz + PWM_DEV(motor_ch3)->threshold_low = 5; + PWM_DEV(motor_ch3)->threshold_high = 8; + device_open(motor_ch3, DEVICE_OFLAG_STREAM_TX); + } + pwm_channel_start(motor_ch0); + pwm_channel_start(motor_ch1); + pwm_channel_start(motor_ch2); + pwm_channel_start(motor_ch3); + + while (1) { + motor_set_dir(CW); + bflb_platform_delay_ms(5000); + motor_set_dir(CCW); + bflb_platform_delay_ms(5000); + } +} diff --git a/examples/pwm_step_motor/readme.md b/examples/pwm/pwm_step_motor/readme.md similarity index 95% rename from examples/pwm_step_motor/readme.md rename to examples/pwm/pwm_step_motor/readme.md index d00accf3..cf080326 100644 --- a/examples/pwm_step_motor/readme.md +++ b/examples/pwm/pwm_step_motor/readme.md @@ -1,17 +1,17 @@ -**board/bl706_iot/pinmux_config.h** 中, 以下宏设置成 **GPIO_FUN_PWM** - -- **CONFIG_GPIO10_FUNC** -- **CONFIG_GPIO11_FUNC** -- **CONFIG_GPIO12_FUNC** -- **CONFIG_GPIO3_FUNC** - -**board/bl706_iot/clock_config.h** 中 - -- **BSP_PWM_CLOCK_SOURCE** 选择 **ROOT_CLOCK_SOURCE_RC_32K**, -- **BSP_PWM_CLOCK_DIV** 设置成 **32** - -```bash - -$ make APP=pwm_it BOARD=bl706_iot - +**board/bl706_iot/pinmux_config.h** 中, 以下宏设置成 **GPIO_FUN_PWM** + +- **CONFIG_GPIO10_FUNC** +- **CONFIG_GPIO11_FUNC** +- **CONFIG_GPIO12_FUNC** +- **CONFIG_GPIO3_FUNC** + +**board/bl706_iot/clock_config.h** 中 + +- **BSP_PWM_CLOCK_SOURCE** 选择 **ROOT_CLOCK_SOURCE_RC_32K**, +- **BSP_PWM_CLOCK_DIV** 设置成 **32** + +```bash + +$ make APP=pwm_it BOARD=bl706_iot + ``` \ No newline at end of file diff --git a/examples/shell/cdk/shell.cdkproj b/examples/shell/cdk/shell.cdkproj index b59f9a42..5e05f87b 100644 --- a/examples/shell/cdk/shell.cdkproj +++ b/examples/shell/cdk/shell.cdkproj @@ -468,7 +468,7 @@ Board: bl70x_iot - + diff --git a/examples/spi/spi_dma_sd/cdk/spi_dma_sd.cdkproj b/examples/spi/spi_dma_sd/cdk/spi_dma_sd.cdkproj index 80d51214..ce398bb2 100644 --- a/examples/spi/spi_dma_sd/cdk/spi_dma_sd.cdkproj +++ b/examples/spi/spi_dma_sd/cdk/spi_dma_sd.cdkproj @@ -481,7 +481,7 @@ Board: bl70x_iot - + diff --git a/examples/spi/spi_gsl61xx/cdk/spi_gsl161.cdkproj b/examples/spi/spi_gsl61xx/cdk/spi_gsl161.cdkproj index c1c9b086..5d400bce 100644 --- a/examples/spi/spi_gsl61xx/cdk/spi_gsl161.cdkproj +++ b/examples/spi/spi_gsl61xx/cdk/spi_gsl161.cdkproj @@ -476,7 +476,7 @@ Board: bl70x_iot - + @@ -792,7 +792,7 @@ Board: bl70x_iot - BL702;BL702_EVB;ARCH_RISCV; + ARCH_RISCV; Optimize more (-O2) Default (-g) diff --git a/examples/spi/spi_lcd/cdk/spi_lcd.cdkproj b/examples/spi/spi_lcd/cdk/spi_lcd.cdkproj index 0d1f8621..6942ccba 100644 --- a/examples/spi/spi_lcd/cdk/spi_lcd.cdkproj +++ b/examples/spi/spi_lcd/cdk/spi_lcd.cdkproj @@ -478,7 +478,7 @@ Board: bl70x_iot - + diff --git a/examples/spi/spi_loopback/cdk/spi_loopback.cdkproj b/examples/spi/spi_loopback/cdk/spi_loopback.cdkproj index a365e2cd..225b58e9 100644 --- a/examples/spi/spi_loopback/cdk/spi_loopback.cdkproj +++ b/examples/spi/spi_loopback/cdk/spi_loopback.cdkproj @@ -475,7 +475,7 @@ Board: bl70x_iot - + diff --git a/examples/timer/timer_basic/cdk/timer_basic.cdkproj b/examples/timer/timer_basic/cdk/timer_basic.cdkproj index a8798178..542eec77 100644 --- a/examples/timer/timer_basic/cdk/timer_basic.cdkproj +++ b/examples/timer/timer_basic/cdk/timer_basic.cdkproj @@ -477,7 +477,7 @@ Board: bl70x_iot - + diff --git a/examples/timer/timer_int/cdk/timer_int.cdkproj b/examples/timer/timer_int/cdk/timer_int.cdkproj index 424f36af..13860bcb 100644 --- a/examples/timer/timer_int/cdk/timer_int.cdkproj +++ b/examples/timer/timer_int/cdk/timer_int.cdkproj @@ -477,7 +477,7 @@ Board: bl70x_iot - + diff --git a/examples/uart/uart_dma/cdk/uart_dma.cdkproj b/examples/uart/uart_dma/cdk/uart_dma.cdkproj index 746e0b1c..412bdbd0 100644 --- a/examples/uart/uart_dma/cdk/uart_dma.cdkproj +++ b/examples/uart/uart_dma/cdk/uart_dma.cdkproj @@ -475,7 +475,7 @@ Board: bl70x_iot - + diff --git a/examples/uart/uart_echo/cdk/uart_echo.cdkproj b/examples/uart/uart_echo/cdk/uart_echo.cdkproj index e69c4f7b..3338b73f 100644 --- a/examples/uart/uart_echo/cdk/uart_echo.cdkproj +++ b/examples/uart/uart_echo/cdk/uart_echo.cdkproj @@ -473,7 +473,7 @@ Board: bl70x_iot - + @@ -789,7 +789,7 @@ Board: bl70x_iot - BL702;BL702_EVB;ARCH_RISCV; + ARCH_RISCV; Optimize more (-O2) Default (-g) diff --git a/examples/uart/uart_poll/cdk/uart_poll.cdkproj b/examples/uart/uart_poll/cdk/uart_poll.cdkproj index 670e54aa..3c597c47 100644 --- a/examples/uart/uart_poll/cdk/uart_poll.cdkproj +++ b/examples/uart/uart_poll/cdk/uart_poll.cdkproj @@ -475,7 +475,7 @@ Board: bl70x_iot - + diff --git a/examples/uart/uart_rx_it/cdk/uart_rx_it.cdkproj b/examples/uart/uart_rx_it/cdk/uart_rx_it.cdkproj index 977ee5f0..e140eda9 100644 --- a/examples/uart/uart_rx_it/cdk/uart_rx_it.cdkproj +++ b/examples/uart/uart_rx_it/cdk/uart_rx_it.cdkproj @@ -475,7 +475,7 @@ Board: bl70x_iot - + diff --git a/examples/usb/usb2uart/cdk/usb2uart_st.cdkproj b/examples/usb/usb2uart/cdk/usb2uart_st.cdkproj index 76e1f240..cb97e746 100644 --- a/examples/usb/usb2uart/cdk/usb2uart_st.cdkproj +++ b/examples/usb/usb2uart/cdk/usb2uart_st.cdkproj @@ -479,7 +479,7 @@ Board: bl70x_iot - + diff --git a/examples/usb/usb_cdc_acm2/cdk/usb_cdc_loopback.cdkproj b/examples/usb/usb_cdc_acm2/cdk/usb_cdc_acm2.cdkproj similarity index 99% rename from examples/usb/usb_cdc_acm2/cdk/usb_cdc_loopback.cdkproj rename to examples/usb/usb_cdc_acm2/cdk/usb_cdc_acm2.cdkproj index 7d9d46ce..78d17b0c 100644 --- a/examples/usb/usb_cdc_acm2/cdk/usb_cdc_loopback.cdkproj +++ b/examples/usb/usb_cdc_acm2/cdk/usb_cdc_acm2.cdkproj @@ -1,5 +1,5 @@ - + CPU: RV32IMAFC Chip: bl70x Board: bl70x_iot @@ -478,7 +478,7 @@ Board: bl70x_iot - + diff --git a/examples/usb/usb_cdc_loopback/cdk/usb_cdc_loopback.cdkproj b/examples/usb/usb_cdc_loopback/cdk/usb_cdc_loopback.cdkproj index 7d9d46ce..4446851e 100644 --- a/examples/usb/usb_cdc_loopback/cdk/usb_cdc_loopback.cdkproj +++ b/examples/usb/usb_cdc_loopback/cdk/usb_cdc_loopback.cdkproj @@ -478,7 +478,7 @@ Board: bl70x_iot - + diff --git a/examples/usb/usb_cdc_msc/cdk/usb_cdc_msc.cdkproj b/examples/usb/usb_cdc_msc/cdk/usb_cdc_msc.cdkproj index 48fdf394..5d7f9749 100644 --- a/examples/usb/usb_cdc_msc/cdk/usb_cdc_msc.cdkproj +++ b/examples/usb/usb_cdc_msc/cdk/usb_cdc_msc.cdkproj @@ -479,7 +479,7 @@ Board: bl70x_iot - + diff --git a/examples/usb/usb_cdc_video/cdk/usb_cdc_video.cdkproj b/examples/usb/usb_cdc_video/cdk/usb_cdc_video.cdkproj index 5cc0ef3c..99c13b36 100644 --- a/examples/usb/usb_cdc_video/cdk/usb_cdc_video.cdkproj +++ b/examples/usb/usb_cdc_video/cdk/usb_cdc_video.cdkproj @@ -473,7 +473,7 @@ Board: bl70x_iot - + @@ -789,7 +789,7 @@ Board: bl70x_iot - BL702;BL702_EVB;ARCH_RISCV; + ARCH_RISCV; Optimize more (-O2) Default (-g) diff --git a/examples/usb/usb_msc_ram/cdk/usb_msc_ram.cdkproj b/examples/usb/usb_msc_ram/cdk/usb_msc_ram.cdkproj index 7833aa54..d6274d76 100644 --- a/examples/usb/usb_msc_ram/cdk/usb_msc_ram.cdkproj +++ b/examples/usb/usb_msc_ram/cdk/usb_msc_ram.cdkproj @@ -478,7 +478,7 @@ Board: bl70x_iot - + diff --git a/examples/usb/usb_msc_sd/cdk/usb_msc_sd.cdkproj b/examples/usb/usb_msc_sd/cdk/usb_msc_sd.cdkproj index ec26f541..e7a6ecf2 100644 --- a/examples/usb/usb_msc_sd/cdk/usb_msc_sd.cdkproj +++ b/examples/usb/usb_msc_sd/cdk/usb_msc_sd.cdkproj @@ -479,7 +479,7 @@ Board: bl70x_iot - + diff --git a/examples/usb/usb_video/cdk/usb_video.cdkproj b/examples/usb/usb_video/cdk/usb_video.cdkproj index cff3201b..b66a90fd 100644 --- a/examples/usb/usb_video/cdk/usb_video.cdkproj +++ b/examples/usb/usb_video/cdk/usb_video.cdkproj @@ -486,7 +486,7 @@ Board: bl70x_iot - + @@ -807,7 +807,7 @@ Board: bl70x_iot - BL702;BL702_EVB;ARCH_RISCV; + ARCH_RISCV; Optimize more (-O2) Default (-g)