Skip to content

Commit

Permalink
Merge branch 'master' into faster_dwt_configure
Browse files Browse the repository at this point in the history
  • Loading branch information
corruptbear committed Nov 13, 2023
2 parents 71a5512 + e382741 commit 8573c7b
Show file tree
Hide file tree
Showing 46 changed files with 965 additions and 1,173 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ jobs:
- uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: '11.3.Rel1'
- name: compile-revI
run: pushd software/firmware && make clean && make -j all BOARD_REV=I
- name: compile-revM
run: pushd software/firmware && make clean && make -j all BOARD_REV=M
10 changes: 9 additions & 1 deletion software/firmware/.cproject
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,20 @@
</target>
<target name="UID" path="tests" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>${cross_make}</buildCommand>
<buildArguments>ID=c0:98:e5:42:01:10</buildArguments>
<buildArguments>ID=c0:98:e5:42:01:14</buildArguments>
<buildTarget>UID</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>false</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="ble_and_range" path="tests" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>${cross_make}</buildCommand>
<buildArguments>BUILT_BY=eclipse BOARD_REV=M</buildArguments>
<buildTarget>ble_and_range</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
</buildTargets>
</storageModule>
</cproject>
2 changes: 1 addition & 1 deletion software/firmware/.settings/language.settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="-339510081203349785" id="org.eclipse.embedcdt.managedbuild.cross.arm.core.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Arm Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="1347002660722691700" id="org.eclipse.embedcdt.managedbuild.cross.arm.core.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Arm Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
Expand Down
5 changes: 2 additions & 3 deletions software/firmware/Jtag.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,15 @@ endif
.PHONY: UID flash
UID: $(CONFIG)
printf "r\n" > $(CONFIG)/flash.jlink
ifdef ID
printf "w4 $(ID_FLASH_LOCATION), 0x$(ID_SECON) 0x$(ID_FIRST)\n" >> $(CONFIG)/flash.jlink
printf "exit\n" >> $(CONFIG)/flash.jlink
$(JLINK) $(JLINK_FLAGS) $(CONFIG)/flash.jlink
endif

# Code Flash Rule
flash: all
printf "r\n" > $(CONFIG)/flash.jlink
ifdef ID
printf "w4 $(ID_FLASH_LOCATION), 0x$(ID_SECON) 0x$(ID_FIRST)\n" >> $(CONFIG)/flash.jlink
endif
printf "loadfile $(CONFIG)/$(TARGET).bin $(FLASH_START)\nr\ng\nexit\n" >> $(CONFIG)/flash.jlink
$(JLINK) $(JLINK_FLAGS) $(CONFIG)/flash.jlink

Expand Down
14 changes: 2 additions & 12 deletions software/firmware/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,16 +147,10 @@ SRC += am_util_stdio.c
SRC += am_util_string.c
SRC += app_db.c
SRC += app_main.c
SRC += app_master.c
SRC += app_master_leg.c
SRC += app_slave.c
SRC += app_slave_leg.c
SRC += att_main.c
SRC += att_uuid.c
SRC += attc_main.c
SRC += attc_proc.c
SRC += attc_read.c
SRC += attc_write.c
SRC += atts_ccc.c
SRC += atts_csf.c
SRC += atts_ind.c
Expand All @@ -170,8 +164,6 @@ SRC += cfg_stack.c
SRC += dm_adv.c
SRC += dm_adv_leg.c
SRC += dm_conn.c
SRC += dm_conn_master.c
SRC += dm_conn_master_leg.c
SRC += dm_conn_slave.c
SRC += dm_conn_slave_leg.c
SRC += dm_conn_sm.c
Expand All @@ -182,11 +174,11 @@ SRC += dm_priv.c
SRC += dm_scan.c
SRC += dm_scan_leg.c
SRC += dm_sec.c
SRC += dm_sec_master.c
SRC += dm_sec_slave.c
SRC += event_groups.c
SRC += gatt_main.c
SRC += hci_cmd.c
SRC += hci_cmd_phy.c
SRC += hci_core.c
SRC += hci_core_ps.c
SRC += hci_drv_cooper.c
Expand All @@ -196,7 +188,6 @@ SRC += hci_tr.c
SRC += hci_vs_cooper.c
SRC += heap_4.c
SRC += l2c_main.c
SRC += l2c_master.c
SRC += l2c_slave.c
SRC += list.c
SRC += port.c
Expand Down Expand Up @@ -246,10 +237,9 @@ SRC += ranging_phase.c
SRC += ranging_task.c
SRC += schedule_phase.c
SRC += scheduler.c
SRC += scheduling_functionality.c
SRC += scheduling_service.c
SRC += status_phase.c
SRC += storage_task.c
SRC += subscription_phase.c
SRC += time_aligned_task.c

CSRC = $(filter %.c,$(SRC))
Expand Down
83 changes: 83 additions & 0 deletions software/firmware/launchConfigs/TestBleAndRanging.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="ilg.gnumcueclipse.debug.gdbjtag.jlink.launchConfigurationType">
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doConnectToRunning" value="false"/>
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doContinue" value="true"/>
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doDebugInRam" value="false"/>
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doFirstReset" value="true"/>
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doGdbServerAllocateConsole" value="true"/>
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doGdbServerAllocateSemihostingConsole" value="true"/>
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doGdbServerInitRegs" value="true"/>
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doGdbServerLocalOnly" value="true"/>
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doGdbServerSilent" value="false"/>
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doGdbServerVerifyDownload" value="true"/>
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doSecondReset" value="true"/>
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doStartGdbServer" value="true"/>
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.enableFlashBreakpoints" value="true"/>
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.enableSemihosting" value="true"/>
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.enableSemihostingIoclientGdbClient" value="false"/>
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.enableSemihostingIoclientTelnet" value="true"/>
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.enableSwo" value="true"/>
<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.firstResetSpeed" value="1000"/>
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.firstResetType" value=""/>
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbClientOtherCommands" value="set mem inaccessible-by-default off"/>
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbClientOtherOptions" value=""/>
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerConnection" value="usb"/>
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerConnectionAddress" value=""/>
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerDebugInterface" value="swd"/>
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerDeviceEndianness" value="little"/>
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerDeviceName" value="AMAP42KK-KBR"/>
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerDeviceSpeed" value="1000"/>
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerExecutable" value="${jlink_path}/${jlink_gdbserver}"/>
<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerGdbPortNumber" value="2331"/>
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerLog" value=""/>
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerOther" value="-singlerun -strict -timeout 0 -nogui"/>
<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerSwoPortNumber" value="2332"/>
<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerTelnetPortNumber" value="2333"/>
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.interfaceSpeed" value="auto"/>
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.otherInitCommands" value=""/>
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.otherRunCommands" value=""/>
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.secondResetType" value=""/>
<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.swoEnableTargetCpuFreq" value="96000000"/>
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.swoEnableTargetPortMask" value="0x1"/>
<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.swoEnableTargetSwoFreq" value="1000000"/>
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.svdPath" value=""/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageFileName" value=""/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageOffset" value=""/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.ipAddress" value="localhost"/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.jtagDevice" value="GNU MCU J-Link"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadImage" value="true"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadSymbols" value="true"/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.pcRegister" value=""/>
<intAttribute key="org.eclipse.cdt.debug.gdbjtag.core.portNumber" value="2331"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setPcRegister" value="false"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setResume" value="false"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setStopAt" value="false"/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.stopAt" value="main"/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsFileName" value=""/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsOffset" value=""/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForImage" value="false"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForSymbols" value="false"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForImage" value="true"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForSymbols" value="true"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useRemoteTarget" value="true"/>
<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="${cross_prefix}gdb${cross_suffix}"/>
<booleanAttribute key="org.eclipse.cdt.dsf.gdb.UPDATE_THREADLIST_ON_SUSPEND" value="false"/>
<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="0"/>
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="tests/bin/TestBleAndRanging.axf"/>
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="SociTrack"/>
<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="true"/>
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value="ilg.gnuarmeclipse.managedbuild.cross.toolchain.base.1790597438"/>
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/SociTrack"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
</listAttribute>
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;memoryBlockExpressionList context=&quot;Context string&quot;/&gt;&#13;&#10;"/>
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
</launchConfiguration>
2 changes: 1 addition & 1 deletion software/firmware/launchConfigs/TestBluetooth.launch
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
</listAttribute>
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;memoryBlockExpressionList context=&quot;Context string&quot;/&gt;&#10;"/>
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;memoryBlockExpressionList context=&quot;Context string&quot;/&gt;&#13;&#10;"/>
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
</launchConfiguration>
2 changes: 1 addition & 1 deletion software/firmware/launchConfigs/TestFull.launch
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
</listAttribute>
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;memoryBlockExpressionList context=&quot;Context string&quot;/&gt;&#10;"/>
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;memoryBlockExpressionList context=&quot;Context string&quot;/&gt;&#13;&#10;"/>
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
</launchConfiguration>
32 changes: 18 additions & 14 deletions software/firmware/src/app/app_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#define COMPRESSED_RANGE_DATUM_LENGTH (1 + sizeof(int16_t)) // EUI + Range
#define MAX_COMPRESSED_RANGE_DATA_LENGTH (1 + (COMPRESSED_RANGE_DATUM_LENGTH * MAX_NUM_RANGING_DEVICES))

#define STORAGE_QUEUE_MAX_NUM_ITEMS 16
#define STORAGE_QUEUE_MAX_NUM_ITEMS 24

#define BATTERY_CHECK_INTERVAL_S 300

Expand All @@ -48,11 +48,13 @@ typedef enum { BATTERY_EMPTY = 3200, BATTERY_CRITICAL = 3500, BATTERY_NOMINAL =

// DW3000 Ranging Radio Configuration ----------------------------------------------------------------------------------

#define DW_PREAMBLE_LENGTH DWT_PLEN_256
#define DW_PAC_SIZE DWT_PAC16
#define DW_PREAMBLE_LENGTH DWT_PLEN_128
#define DW_PAC_SIZE DWT_PAC8
#define DW_DATA_RATE DWT_BR_6M8
#define DW_SFD_TYPE DWT_SFD_DW_16
#define DW_SFD_TO (256 + 1 + 16 - 16) // (Preamble length + 1 + SFD length - PAC size)
#define DW_SFD_TO (128 + 1 + 16 - 8) // (Preamble length + 1 + SFD length - PAC size)
#define DW_PREAMBLE_TIMEOUT (128 / 8) // (Preamble length / PAC size)
#define DW_PREAMBLE_LENGTH_US ((1 + 128 + 16) * 64 / 62.89133858) // (1 + Preamble length + SFD length) * 64 / 62.89133858


// Bluetooth LE Configuration ------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -95,35 +97,37 @@ typedef enum { BATTERY_EMPTY = 3200, BATTERY_CRITICAL = 3500, BATTERY_NOMINAL =
// Ranging Protocol Configuration --------------------------------------------------------------------------------------

#define RADIO_XMIT_CHANNEL 5
#define NUM_ANTENNAS 3
#define RADIO_TX_PLUS_RX_DELAY 32770
#define NUM_XMIT_ANTENNAS 3
#define TX_ANTENNA_DELAY 16385
#define RX_ANTENNA_DELAY 16385
#define MIN_VALID_RANGE_MM (-1000)
#define MAX_VALID_RANGE_MM (32*1000)
#define UNSCHEDULED_SLOT 0xFF

#define SCHEDULING_INTERVAL_US 1000000
#define RADIO_WAKEUP_SAFETY_DELAY_US 5000
#define RECEIVE_EARLY_START_US 100
#define RECEIVE_EARLY_START_US ((uint32_t)DW_PREAMBLE_LENGTH_US)

#define DEVICE_TIMEOUT_SECONDS 60
#define NETWORK_SEARCH_TIME_SECONDS 3
#define MAX_EMPTY_ROUNDS_BEFORE_STATE_CHANGE 3

#define SCHEDULE_XMIT_ANTENNA 0
#define SCHEDULE_NUM_TOTAL_BROADCASTS 5
#define SCHEDULE_NUM_MASTER_BROADCASTS 2
#define SCHEDULE_RESEND_INTERVAL_US 1000
#define SCHEDULE_BROADCAST_PERIOD_US (SCHEDULE_NUM_TOTAL_BROADCASTS * SCHEDULE_RESEND_INTERVAL_US)

#define RANGING_NUM_SEQUENCES NUM_ANTENNAS
#define RANGING_BROADCAST_INTERVAL_US 1000
#define RANGING_TIMEOUT_US (100 + RECEIVE_EARLY_START_US)
#define RANGING_NUM_PACKETS_PER_ITERATION ((3 * NUM_ANTENNAS) + NUM_ANTENNAS)
#define RANGING_ITERATION_INTERVAL_US (RANGING_BROADCAST_INTERVAL_US * RANGING_NUM_PACKETS_PER_ITERATION)
#define RANGING_NUM_PACKETS_PER_DEVICE 3
#define RANGING_BROADCAST_INTERVAL_US 700
#define RANGING_NUM_RANGE_ATTEMPTS NUM_XMIT_ANTENNAS
#define RANGING_TIMEOUT_US (RECEIVE_EARLY_START_US + 130)

#define RANGE_STATUS_XMIT_ANTENNA 0
#define RANGE_STATUS_NUM_TOTAL_BROADCASTS 4
#define RANGE_STATUS_RESEND_INTERVAL_US 1000
#define RANGE_STATUS_BROADCAST_PERIOD_US (RANGE_STATUS_NUM_TOTAL_BROADCASTS * RANGE_STATUS_RESEND_INTERVAL_US)
#define RANGE_STATUS_TIMEOUT_US (RANGE_STATUS_BROADCAST_PERIOD_US - 900 + RECEIVE_EARLY_START_US)

#define SUBSCRIPTION_BROADCAST_PERIOD_US 2000
#define SUBSCRIPTION_TIMEOUT_US 1000

#endif // #ifndef __APP_CONFIG_HEADER_H__
2 changes: 0 additions & 2 deletions software/firmware/src/peripherals/include/bluetooth.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@ bool bluetooth_is_initialized(void);
void bluetooth_register_discovery_callback(ble_discovery_callback_t callback);
uint8_t bluetooth_get_current_ranging_role(void);
void bluetooth_set_current_ranging_role(uint8_t ranging_role);
void bluetooth_join_ranging_network(const uint8_t *ble_address, const uint8_t *requesting_address);
void bluetooth_write_range_results(const uint8_t *results, uint16_t results_length);
void bluetooth_start_advertising(void);
void bluetooth_stop_advertising(void);
bool bluetooth_is_advertising(void);
void bluetooth_start_scanning(void);
void bluetooth_stop_scanning(void);
void bluetooth_reset_scanning(void);
void bluetooth_single_scan(uint16_t milliseconds);
bool bluetooth_is_scanning(void);
bool bluetooth_is_connected(void);
void bluetooth_clear_whitelist(void);
Expand Down
Loading

0 comments on commit 8573c7b

Please sign in to comment.