-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
49 lines (40 loc) · 1.06 KB
/
README
File metadata and controls
49 lines (40 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
AVR module: CAN - using MCP2515 and MCP2551
================================================================================
A submodule used in other projects. Currently cmake is used to build a library
of the module. The path structure within the project should be as follows.
The includes are looked for in the subdirectory "config", "spi" and "util" at
the same level as the module.
Environment:
------------
<some project path>
:
|
+- config
| |
| +- can_config_mcp2515.c
| +- can_config_mcp2515.h
| +- spi_config.h
|
+- can
| |
| +- <submodule sources>
|
+- spi
| |
| +- <submodule sources>
|
+- util
|
+- <submodule util files>
Use the following git commands to get the submodule:
# to get the submodule
git submodule add git@github.com:mkleemann/can.git <path/to/can/module>
# commit the submodule to your repository
git commit
# update your submodule, when needs be
git submodule update
To use the submodule, you may make use of the cmake-avr toolchain. The
project has to define the include search path at the parent directory
of the module.
Have fun!
M.