Skip to content

Commit

Permalink
Remove wrong comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kauwua committed Apr 16, 2024
1 parent ee0f9c8 commit 2c8fcd7
Show file tree
Hide file tree
Showing 18 changed files with 16 additions and 46 deletions.
3 changes: 0 additions & 3 deletions tests/test_firmware_hspi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/User

#### wch-ch56x-lib options

#This lib is only an interface, which means it is not compiled but its files are compiled with the current target.
# This way, we can customize the lib for each target, but this means it is recompiled for each target

target_compile_definitions(wch-ch56x-lib INTERFACE POOL_BLOCK_SIZE=512 POOL_BLOCK_NUM=40 INTERRUPT_QUEUE_SIZE=20)

#### logging options
Expand Down
5 changes: 2 additions & 3 deletions tests/test_firmware_hspi/User/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,10 @@ void init_usb_descriptors(void)
.bLength = 0x12,
.bDescriptorType = 0x01, // device descriptor type
.bcdUSB = 0x0200, // usb2.0
.bDeviceClass = 0x00, // hid class
.bDeviceClass = 0x00,
.bDeviceSubClass = 0x00,
.bDeviceProtocol = 0x00,
.bMaxPacketSize0 = 64, // this is a requirement for usb3 (max packet size
// = 2^9 thus the 9)
.bMaxPacketSize0 = 64,
.bcdDevice = 0x0001,
.idVendor =
0x16c0, // https://github.com/obdev/v-usb/blob/master/usbdrv/usb-ids-for-free.txt
Expand Down
3 changes: 0 additions & 3 deletions tests/test_firmware_loopback/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/User

#### wch-ch56x-lib options

#This lib is only an interface, which means it is not compiled but its files are compiled with the current target.
# This way, we can customize the lib for each target, but this means it is recompiled for each target

target_compile_definitions(wch-ch56x-lib INTERFACE POOL_BLOCK_SIZE=512 POOL_BLOCK_NUM=40 INTERRUPT_QUEUE_SIZE=20)

#### logging options
Expand Down
5 changes: 2 additions & 3 deletions tests/test_firmware_loopback/User/usb2_device_descriptors.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ void init_usb2_descriptors(void)
.bLength = 0x12,
.bDescriptorType = 0x01, // device descriptor type
.bcdUSB = 0x0200, // usb2.0
.bDeviceClass = 0x00, // hid class
.bDeviceClass = 0x00,
.bDeviceSubClass = 0x00,
.bDeviceProtocol = 0x00,
.bMaxPacketSize0 = 64, // this is a requirement for usb3 (max packet size
// = 2^9 thus the 9)
.bMaxPacketSize0 = 64,
.bcdDevice = 0x0001,
.idVendor =
0x16c0, // https://github.com/obdev/v-usb/blob/master/usbdrv/usb-ids-for-free.txt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void init_usb3_descriptors(void)
.bLength = 0x12,
.bDescriptorType = 0x01, // device descriptor type
.bcdUSB = 0x0300, // usb3.0
.bDeviceClass = 0x00, // hid class
.bDeviceClass = 0x00,
.bDeviceSubClass = 0x00,
.bDeviceProtocol = 0x00,
.bMaxPacketSize0 = 9, // this is a requirement for usb3 (max packet size =
Expand Down
3 changes: 0 additions & 3 deletions tests/test_firmware_serdes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/User

#### wch-ch56x-lib options

#This lib is only an interface, which means it is not compiled but its files are compiled with the current target.
# This way, we can customize the lib for each target, but this means it is recompiled for each target

target_compile_definitions(wch-ch56x-lib INTERFACE POOL_BLOCK_SIZE=512 POOL_BLOCK_NUM=40 INTERRUPT_QUEUE_SIZE=20)

#### logging options
Expand Down
5 changes: 2 additions & 3 deletions tests/test_firmware_serdes/User/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,10 @@ void init_usb_descriptors(void)
.bLength = 0x12,
.bDescriptorType = 0x01, // device descriptor type
.bcdUSB = 0x0200, // usb2.0
.bDeviceClass = 0x00, // hid class
.bDeviceClass = 0x00,
.bDeviceSubClass = 0x00,
.bDeviceProtocol = 0x00,
.bMaxPacketSize0 = 64, // this is a requirement for usb3 (max packet size
// = 2^9 thus the 9)
.bMaxPacketSize0 = 64,
.bcdDevice = 0x0001,
.idVendor =
0x16c0, // https://github.com/obdev/v-usb/blob/master/usbdrv/usb-ids-for-free.txt
Expand Down
3 changes: 0 additions & 3 deletions tests/test_firmware_unittests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/User

#### wch-ch56x-lib options

#This lib is only an interface, which means it is not compiled but its files are compiled with the current target.
# This way, we can customize the lib for each target, but this means it is recompiled for each target

target_compile_definitions(wch-ch56x-lib-scheduled INTERFACE POOL_BLOCK_SIZE=512 POOL_BLOCK_NUM=40 INTERRUPT_QUEUE_SIZE=20)

#### logging options
Expand Down
3 changes: 0 additions & 3 deletions tests/test_firmware_usb_loopback/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/User

#### wch-ch56x-lib options

#This lib is only an interface, which means it is not compiled but its files are compiled with the current target.
# This way, we can customize the lib for each target, but this means it is recompiled for each target

target_compile_definitions(wch-ch56x-lib-scheduled INTERFACE POOL_BLOCK_SIZE=512 POOL_BLOCK_NUM=40 INTERRUPT_QUEUE_SIZE=20)

#### logging options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ void init_usb2_descriptors(void)
.bLength = 0x12,
.bDescriptorType = 0x01, // device descriptor type
.bcdUSB = 0x0200, // usb2.0
.bDeviceClass = 0x00, // hid class
.bDeviceClass = 0x00,
.bDeviceSubClass = 0x00,
.bDeviceProtocol = 0x00,
.bMaxPacketSize0 = 64, // this is a requirement for usb3 (max packet size
// = 2^9 thus the 9)
.bMaxPacketSize0 = 64,
.bcdDevice = 0x0001,
.idVendor =
0x16c0, // https://github.com/obdev/v-usb/blob/master/usbdrv/usb-ids-for-free.txt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void init_usb3_descriptors(void)
.bLength = 0x12,
.bDescriptorType = 0x01, // device descriptor type
.bcdUSB = 0x0300, // usb3.0
.bDeviceClass = 0x00, // hid class
.bDeviceClass = 0x00,
.bDeviceSubClass = 0x00,
.bDeviceProtocol = 0x00,
.bMaxPacketSize0 = 9, // this is a requirement for usb3 (max packet size =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/User

#### wch-ch56x-lib options

#This lib is only an interface, which means it is not compiled but its files are compiled with the current target.
# This way, we can customize the lib for each target, but this means it is recompiled for each target

target_compile_definitions(wch-ch56x-lib-scheduled INTERFACE POOL_BLOCK_SIZE=512 POOL_BLOCK_NUM=40 INTERRUPT_QUEUE_SIZE=20)

#### logging options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@ void usb2_board_init_descriptors(void)
.bLength = 0x12,
.bDescriptorType = 0x01, // device descriptor type
.bcdUSB = 0x0200, // usb2.0
.bDeviceClass = 0x00, // hid class
.bDeviceClass = 0x00,
.bDeviceSubClass = 0x00,
.bDeviceProtocol = 0x00,
.bMaxPacketSize0 = 64, // this is a requirement for usb3 (max packet size
// = 2^9 thus the 9)
.bMaxPacketSize0 = 64,
.bcdDevice = 0x0001,
.idVendor =
0x16c0, // https://github.com/obdev/v-usb/blob/master/usbdrv/usb-ids-for-free.txt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void usb3_board_init_descriptors(void)
.bLength = 0x12,
.bDescriptorType = 0x01, // device descriptor type
.bcdUSB = 0x0300, // usb3.0
.bDeviceClass = 0x00, // hid class
.bDeviceClass = 0x00,
.bDeviceSubClass = 0x00,
.bDeviceProtocol = 0x00,
.bMaxPacketSize0 = 9, // this is a requirement for usb3 (max packet size =
Expand Down
3 changes: 0 additions & 3 deletions tests/test_firmware_usb_speedtest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/User

#### wch-ch56x-lib options

#This lib is only an interface, which means it is not compiled but its files are compiled with the current target.
# This way, we can customize the lib for each target, but this means it is recompiled for each target

target_compile_definitions(wch-ch56x-lib-scheduled INTERFACE POOL_BLOCK_SIZE=512 POOL_BLOCK_NUM=40 INTERRUPT_QUEUE_SIZE=20)

#### logging options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ void init_usb2_descriptors(void)
.bLength = 0x12,
.bDescriptorType = 0x01, // device descriptor type
.bcdUSB = 0x0200, // usb2.0
.bDeviceClass = 0x00, // hid class
.bDeviceClass = 0x00,
.bDeviceSubClass = 0x00,
.bDeviceProtocol = 0x00,
.bMaxPacketSize0 = 64, // this is a requirement for usb3 (max packet size
// = 2^9 thus the 9)
.bMaxPacketSize0 = 64,
.bcdDevice = 0x0001,
.idVendor =
0x16c0, // https://github.com/obdev/v-usb/blob/master/usbdrv/usb-ids-for-free.txt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void init_usb3_descriptors(void)
.bLength = 0x12,
.bDescriptorType = 0x01, // device descriptor type
.bcdUSB = 0x0300, // usb3.0
.bDeviceClass = 0x00, // hid class
.bDeviceClass = 0x00,
.bDeviceSubClass = 0x00,
.bDeviceProtocol = 0x00,
.bMaxPacketSize0 = 9, // this is a requirement for usb3 (max packet size =
Expand Down
3 changes: 0 additions & 3 deletions tools/firmware_debug_board/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/User

#### wch-ch56x-lib options

#This lib is only an interface, which means it is not compiled but its files are compiled with the current target.
# This way, we can customize the lib for each target, but this means it is recompiled for each target

target_compile_definitions(wch-ch56x-lib-scheduled INTERFACE POOL_BLOCK_SIZE=512 POOL_BLOCK_NUM=40 INTERRUPT_QUEUE_SIZE=20)

#### logging options
Expand Down

0 comments on commit 2c8fcd7

Please sign in to comment.