FreeCalypso > hg > fc-magnetite
comparison src/g23m-fad/app/bat_cfg.c @ 174:90eb61ecd093
src/g23m-fad: initial import from TCS3.2/LoCosto
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 12 Oct 2016 05:40:46 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
173:bf64d785238a | 174:90eb61ecd093 |
---|---|
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_*/ |