Skip to content

Commit 2f82459

Browse files
committed
fixed the conf file, still need to check over desc and main
1 parent b2dfc4b commit 2f82459

File tree

21 files changed

+1316
-17
lines changed

21 files changed

+1316
-17
lines changed

.vscode/settings.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,12 @@
1111
"--compile-commands-dir=build_fw_dev",
1212
// "--compile-commands-dir=build_fw_test",
1313
"--query-driver=/usr/local/bin/arm-none-eabi-gcc"
14-
]
14+
],
15+
"files.associations": {
16+
"usbd_def.h": "c",
17+
"usbd_core.h": "c",
18+
"usbd_conf.h": "c",
19+
"usb_device.h": "c",
20+
"__config": "c"
21+
}
1522
}

firmware/hexray/BMS/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ list(APPEND CUBEMX_SRCS "${SHARED_EMBEDDED_DIR_CPP}/hw/usb/usbd_desc.c")
66
set(CUBEMX_INCLUDE_DIRS
77
"${CMAKE_CURRENT_SOURCE_DIR}/src/cubemx/Inc"
88
"${SHARED_HW_INCLUDE_DIR_CPP}/usb"
9+
"${SHARED_HW_INCLUDE_DIR_CPP}/USB"
910
"${CMAKE_CURRENT_SOURCE_DIR}/hw")
1011

1112
set(JOBS_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/jobs.cpp")
@@ -70,7 +71,7 @@ if ("${TARGET}" STREQUAL "binary")
7071
"${CMAKE_CURRENT_SOURCE_DIR}/src/cubemx/BMS.ioc"
7172
"${CUBEMX_SRCS}"
7273
"${CUBEMX_INCLUDE_DIRS}"
73-
FALSE
74+
TRUE
7475
"${ARM_CORE}"
7576
)
7677

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#pragma once
2+
3+
#define USBD_PRODUCT_STRING_HS "bms"

firmware/hexray/CRIT/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ list(APPEND CUBEMX_SRCS "${SHARED_EMBEDDED_DIR_CPP}/hw/usb/usbd_desc.c")
66
set(CUBEMX_INCLUDE_DIRS
77
"${CMAKE_CURRENT_SOURCE_DIR}/src/cubemx/Inc"
88
"${SHARED_HW_INCLUDE_DIR_CPP}/usb"
9+
"${SHARED_HW_INCLUDE_DIR_CPP}/USB"
910
"${CMAKE_CURRENT_SOURCE_DIR}/hw")
1011

1112
set(JOBS_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/jobs.cpp")
@@ -69,7 +70,7 @@ if ("${TARGET}" STREQUAL "binary")
6970
"${CMAKE_CURRENT_SOURCE_DIR}/src/cubemx/CRIT.ioc"
7071
"${CUBEMX_SRCS}"
7172
"${CUBEMX_INCLUDE_DIRS}"
72-
FALSE
73+
TRUE
7374
"${ARM_CORE}"
7475
)
7576

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#pragma once
2+
3+
#define USBD_PRODUCT_STRING_HS "crit"

firmware/hexray/DAM/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ list(APPEND CUBEMX_SRCS "${SHARED_EMBEDDED_DIR_CPP}/hw/usb/usbd_desc.c")
66
set(CUBEMX_INCLUDE_DIRS
77
"${CMAKE_CURRENT_SOURCE_DIR}/src/cubemx/Inc"
88
"${SHARED_HW_INCLUDE_DIR_CPP}/usb"
9+
"${SHARED_HW_INCLUDE_DIR_CPP}/USB"
910
"${CMAKE_CURRENT_SOURCE_DIR}/hw")
1011

1112
set(JOBS_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/jobs.cpp")
@@ -69,7 +70,7 @@ if ("${TARGET}" STREQUAL "binary")
6970
"${CMAKE_CURRENT_SOURCE_DIR}/src/cubemx/DAM.ioc"
7071
"${CUBEMX_SRCS}"
7172
"${CUBEMX_INCLUDE_DIRS}"
72-
FALSE
73+
TRUE
7374
"${ARM_CORE}"
7475
)
7576

firmware/hexray/FSM/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ list(APPEND CUBEMX_SRCS "${SHARED_EMBEDDED_DIR_CPP}/hw/usb/usbd_desc.c")
66
set(CUBEMX_INCLUDE_DIRS
77
"${CMAKE_CURRENT_SOURCE_DIR}/src/cubemx/Inc"
88
"${SHARED_HW_INCLUDE_DIR_CPP}/usb"
9+
"${SHARED_HW_INCLUDE_DIR_CPP}/USB"
910
"${CMAKE_CURRENT_SOURCE_DIR}/hw")
1011

1112
set(JOBS_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/jobs.cpp")
@@ -69,7 +70,7 @@ if ("${TARGET}" STREQUAL "binary")
6970
"${CMAKE_CURRENT_SOURCE_DIR}/src/cubemx/FSM.ioc"
7071
"${CUBEMX_SRCS}"
7172
"${CUBEMX_INCLUDE_DIRS}"
72-
FALSE
73+
TRUE
7374
"${ARM_CORE}"
7475
)
7576

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#pragma once
2+
3+
#define USBD_PRODUCT_STRING_HS "fsm"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24f2726de63b4722b40c701d9e657dbe
1+
532332e080dc479810983725e8acb38b

firmware/hexray/RSM/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ list(APPEND CUBEMX_SRCS "${SHARED_EMBEDDED_DIR_CPP}/hw/usb/usbd_desc.c")
66
set(CUBEMX_INCLUDE_DIRS
77
"${CMAKE_CURRENT_SOURCE_DIR}/src/cubemx/Inc"
88
"${SHARED_HW_INCLUDE_DIR_CPP}/usb"
9+
"${SHARED_HW_INCLUDE_DIR_CPP}/USB"
910
"${CMAKE_CURRENT_SOURCE_DIR}/hw")
1011

1112
set(JOBS_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/jobs.cpp")
@@ -69,7 +70,7 @@ if ("${TARGET}" STREQUAL "binary")
6970
"${CMAKE_CURRENT_SOURCE_DIR}/src/cubemx/RSM.ioc"
7071
"${CUBEMX_SRCS}"
7172
"${CUBEMX_INCLUDE_DIRS}"
72-
FALSE
73+
TRUE
7374
"${ARM_CORE}"
7475
)
7576

0 commit comments

Comments
 (0)