Bus Initialization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
========== passlink List ========== | |
Name: simplebus, Pass: 10 | |
Name: ti_scm, Pass: 15 | |
Name: cpswss, Pass: 2147483647 | |
========== link List ========== | |
DevClass: root | |
DevClass: simplebus | |
DevClass: cpswss | |
DevClass: uhub | |
DevClass: usbus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Skript gestartet auf 2019-07-31 13:07:33+02:00 [TERM="xterm-256color" TTY="/dev/pts/1" COLUMNS="238" LINES="27"] | |
]0;nils@nils-Laptop:~[nils@nils-Laptop ~]$ beagleserial | |
[sudo] Passwort für nils: | |
picocom v3.1 | |
port is : /dev/ttyUSB0 | |
flowcontrol : none | |
baudrate is : 115200 | |
parity is : none | |
databits are : 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; | |
/plugin/; | |
/ { | |
compatible = "ti,beaglebone", "ti,beaglebone-black", "ti,beaglebone-green"; | |
// identification | |
part-number = "PRU-UIO-EXAMPLE-PINS"; | |
version = "00A0"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Run a simple delay loop on the PRU | |
; Original source https://jumpnowtek.com/beaglebone/Working-with-the-BeagleBone-PRUs.html | |
.setcallreg r29.w0 | |
.origin 0 | |
.entrypoint start | |
#define PRU0_ARM_INTERRUPT 19 | |
#define DELAY_COUNT 50000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation. | |
*/ | |
/dts-v1/; | |
/plugin/; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; blink.p: demonstration of PRU on the BeagleBone Black | |
; blink LED connected to P8_11 ten times | |
.origin 0 | |
.entrypoint TOP | |
TOP: | |
MOV r1, 10 ; blink counter | |
BLINK: | |
SET r30, r30, 15 ; set GPIO output 15 | |
MOV r0, 0x00a00000 ; delay counter | |
DELAY: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Loads a PRU text.bin (and optionally data.bin) file, | |
// executes it, and waits for completion. | |
// | |
// Usage: | |
// $ ./loader text.bin [data.bin] | |
// | |
// Compile with: | |
// gcc -o loader loader.c -lprussdrv | |
// | |
// Based on https://credentiality2.blogspot.com/2015/09/beaglebone-pru-gpio-example.html |