timer handler renamed into heartbeat handler

This commit is contained in:
matthias.ringwald@gmail.com 2013-01-21 14:05:39 +00:00
parent 5e6d788786
commit 5aad22c32c
3 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ CORE = \
COMMON = \ COMMON = \
../src/hal_uart_dma.c \ ../src/hal_uart_dma.c \
${BTSTACK_ROOT}/chipset-cc256x/bt_control_cc256x.c \ ${BTSTACK_ROOT}/chipset-cc256x/bt_control_cc256x.c \
${BTSTACK_ROOT}/chipset-cc256x/bluetooth_init_cc2560_2.42.c \ ${BTSTACK_ROOT}/chipset-cc256x/bluetooth_init_cc2560A_2.1.c \
${BTSTACK_ROOT}/src/hci.c \ ${BTSTACK_ROOT}/src/hci.c \
${BTSTACK_ROOT}/src/hci_cmds.c \ ${BTSTACK_ROOT}/src/hci_cmds.c \
${BTSTACK_ROOT}/src/hci_dump.c \ ${BTSTACK_ROOT}/src/hci_dump.c \

View File

@ -30,7 +30,7 @@ static void run_loop_register_timer(timer_source_t *timer, uint16_t period){
run_loop_add_timer(timer); run_loop_add_timer(timer);
} }
static void timer_handler(timer_source_t *ts){ static void heartbeat_handler(timer_source_t *ts){
// increment counter // increment counter
char lineBuffer[30]; char lineBuffer[30];
sprintf(lineBuffer, "BTstack counter %04u\n\r", ++counter); sprintf(lineBuffer, "BTstack counter %04u\n\r", ++counter);
@ -45,7 +45,7 @@ static void timer_handler(timer_source_t *ts){
static void timer_setup(){ static void timer_setup(){
// set one-shot timer // set one-shot timer
heartbeat.process = &timer_handler; heartbeat.process = &heartbeat_handler;
run_loop_register_timer(&heartbeat, HEARTBEAT_PERIOD_MS); run_loop_register_timer(&heartbeat, HEARTBEAT_PERIOD_MS);
} }

View File

@ -145,7 +145,7 @@ static void run_loop_register_timer(timer_source_t *timer, uint16_t period){
run_loop_add_timer(timer); run_loop_add_timer(timer);
} }
static void timer_handler(timer_source_t *ts){ static void heartbeat_handler(timer_source_t *ts){
// re-register timer // re-register timer
real_counter++; real_counter++;
run_loop_register_timer(ts, HEARTBEAT_PERIOD_MS); run_loop_register_timer(ts, HEARTBEAT_PERIOD_MS);
@ -153,7 +153,7 @@ static void timer_handler(timer_source_t *ts){
static void timer_setup(){ static void timer_setup(){
// set one-shot timer // set one-shot timer
heartbeat.process = &timer_handler; heartbeat.process = &heartbeat_handler;
run_loop_register_timer(&heartbeat, HEARTBEAT_PERIOD_MS); run_loop_register_timer(&heartbeat, HEARTBEAT_PERIOD_MS);
} }