Skip to content

Commit

Permalink
Fix things, maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Oct 3, 2023
1 parent 868b9ff commit cb8e597
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 32 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ git_info.h
# Platformio stuff
.pio/
cmake-build*
CMakeListsPrivate.txt
CMakeListsPrivate.txt
build_stm32/
build/*
build_desktop/*
2 changes: 1 addition & 1 deletion common/system/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ set(SYSTEM_INCLUDE_DIRS
if (PROJECT_BUILD_TYPE MATCHES "stm32")
message("Adding CMSIS DSP")
set(CMSIS_DSP_INC ${CMAKE_CURRENT_SOURCE_DIR}/cmsis CACHE INTERNAL "")
set(STM_HARDWARE_MANAGER ${CMAKE_CURRENT_SOURCE_DIR}/hardware_manager.c CACHE INTERNAL "")
set(STM_HARDWARE_MANAGER ${CMAKE_CURRENT_SOURCE_DIR}/hardware_manager.cpp CACHE INTERNAL "")
endif ()
2 changes: 1 addition & 1 deletion desktop_projects/desktop_sim/.cproject
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<sourceEntries>
<entry excluding="utils|system|devices" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="devices"/>
<entry excluding="hardware_manager.c" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="system"/>
<entry excluding="hardware_manager.cpp" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="system"/>
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="utils"/>
</sourceEntries>
</configuration>
Expand Down
53 changes: 26 additions & 27 deletions stm32_projects/device_drivers/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
set(STM32_DEVICE_DRIVERS_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/accel_h3lis331dl.c
${CMAKE_CURRENT_SOURCE_DIR}/adc_device.c
${CMAKE_CURRENT_SOURCE_DIR}/adc_mcp3564.c
${CMAKE_CURRENT_SOURCE_DIR}/barometer_ms5607.c
${CMAKE_CURRENT_SOURCE_DIR}/ble_chip_nrf.c
${CMAKE_CURRENT_SOURCE_DIR}/ble_client_std.c
${CMAKE_CURRENT_SOURCE_DIR}/buzzer_pwm.c
${CMAKE_CURRENT_SOURCE_DIR}/dc_motor_pwm.c
${CMAKE_CURRENT_SOURCE_DIR}/flash_mb85rsx.c
${CMAKE_CURRENT_SOURCE_DIR}/flash_s25flx.c
${CMAKE_CURRENT_SOURCE_DIR}/gps.c
${CMAKE_CURRENT_SOURCE_DIR}/hal_callbacks.c
${CMAKE_CURRENT_SOURCE_DIR}/imu_icm20600.c
${CMAKE_CURRENT_SOURCE_DIR}/imu_iis2mdc.c
${CMAKE_CURRENT_SOURCE_DIR}/imu_lsm9ds1.c
${CMAKE_CURRENT_SOURCE_DIR}/internal_flash.c
${CMAKE_CURRENT_SOURCE_DIR}/led.c
${CMAKE_CURRENT_SOURCE_DIR}/line_cutter_ble.c
${CMAKE_CURRENT_SOURCE_DIR}/mag_iis2mdc.c
${CMAKE_CURRENT_SOURCE_DIR}/accel_h3lis331dl.cpp
${CMAKE_CURRENT_SOURCE_DIR}/adc_device.cpp
${CMAKE_CURRENT_SOURCE_DIR}/adc_mcp3564.cpp
${CMAKE_CURRENT_SOURCE_DIR}/barometer_ms5607.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ble_chip_nrf.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ble_client_std.cpp
${CMAKE_CURRENT_SOURCE_DIR}/buzzer_pwm.cpp
${CMAKE_CURRENT_SOURCE_DIR}/dc_motor_pwm.cpp
${CMAKE_CURRENT_SOURCE_DIR}/flash_mb85rsx.cpp
${CMAKE_CURRENT_SOURCE_DIR}/flash_s25flx.cpp
${CMAKE_CURRENT_SOURCE_DIR}/gps.cpp
${CMAKE_CURRENT_SOURCE_DIR}/hal_callbacks.cpp
${CMAKE_CURRENT_SOURCE_DIR}/imu_icm20600.cpp
${CMAKE_CURRENT_SOURCE_DIR}/imu_iis2mdc.cpp
${CMAKE_CURRENT_SOURCE_DIR}/imu_lsm9ds1.cpp
${CMAKE_CURRENT_SOURCE_DIR}/internal_flash.cpp
${CMAKE_CURRENT_SOURCE_DIR}/led.cpp
${CMAKE_CURRENT_SOURCE_DIR}/line_cutter_ble.cpp
${CMAKE_CURRENT_SOURCE_DIR}/mag_iis2mdc.cpp
${CMAKE_CURRENT_SOURCE_DIR}/minmea.c
${CMAKE_CURRENT_SOURCE_DIR}/pyro_digital.c
${CMAKE_CURRENT_SOURCE_DIR}/radioconfig
${CMAKE_CURRENT_SOURCE_DIR}/servo_pwm.c
${CMAKE_CURRENT_SOURCE_DIR}/spi_driver.c
${CMAKE_CURRENT_SOURCE_DIR}/temp_max31855.c
${CMAKE_CURRENT_SOURCE_DIR}/ti_radio.c
${CMAKE_CURRENT_SOURCE_DIR}/usb_std.c
${CMAKE_CURRENT_SOURCE_DIR}/vbat_ina226.c
${CMAKE_CURRENT_SOURCE_DIR}/pyro_digital.cpp
${CMAKE_CURRENT_SOURCE_DIR}/servo_pwm.cpp
${CMAKE_CURRENT_SOURCE_DIR}/spi_driver.cpp
${CMAKE_CURRENT_SOURCE_DIR}/temp_max31855.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ti_radio.cpp
${CMAKE_CURRENT_SOURCE_DIR}/usb_std.cpp
${CMAKE_CURRENT_SOURCE_DIR}/vbat_ina226.cpp
CACHE INTERNAL "")

set(STM32_DEVICE_DRIVERS_INCLUDE_DIRS
Expand Down
4 changes: 2 additions & 2 deletions stm32_projects/device_drivers/mag_iis2mdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ typedef struct IIS2MDCCtrl_s {
bool iis2mdc_init(ImuIIS2MDCCtrl_s *sensor, uint8_t address7bit);
void iis2mdc_getData(ImuIIS2MDCCtrl_s *sensor);

#endif // HAL_I2C_MODULE_ENABLED

#ifdef __cplusplus
}
#endif

#endif // HAL_I2C_MODULE_ENABLED

#endif // STM32_PROJECTS_DEVICE_DRIVERS_MAG_IIS2MDC_H_

0 comments on commit cb8e597

Please sign in to comment.