prepare to extract att_server

This commit is contained in:
matthias.ringwald@gmail.com 2014-01-05 21:17:25 +00:00
parent 78d22dedcd
commit 5f5cbc52d7

View File

@ -289,22 +289,20 @@ void setup(void){
hci_uart_config_t * config = NULL;
bt_control_t * control = NULL;
remote_device_db_t * remote_db = (remote_device_db_t *) &remote_device_db_memory;
hci_init(transport, config, control, remote_db);
// setup central device db
central_device_db_init();
// set up l2cap_le
l2cap_init();
// set up ATT
l2cap_register_fixed_channel(att_packet_handler, L2CAP_CID_ATTRIBUTE_PROTOCOL);
att_server_state = ATT_SERVER_IDLE;
att_set_db(profile_data);
att_set_write_callback(att_write_callback);
att_dump_attributes();
att_connection.mtu = 27;
// setup central device db
central_device_db_init();
// setup SM
sm_init();