Skip to content

Commit

Permalink
PRU2_1: Add comments for overlay installation.
Browse files Browse the repository at this point in the history
  • Loading branch information
lorforlinux committed Aug 14, 2020
1 parent 61cee49 commit a061de7
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions BeagleBone/AI/pru/blinkR30.pru2_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
// Wiring: P9_30 connects to the plus lead of an LED. The negative lead of the
// LED goes to a 220 Ohm resistor. The other lead of the resistor goes
// to ground.
// Setup: None
// See: cloud9/common/prugpio.h to see which pins attach to pr2_pru1
// Setup: Load the BBAI-PRUOUT_PRU2_1.dtbo overlay
// See: 1) cloud9/common/prugpio.h for which pins attach to pr2_pru1.
// 2) End of this file for loading the correct overlay.
// PRU: pru2_1
////////////////////////////////////////
#include <stdint.h>
Expand All @@ -29,5 +30,17 @@ void main(void) {
__halt();
}

// You need to load this overlay to configure pimux of all the pr2_pru1 pins as pruout
// /~https://github.com/lorforlinux/bb.org-overlays/blob/pru/src/arm/BBAI-PRUOUT_PRU2_1.dts
// You need to load the BBAI-PRUOUT_PRU2_1.dtbo overlay to use this example.
// BBAI-PRUOUT_PRU2_1.dtbo sets pinmux for all PRU2_1 pins to PRUOUT!
// Edit uEnv.txt by executing, $ sudo nano /boot/uEnv.txt
// Add the content within /* */ to uEnv.txt

/*
enable_uboot_overlays=1
uboot_overlay_addr0=BBAI-PRUOUT_PRU2_1.dtbo
*/

// There are 8 slots for overlays,
// If addr0 is accupied you can use addr1 - addr7

0 comments on commit a061de7

Please sign in to comment.