comparison src/g23m-fad/app/bat_cfg.c @ 1:fa8dc04885d8

src/g23m-*: import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:25:50 +0000
parents
children
comparison
equal deleted inserted replaced
0:4e78acac3d88 1:fa8dc04885d8
1 /*
2 +-----------------------------------------------------------------------------
3 | Project :
4 | Modul : BAT
5 +-----------------------------------------------------------------------------
6 | Copyright 2005 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose : This Modul holds the functions for configuring the
18 | binary AT command library at APPlication side, the application
19 | has to call this function before using the BAT Lib interface.
20 +-----------------------------------------------------------------------------
21 */
22 #ifndef _BAT_CFG_C_
23 #define _BAT_CFG_C_
24
25 /*==== INCLUDES =============================================================*/
26 #include "bat_cfg.h"
27 #include "gdd.h"
28
29 T_BAT_config *BAT_APP_CONFIG;
30 /*=====FUNCTIONS=============================================================*/
31 void app_set_config (void)
32 {
33 static T_BAT_config config;
34 config.adapter.gdd_if = gdd_func_dio;
35 config.adapter.cap.dio_cap.mtu_size = 300; /*GDD_DIO_MTU_SIZE*/
36 config.device = DEVICE_PACKET;
37 config.l2p.protocol_id = L2P_SP_PSI;
38
39 BAT_APP_CONFIG = &config;
40 return;
41 }
42
43
44 #endif /*_BAT_CFG_C_*/