LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
d_bt.c
Go to the documentation of this file.
1 /*
2  * LEGO® MINDSTORMS EV3
3  *
4  * Copyright (C) 2010-2013 The LEGO Group
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  */
20 
21 #include "../../lms2012/source/lms2012.h"
22 
23 #define MODULE_NAME "bluetooth_module"
24 #define DEVICE1_NAME "none"
25 
26 static int ModuleInit(void);
27 static void ModuleExit(void);
28 
29 #include <linux/kernel.h>
30 
31 #ifndef PCASM
32 #include <linux/module.h>
33 
34 MODULE_LICENSE("GPL");
35 MODULE_AUTHOR("The LEGO Group");
38 
39 module_init(ModuleInit);
40 module_exit(ModuleExit);
41 
42 #else
43 // Keep Eclipse happy
44 #endif
45 
46 // MODULE *********************************************************************
47 
48 
49 static int ModuleInit(void)
50 {
51  printk("%s init started\n",MODULE_NAME);
52 
53  return (0);
54 }
55 
56 
57 static void ModuleExit(void)
58 {
59  printk("%s exit started\n",MODULE_NAME);
60 }
#define DEVICE1_NAME
Definition: d_bt.c:24
module_exit(ModuleExit)
MODULE_LICENSE("GPL")
MODULE_DESCRIPTION(MODULE_NAME)
MODULE_AUTHOR("The LEGO Group")
module_init(ModuleInit)
#define MODULE_NAME
Definition: d_bt.c:23
MODULE_SUPPORTED_DEVICE(DEVICE1_NAME)