AN-000227
Document Number: AN-000227
Page 13 of 15
Revision: 1.0
CHANGING THE PRESENCE DETECTION APPLICATION SETTINGS
The
app_config.h
header file contains symbolic definitions for parameters that affect the application execution.
You may change the following definition to adjust the application’s timing.
6.1
MEASUREMENT_INTERVAL_MS
Specifies how often a new measurement cycle will be initiated, in milliseconds. Default = 100 ms (10Hz sample rate).
This value is used in
main()
as a parameter to the
chbsp_periodic_timer_init()
function. Once set, the timer will
generate an interrupt every MEASUREMENT_INTERVAL_MS milliseconds, which will cause the
periodic_timer_callback()
routine in
main.c
to execute. That routine then triggers a new measurement cycle by
calling
ch_group_trigger()
.