Main Page
Related Pages
Modules
Classes
Files
File List
File Members
dmotor.h
Go to the documentation of this file.
1
6
/*
7
* The contents of this file are subject to the Mozilla Public License
8
* Version 1.0 (the "License"); you may not use this file except in
9
* compliance with the License. You may obtain a copy of the License
10
* at http://www.mozilla.org/MPL/
11
*
12
* Software distributed under the License is distributed on an "AS IS"
13
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
* the License for the specific language governing rights and
15
* limitations under the License.
16
*
17
* The Original Code is legOS code, released October 17, 1999.
18
*
19
* The Initial Developer of the Original Code is Markus L. Noga.
20
* Portions created by Markus L. Noga are Copyright (C) 1999
21
* Markus L. Noga. All Rights Reserved.
22
*
23
* Contributor(s): Markus L. Noga <markus@noga.de>
24
*/
25
26
#ifndef __sys_dmotor_h__
27
#define __sys_dmotor_h__
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
33
#include "../dmotor.h"
34
35
#ifdef CONF_DMOTOR
36
38
//
39
// Variables
40
//
42
43
// the RCX-specific motor driver I/O address
44
extern
unsigned
char
motor_controller
;
45
46
48
//
49
// Functions
50
//
52
54
//
55
void
dm_init
(
void
);
56
58
//
59
void
dm_shutdown
(
void
);
60
61
#endif // CONF_DMOTOR
62
63
#ifdef __cplusplus
64
}
65
#endif
66
67
#endif // __sys_dmotor_h__
motor_controller
unsigned char motor_controller
RCX Motor Controller port.
dm_shutdown
void dm_shutdown(void)
shutdown motors
dm_init
void dm_init(void)
initialize motors
brickOS
is released under the
Mozilla Public License
.
Original code copyright 1998-2005 by the authors.
Generated on Sat Feb 14 2015 23:12:05 for brickOS Kernel Developer by
1.8.9.1