Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LabConnections.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
labdev
LabConnections.jl
Commits
01e9df51
There was a problem fetching the pipeline summary.
Commit
01e9df51
authored
7 years ago
by
Marcus Thelander Andrén
Browse files
Options
Downloads
Patches
Plain Diff
Updated SPI in README.md
parent
c6febf24
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+11
-22
11 additions, 22 deletions
README.md
with
11 additions
and
22 deletions
README.md
+
11
−
22
View file @
01e9df51
...
@@ -13,14 +13,14 @@ receive control signals and measurements from the lab process.
...
@@ -13,14 +13,14 @@ receive control signals and measurements from the lab process.
The full documentation of the package is available
[
here
](
https://gitlab.control.lth.se/labdev/LabConnections.jl/blob/master/docs/build/index.md
)
.
The full documentation of the package is available
[
here
](
https://gitlab.control.lth.se/labdev/LabConnections.jl/blob/master/docs/build/index.md
)
.
## Package Overview
## Package Overview
The
`LabConnections.jl`
package is subdivided into two main modules;
`
BeagleBone
.jl`
The
`LabConnections.jl`
package is subdivided into two main modules;
`
Computer
.jl`
and
`
Computer.jl`
.
`BeagleBone.jl`
defines low-level types and functions mean
t
and
`
BeagleBone.jl`
.
`Computer.jl`
defines the user interface on the hos
t
to be used locally on the BBB, and
`Computer.jl`
defines the user interface on the hos
t
computer side, while
`BeagleBone.jl`
defines low-level types and functions mean
t
computer side. Below is an overview of the modules
.
to be used locally on the BBB
.
### BeagleBone.jl
### BeagleBone.jl
This module defines types representing different pins and LEDs on the BBB, and
This module defines types representing different pins and LEDs on the BBB, and
functions to change their status and behaviour. There are 4 different types defined
functions to change their status and behaviour. There are
currently
4 different types defined
(each has the abstract super type
`IO_Object`
):
(each has the abstract super type
`IO_Object`
):
*
`GPIO`
: Represents the BBB's General Purpose Input Output (GPIO) pins.
*
`GPIO`
: Represents the BBB's General Purpose Input Output (GPIO) pins.
Each instance will correspond to a physical GPIO pin on the board, and can be
Each instance will correspond to a physical GPIO pin on the board, and can be
...
@@ -33,6 +33,12 @@ Used to perform simple tests and debugging on the BBB.
...
@@ -33,6 +33,12 @@ Used to perform simple tests and debugging on the BBB.
*
`Debug`
: Used for debugging and pre-compilation on the BBB. It does
*
`Debug`
: Used for debugging and pre-compilation on the BBB. It does
not represent any physical pin or LED on the board.
not represent any physical pin or LED on the board.
**Note:**
In addition to GPIO and PWM, the BBB also has pins dedicated for
[
Serial Peripheral
Interface
](
https://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus
)
(
SPI
)
.
Work to feature this functionality in
`BeagleBone.jl`
is currently ongoing. More
information can be found
[
here
](
)
### Computer.jl
### Computer.jl
This module contains the user interface on the host computer side, and defines
This module contains the user interface on the host computer side, and defines
types for devices/connections to the lab process, and filestreams between the
types for devices/connections to the lab process, and filestreams between the
...
@@ -55,21 +61,4 @@ There are 2 different filestream types (each has the abstract super type `LabStr
...
@@ -55,21 +61,4 @@ There are 2 different filestream types (each has the abstract super type `LabStr
## Repository Structure
## Repository Structure
The package is subdivided into two main modules;
The package is subdivided into two main modules;
# OBS! SPI development
The SPI development is done in C and in a forked repository, currently
separated from the julia project. If you wish to work on the SPI implementation,
simply clone the repository "serbus", a small C stack available at
`github.com/mgreiff/serbus`
into your julia package directory (for example
`~/.julia/v0.6`
). Then, in the LabConnections package on the host computer, run
`flash_BB.sh`
in the
`/utils`
directory transferring both LabConnections and
serbus to the BB.
On the BB, run
cp /home/debian/juliapackages/serbus/bb_spi.sh /home/debian
and then execute
./bb_spi.sh
in the
`/home/debian`
directory to run the SPI example with the ADC from SPI0.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment