LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
d_sound.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 
22 #include "../../lms2012/source/lms2012.h"
23 
24 #define MODULE_NAME "sound_module"
25 #define DEVICE1_NAME "none"
26 
27 static int ModuleInit(void);
28 static void ModuleExit(void);
29 
30 #include <linux/kernel.h>
31 
32 #ifndef PCASM
33 #include <linux/module.h>
34 
35 MODULE_LICENSE("GPL");
36 MODULE_AUTHOR("The LEGO Group");
39 
40 module_init(ModuleInit);
41 module_exit(ModuleExit);
42 
43 #else
44 // Keep Eclipse happy
45 #endif
46 
47 // MODULE *********************************************************************
48 
49 
50 static int ModuleInit(void)
51 {
52  printk("%s init started\n",MODULE_NAME);
53 
54  return (0);
55 }
56 
57 
58 static void ModuleExit(void)
59 {
60  printk("%s exit started\n",MODULE_NAME);
61 }
module_init(ModuleInit)
#define DEVICE1_NAME
Definition: d_sound.c:25
#define MODULE_NAME
Definition: d_sound.c:24
MODULE_SUPPORTED_DEVICE(DEVICE1_NAME)
module_exit(ModuleExit)
MODULE_LICENSE("GPL")
MODULE_DESCRIPTION(MODULE_NAME)
MODULE_AUTHOR("The LEGO Group")