Skip to content

Commit

Permalink
refactor: place variants in firmware dir (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
leon0399 authored Aug 12, 2024
1 parent e99d09c commit 7a3ca68
Show file tree
Hide file tree
Showing 24 changed files with 85 additions and 85 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

#include "senseshift.h"

#include <senseshift/arduino/input/sensor/analog.hpp>
#include <senseshift/arduino/output/ledc.hpp>
#include <senseshift/battery/input/battery_sensor.hpp>
#include <senseshift/bh/ble/connection.hpp>
#include <senseshift/bh/devices.hpp>
#include <senseshift/bh/encoding.hpp>
#include <senseshift/freertos/task.hpp>
#include "senseshift/arduino/input/sensor/analog.hpp"
#include "senseshift/arduino/output/ledc.hpp"
#include "senseshift/battery/input/battery_sensor.hpp"
#include "senseshift/bh/ble/connection.hpp"
#include "senseshift/bh/devices.hpp"
#include "senseshift/bh/encoding.hpp"
#include "senseshift/freertos/task.hpp"

using namespace SenseShift;
using namespace SenseShift::Input;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ build_flags =

build_src_filter =
${env.build_src_filter}
+<../variants/bhaptics/tactal>
+<variants/bhaptics/tactal>
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

#include "senseshift.h"

#include <senseshift/arduino/input/sensor/analog.hpp>
#include <senseshift/arduino/output/ledc.hpp>
#include <senseshift/battery/input/battery_sensor.hpp>
#include <senseshift/bh/ble/connection.hpp>
#include <senseshift/bh/devices.hpp>
#include <senseshift/bh/encoding.hpp>
#include <senseshift/freertos/task.hpp>
#include "senseshift/arduino/input/sensor/analog.hpp"
#include "senseshift/arduino/output/ledc.hpp"
#include "senseshift/battery/input/battery_sensor.hpp"
#include "senseshift/bh/ble/connection.hpp"
#include "senseshift/bh/devices.hpp"
#include "senseshift/bh/encoding.hpp"
#include "senseshift/freertos/task.hpp"

using namespace SenseShift;
using namespace SenseShift::Input;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ build_flags =

build_src_filter =
${env.build_src_filter}
+<../variants/bhaptics/tactal>
+<variants/bhaptics/tactal>

[env:bhaptics_tactglove_right]
extends = base:bhaptics
Expand All @@ -24,4 +24,4 @@ build_flags =

build_src_filter =
${env.build_src_filter}
+<../variants/bhaptics/tactglove>
+<variants/bhaptics/tactglove>
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

#include "senseshift.h"

#include <senseshift/arduino/input/sensor/analog.hpp>
#include <senseshift/arduino/output/ledc.hpp>
#include <senseshift/battery/input/battery_sensor.hpp>
#include <senseshift/bh/ble/connection.hpp>
#include <senseshift/bh/devices.hpp>
#include <senseshift/bh/encoding.hpp>
#include <senseshift/freertos/task.hpp>
#include "senseshift/arduino/input/sensor/analog.hpp"
#include "senseshift/arduino/output/ledc.hpp"
#include "senseshift/battery/input/battery_sensor.hpp"
#include "senseshift/bh/ble/connection.hpp"
#include "senseshift/bh/devices.hpp"
#include "senseshift/bh/encoding.hpp"
#include "senseshift/freertos/task.hpp"

using namespace SenseShift;
using namespace SenseShift::Input;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build_flags =

build_src_filter =
${env.build_src_filter}
+<../variants/bhaptics/tactosy2>
+<variants/bhaptics/tactosy2>

[env:bhaptics_tactosy2_forearm_right]
extends = base:bhaptics
Expand All @@ -22,4 +22,4 @@ build_flags =

build_src_filter =
${env.build_src_filter}
+<../variants/bhaptics/tactosy2>
+<variants/bhaptics/tactosy2>
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

#include "senseshift.h"

#include <senseshift/arduino/input/sensor/analog.hpp>
#include <senseshift/arduino/output/ledc.hpp>
#include <senseshift/battery/input/battery_sensor.hpp>
#include <senseshift/bh/ble/connection.hpp>
#include <senseshift/bh/devices.hpp>
#include <senseshift/bh/encoding.hpp>
#include <senseshift/freertos/task.hpp>
#include "senseshift/arduino/input/sensor/analog.hpp"
#include "senseshift/arduino/output/ledc.hpp"
#include "senseshift/battery/input/battery_sensor.hpp"
#include "senseshift/bh/ble/connection.hpp"
#include "senseshift/bh/devices.hpp"
#include "senseshift/bh/encoding.hpp"
#include "senseshift/freertos/task.hpp"

using namespace SenseShift;
using namespace SenseShift::Input;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build_flags =

build_src_filter =
${env.build_src_filter}
+<../variants/bhaptics/tactosyf>
+<variants/bhaptics/tactosyf>

[env:bhaptics_tactosyf_foot_right]
extends = base:bhaptics
Expand All @@ -22,4 +22,4 @@ build_flags =

build_src_filter =
${env.build_src_filter}
+<../variants/bhaptics/tactosyf>
+<variants/bhaptics/tactosyf>
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

#include "senseshift.h"

#include <senseshift/arduino/input/sensor/analog.hpp>
#include <senseshift/arduino/output/ledc.hpp>
#include <senseshift/battery/input/battery_sensor.hpp>
#include <senseshift/bh/ble/connection.hpp>
#include <senseshift/bh/devices.hpp>
#include <senseshift/bh/encoding.hpp>
#include <senseshift/freertos/task.hpp>
#include "senseshift/arduino/input/sensor/analog.hpp"
#include "senseshift/arduino/output/ledc.hpp"
#include "senseshift/battery/input/battery_sensor.hpp"
#include "senseshift/bh/ble/connection.hpp"
#include "senseshift/bh/devices.hpp"
#include "senseshift/bh/encoding.hpp"
#include "senseshift/freertos/task.hpp"

using namespace SenseShift;
using namespace SenseShift::Input;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build_flags =

build_src_filter =
${env.build_src_filter}
+<../variants/bhaptics/tactosyh>
+<variants/bhaptics/tactosyh>

[env:bhaptics_tactosyh_hand_right]
extends = base:bhaptics
Expand All @@ -22,4 +22,4 @@ build_flags =

build_src_filter =
${env.build_src_filter}
+<../variants/bhaptics/tactosyh>
+<variants/bhaptics/tactosyh>
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

#include "senseshift.h"

#include <senseshift/arduino/input/sensor/analog.hpp>
#include <senseshift/arduino/output/ledc.hpp>
#include <senseshift/battery/input/battery_sensor.hpp>
#include <senseshift/bh/ble/connection.hpp>
#include <senseshift/bh/devices.hpp>
#include <senseshift/bh/encoding.hpp>
#include <senseshift/freertos/task.hpp>
#include "senseshift/arduino/input/sensor/analog.hpp"
#include "senseshift/arduino/output/ledc.hpp"
#include "senseshift/battery/input/battery_sensor.hpp"
#include "senseshift/bh/ble/connection.hpp"
#include "senseshift/bh/devices.hpp"
#include "senseshift/bh/encoding.hpp"
#include "senseshift/freertos/task.hpp"

using namespace SenseShift;
using namespace SenseShift::Input;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ build_flags =

build_src_filter =
${env.build_src_filter}
+<../variants/bhaptics/tactsuit_x16>
+<variants/bhaptics/tactsuit_x16>
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

#include "senseshift.h"

#include <senseshift/arduino/input/sensor/analog.hpp>
#include <senseshift/battery/input/battery_sensor.hpp>
#include <senseshift/bh/ble/connection.hpp>
#include <senseshift/bh/devices.hpp>
#include <senseshift/bh/encoding.hpp>
#include <senseshift/freertos/task.hpp>
#include <senseshift/output/i2cdevlib_pwm.hpp>
#include "senseshift/arduino/input/sensor/analog.hpp"
#include "senseshift/battery/input/battery_sensor.hpp"
#include "senseshift/bh/ble/connection.hpp"
#include "senseshift/bh/devices.hpp"
#include "senseshift/bh/encoding.hpp"
#include "senseshift/freertos/task.hpp"
#include "senseshift/output/i2cdevlib_pwm.hpp"

using namespace SenseShift;
using namespace SenseShift::Input;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ build_flags =

build_src_filter =
${env.build_src_filter}
+<../variants/bhaptics/tactsuit_x16_pca9685>
+<variants/bhaptics/tactsuit_x16_pca9685>
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

#include "senseshift.h"

#include <senseshift/arduino/input/sensor/analog.hpp>
#include <senseshift/arduino/output/ledc.hpp>
#include <senseshift/battery/input/battery_sensor.hpp>
#include <senseshift/bh/ble/connection.hpp>
#include <senseshift/bh/devices.hpp>
#include <senseshift/bh/encoding.hpp>
#include <senseshift/freertos/task.hpp>
#include <senseshift/output/i2cdevlib_pwm.hpp>
#include "senseshift/arduino/input/sensor/analog.hpp"
#include "senseshift/arduino/output/ledc.hpp"
#include "senseshift/battery/input/battery_sensor.hpp"
#include "senseshift/bh/ble/connection.hpp"
#include "senseshift/bh/devices.hpp"
#include "senseshift/bh/encoding.hpp"
#include "senseshift/freertos/task.hpp"
#include "senseshift/output/i2cdevlib_pwm.hpp"

using namespace SenseShift;
using namespace SenseShift::Input;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ build_flags =

build_src_filter =
${env.build_src_filter}
+<../variants/bhaptics/tactsuit_x40>
+<variants/bhaptics/tactsuit_x40>
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

#include "senseshift.h"

#include <senseshift/arduino/input/sensor/analog.hpp>
#include <senseshift/arduino/output/ledc.hpp>
#include <senseshift/battery/input/battery_sensor.hpp>
#include <senseshift/bh/ble/connection.hpp>
#include <senseshift/bh/devices.hpp>
#include <senseshift/bh/encoding.hpp>
#include <senseshift/freertos/task.hpp>
#include "senseshift/arduino/input/sensor/analog.hpp"
#include "senseshift/arduino/output/ledc.hpp"
#include "senseshift/battery/input/battery_sensor.hpp"
#include "senseshift/bh/ble/connection.hpp"
#include "senseshift/bh/devices.hpp"
#include "senseshift/bh/encoding.hpp"
#include "senseshift/freertos/task.hpp"

using namespace SenseShift;
using namespace SenseShift::Input;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ build_flags =

build_src_filter =
${env.build_src_filter}
+<../variants/bhaptics/tactvisor>
+<variants/bhaptics/tactvisor>
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ build_flags =

build_src_filter =
${env.build_src_filter}
+<../variants/opengloves>
+<variants/opengloves>

lib_deps =
${env.lib_deps}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ build_flags =

build_src_filter =
${env.build_src_filter}
+<../variants/opengloves>
+<variants/opengloves>

lib_deps =
${env.lib_deps}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <senseshift/freertos/task.hpp>
#include <senseshift/opengloves/autoconfig.hpp>
#include <senseshift/opengloves/opengloves_component.hpp>
#include "senseshift/freertos/task.hpp"
#include "senseshift/opengloves/autoconfig.hpp"
#include "senseshift/opengloves/opengloves_component.hpp"

#include "opengloves/alpha.hpp"

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ lib_dir = ./lib
src_dir = ./firmware

extra_configs =
variants/**/*.ini
firmware/variants/**/*.ini
arch/**/*.ini

[env]
Expand All @@ -38,7 +38,7 @@ build_flags =

build_src_filter =
+<*>
-<mode_configs>
-<variants>

lib_ldf_mode = deep+
lib_deps =
Expand Down Expand Up @@ -74,7 +74,7 @@ build_flags =

build_src_filter =
${env.build_src_filter}
+<mode_configs/test.cpp>
+<variants/test.cpp>

lib_deps =
${env.lib_deps}
Expand Down

0 comments on commit 7a3ca68

Please sign in to comment.