mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
Switch higher frequency to be opt-in
This commit is contained in:
parent
4aebb2de94
commit
1a5c29530e
@ -8,7 +8,6 @@ build_flags = ${env.build_flags}
|
||||
-DCORE_DEBUG_LEVEL=4 ; set the debug level
|
||||
-DDEBUG_MODE=1 ; Set the debug mode
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
-DSERIAL_MANAGER_USE_LOWER_FREQUENCY
|
||||
${pinoutsAIThinker.build_flags}
|
||||
|
||||
[env:esp32AIThinker_release]
|
||||
@ -18,7 +17,6 @@ build_flags = ${env.build_flags}
|
||||
-DDEBUG_MODE=0 ; Set the debug mode
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
-DSERIAL_MANAGER_USE_LOWER_FREQUENCY
|
||||
${pinoutsAIThinker.build_flags}
|
||||
|
||||
[env:esp32M5Stack]
|
||||
@ -27,7 +25,6 @@ build_type = debug
|
||||
build_flags = ${env.build_flags}
|
||||
-DDEBUG_MODE=1
|
||||
-DCORE_DEBUG_LEVEL=4
|
||||
-DSERIAL_MANAGER_USE_LOWER_FREQUENCY
|
||||
${pinoutsESPCAM_M5STACK.build_flags}
|
||||
|
||||
[env:esp32M5Stack_release]
|
||||
@ -36,7 +33,6 @@ build_type = release
|
||||
build_flags = ${env.build_flags}
|
||||
-DDEBUG_MODE=0
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
-DSERIAL_MANAGER_USE_LOWER_FREQUENCY
|
||||
${pinoutsESPCAM_M5STACK.build_flags}
|
||||
|
||||
[env:esp32Cam]
|
||||
@ -46,7 +42,6 @@ build_flags = ${env.build_flags}
|
||||
-DDEBUG_MODE=1
|
||||
-DCORE_DEBUG_LEVEL=4 ; Set the debug mode
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
-DSERIAL_MANAGER_USE_LOWER_FREQUENCY
|
||||
${pinoutsESPCam.build_flags}
|
||||
|
||||
[env:esp32Cam_release]
|
||||
@ -56,7 +51,6 @@ build_flags = ${env.build_flags}
|
||||
-DDEBUG_MODE=0 ; Set the debug mode
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
-DSERIAL_MANAGER_USE_LOWER_FREQUENCY
|
||||
${pinoutsESPCam.build_flags}
|
||||
|
||||
[env:esp_eye]
|
||||
@ -67,7 +61,6 @@ build_type = debug
|
||||
build_flags = ${env.build_flags}
|
||||
-DDEBUG_MODE=1 ; Set the debug mode
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
-DSERIAL_MANAGER_USE_LOWER_FREQUENCY
|
||||
${pinoutsESP-EYE.build_flags}
|
||||
|
||||
[env:esp_eye_release]
|
||||
@ -79,7 +72,6 @@ build_flags = ${env.build_flags}
|
||||
-DDEBUG_MODE=0 ; Set the debug mode
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
-DSERIAL_MANAGER_USE_LOWER_FREQUENCY
|
||||
${pinoutsESP-EYE.build_flags}
|
||||
|
||||
[env:wrover]
|
||||
@ -91,7 +83,6 @@ build_flags = ${env.build_flags}
|
||||
-DCORE_DEBUG_LEVEL=4 ; set the debug level
|
||||
-DDEBUG_MODE=1 ; Set the debug mode
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
-DSERIAL_MANAGER_USE_LOWER_FREQUENCY
|
||||
${pinoutsESPWROVER.build_flags}
|
||||
|
||||
[env:wrover_release]
|
||||
@ -103,7 +94,6 @@ build_flags = ${env.build_flags}
|
||||
-DDEBUG_MODE=0 ; Set the debug mode
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
-DSERIAL_MANAGER_USE_LOWER_FREQUENCY
|
||||
${pinoutsESPWROVER.build_flags}
|
||||
|
||||
[env:wrooms3QIO]
|
||||
@ -113,6 +103,7 @@ build_type = debug
|
||||
build_flags = ${env.build_flags}
|
||||
-DCORE_DEBUG_LEVEL=4
|
||||
-DDEBUG_MODE=1
|
||||
-DSERIAL_MANAGER_USE_HIGHER_FREQUENCY
|
||||
${pinoutsESPS3WROVER.build_flags}
|
||||
upload_flags = --no-stub
|
||||
|
||||
@ -123,6 +114,7 @@ build_type = release
|
||||
build_flags = ${env.build_flags}
|
||||
-DDEBUG_MODE=0
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
-DSERIAL_MANAGER_USE_HIGHER_FREQUENCY
|
||||
${pinoutsESPS3WROVER.build_flags}
|
||||
upload_flags = --no-stub
|
||||
|
||||
@ -135,6 +127,7 @@ build_flags = ${env.build_flags}
|
||||
-DDEBUG_MODE=1
|
||||
-DARDUINO_USB_CDC_ON_BOOT=1
|
||||
-DETVR_EYE_TRACKER_USB_API
|
||||
-DSERIAL_MANAGER_USE_HIGHER_FREQUENCY
|
||||
${pinoutsESPS3WROVER.build_flags}
|
||||
|
||||
[env:wrooms3QIOUSB_release]
|
||||
@ -146,6 +139,7 @@ build_flags = ${env.build_flags}
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
-DARDUINO_USB_CDC_ON_BOOT=1
|
||||
-DETVR_EYE_TRACKER_USB_API
|
||||
-DSERIAL_MANAGER_USE_HIGHER_FREQUENCY
|
||||
${pinoutsESPS3WROVER.build_flags}
|
||||
|
||||
[env:wrooms3]
|
||||
@ -154,6 +148,7 @@ build_type = debug
|
||||
build_flags = ${env.build_flags}
|
||||
-DCORE_DEBUG_LEVEL=4
|
||||
-DDEBUG_MODE=1
|
||||
-DSERIAL_MANAGER_USE_HIGHER_FREQUENCY
|
||||
${pinoutsESPS3WROOM.build_flags}
|
||||
|
||||
[env:wrooms3_release]
|
||||
@ -162,6 +157,7 @@ build_type = release
|
||||
build_flags = ${env.build_flags}
|
||||
-DDEBUG_MODE=0
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
-DSERIAL_MANAGER_USE_HIGHER_FREQUENCY
|
||||
${pinoutsESPS3WROOM.build_flags}
|
||||
|
||||
[env:wrooms3USB]
|
||||
@ -171,6 +167,7 @@ build_flags = ${env.build_flags}
|
||||
-DCORE_DEBUG_LEVEL=4
|
||||
-DDEBUG_MODE=1
|
||||
-DETVR_EYE_TRACKER_USB_API
|
||||
-DSERIAL_MANAGER_USE_HIGHER_FREQUENCY
|
||||
${pinoutsESPS3WROOM.build_flags}
|
||||
upload_flags = --no-stub
|
||||
|
||||
@ -181,6 +178,7 @@ build_flags = ${env.build_flags}
|
||||
-DDEBUG_MODE=0
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
-DETVR_EYE_TRACKER_USB_API
|
||||
-DSERIAL_MANAGER_USE_HIGHER_FREQUENCY
|
||||
${pinoutsESPS3WROOM.build_flags}
|
||||
upload_flags = --no-stub
|
||||
|
||||
@ -192,6 +190,7 @@ build_flags = ${env.build_flags}
|
||||
-DDEBUG_MODE=1
|
||||
#-DARDUINO_USB_MODE=1
|
||||
#-DARDUINO_USB_CDC_ON_BOOT=1
|
||||
-DSERIAL_MANAGER_USE_HIGHER_FREQUENCY
|
||||
${pinoutsESPS3XIAOSENSE.build_flags}
|
||||
|
||||
[env:xiaosenses3_USB]
|
||||
@ -201,6 +200,7 @@ build_flags = ${env.build_flags}
|
||||
-DCORE_DEBUG_LEVEL=4
|
||||
-DDEBUG_MODE=1
|
||||
-DETVR_EYE_TRACKER_USB_API
|
||||
-DSERIAL_MANAGER_USE_HIGHER_FREQUENCY
|
||||
${pinoutsESPS3XIAOSENSE.build_flags}
|
||||
upload_flags = --no-stub
|
||||
|
||||
@ -210,6 +210,7 @@ build_type = release
|
||||
build_flags = ${env.build_flags}
|
||||
-DDEBUG_MODE=0
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
-DSERIAL_MANAGER_USE_HIGHER_FREQUENCY
|
||||
${pinoutsESPS3XIAOSENSE.build_flags}
|
||||
|
||||
[env:xiaosenses3_USB_release]
|
||||
@ -219,5 +220,6 @@ build_flags = ${env.build_flags}
|
||||
-DDEBUG_MODE=0
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
-DETVR_EYE_TRACKER_USB_API
|
||||
-DSERIAL_MANAGER_USE_HIGHER_FREQUENCY
|
||||
${pinoutsESPS3XIAOSENSE.build_flags}
|
||||
upload_flags = --no-stub
|
||||
|
||||
@ -54,7 +54,7 @@ void SerialManager::send_frame() {
|
||||
#endif
|
||||
|
||||
void SerialManager::init() {
|
||||
#ifndef SERIAL_MANAGER_USE_LOWER_FREQUENCY
|
||||
#ifndef SERIAL_MANAGER_USE_HIGHER_FREQUENCY
|
||||
Serial.begin(3000000);
|
||||
#endif
|
||||
if (SERIAL_FLUSH_ENABLED) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user