sm.c (84c0c5c71bbcb9cd72ecf3a1f16d5b971ddc747a) | sm.c (ece00d2d30f3bf0bf0432a112ee67b7765cf9000) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 259 unchanged lines hidden (view full) --- 268static uint8_t sm_aes128_ciphertext[16]; 269 270// to receive hci events 271static btstack_packet_callback_registration_t hci_event_callback_registration; 272 273/* to dispatch sm event */ 274static btstack_linked_list_t sm_event_handlers; 275 | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 259 unchanged lines hidden (view full) --- 268static uint8_t sm_aes128_ciphertext[16]; 269 270// to receive hci events 271static btstack_packet_callback_registration_t hci_event_callback_registration; 272 273/* to dispatch sm event */ 274static btstack_linked_list_t sm_event_handlers; 275 |
276/* to schedule calls to sm_run */ 277static btstack_timer_source_t sm_run_timer; 278 |
|
276// LE Secure Connections 277#ifdef ENABLE_LE_SECURE_CONNECTIONS 278static ec_key_generation_state_t ec_key_generation_state; 279static uint8_t ec_q[64]; 280#endif 281 282// 283// Volume 3, Part H, Chapter 24 --- 193 unchanged lines hidden (view full) --- 477} 478 479// sm_trigger_run allows to schedule callback from main run loop // reduces stack depth 480static void sm_run_timer_handler(btstack_timer_source_t * ts){ 481 UNUSED(ts); 482 sm_run(); 483} 484static void sm_trigger_run(void){ | 279// LE Secure Connections 280#ifdef ENABLE_LE_SECURE_CONNECTIONS 281static ec_key_generation_state_t ec_key_generation_state; 282static uint8_t ec_q[64]; 283#endif 284 285// 286// Volume 3, Part H, Chapter 24 --- 193 unchanged lines hidden (view full) --- 480} 481 482// sm_trigger_run allows to schedule callback from main run loop // reduces stack depth 483static void sm_run_timer_handler(btstack_timer_source_t * ts){ 484 UNUSED(ts); 485 sm_run(); 486} 487static void sm_trigger_run(void){ |
485 static btstack_timer_source_t sm_run_timer; | |
486 (void)btstack_run_loop_remove_timer(&sm_run_timer); 487 btstack_run_loop_set_timer(&sm_run_timer, 0); 488 btstack_run_loop_add_timer(&sm_run_timer); 489} 490 491// Key utils 492static void sm_reset_tk(void){ 493 int i; --- 4006 unchanged lines hidden --- | 488 (void)btstack_run_loop_remove_timer(&sm_run_timer); 489 btstack_run_loop_set_timer(&sm_run_timer, 0); 490 btstack_run_loop_add_timer(&sm_run_timer); 491} 492 493// Key utils 494static void sm_reset_tk(void){ 495 int i; --- 4006 unchanged lines hidden --- |