Add selectable BLE-only and Classic-only radio modes
This commit is contained in:
parent
7c1c37a84e
commit
595518fe3d
13 changed files with 951 additions and 95 deletions
17
bluepad32_config/bluetooth_transport_config.h
Normal file
17
bluepad32_config/bluetooth_transport_config.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
// Radio policy, independent of the BTstack libraries linked for shared services.
|
||||
#ifndef SWITCH_PICO_ENABLE_BLE
|
||||
#define SWITCH_PICO_ENABLE_BLE 1
|
||||
#endif
|
||||
#ifndef SWITCH_PICO_ENABLE_CLASSIC
|
||||
#define SWITCH_PICO_ENABLE_CLASSIC 1
|
||||
#endif
|
||||
|
||||
#if (SWITCH_PICO_ENABLE_BLE != 0 && SWITCH_PICO_ENABLE_BLE != 1) || \
|
||||
(SWITCH_PICO_ENABLE_CLASSIC != 0 && SWITCH_PICO_ENABLE_CLASSIC != 1)
|
||||
#error "Bluetooth transport selections must be 0 or 1"
|
||||
#endif
|
||||
#if !SWITCH_PICO_ENABLE_BLE && !SWITCH_PICO_ENABLE_CLASSIC
|
||||
#error "At least one Bluetooth transport must be enabled"
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue