Skip to content

Commit

Permalink
build: refactor PlatformIO bHaptics configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
leon0399 committed Aug 7, 2024
1 parent b2935a3 commit 16fd5f0
Show file tree
Hide file tree
Showing 25 changed files with 673 additions and 480 deletions.
19 changes: 19 additions & 0 deletions arch/esp32/esp32.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[arch:esp32]
platform = platformio/espressif32@^6.8.1
platform_packages =
toolchain-xtensa-esp32@12.2.0+20230208
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.3
framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.3/esp32-arduino-libs-3.0.3.zip

build_flags =
-D SS_USE_NIMBLE=true
-D SOC_WIFI_SUPPORTED=1
; -D CORE_DEBUG_LEVEL=3
; -D DEBUG_MODE=0
; -D DEBUG_ESP_PORT=Serial
build_unflags =

lib_deps =
lib_ignore =
segger_rtt
ESP32 BLE Arduino
28 changes: 0 additions & 28 deletions firmware/firmware.cpp

This file was deleted.

2 changes: 1 addition & 1 deletion include/config/all.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

#include "config/bluetooth.h"

#ifdef BHAPTICS
#ifdef SS_BHAPTICS
#include "config/bhaptics.h"
#endif
5 changes: 3 additions & 2 deletions include/config/bhaptics.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#ifdef BHAPTICS
#ifdef SS_BHAPTICS

#include "config/bluetooth.h"

Expand All @@ -9,10 +9,11 @@
#endif

#ifndef BH_SERIAL_NUMBER
// 76b5-e8e7-835d-8b71-381c
#define BH_SERIAL_NUMBER \
{ \
0x76, 0xbd, 0xe8, 0xe7, 0x83, 0x5d, 0x8b, 0x71, 0x38, 0x1c \
} // 76b5-e8e7-835d-8b71-381c
}
#endif

#endif
297 changes: 0 additions & 297 deletions ini/bhaptics.ini

This file was deleted.

Loading

0 comments on commit 16fd5f0

Please sign in to comment.