Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
First off, thanks for taking the time to think about contributing!
The following is a set of guidelines for contributing to docs.beagleboard.io, which is hosted by the BeagleBoard.org Foundation at https://git.beagleboard.org/docs/docs.beagleboard.io. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
See more at https://docs.beagleboard.org/en/latest/intro/contribution/.
This project and everyone participating in it is governed by the . By participating, you are expected to uphold this code. Please report unacceptable behavior to or contact one of the administrators on https://forum.beagleboard.org.
// / AM335x_PRU.cmd / / Copyright (c) 2015 Texas Instruments Incorporated / / / / Description: This file is a linker command file that can be used for / / linking PRU programs built with the C compiler and / / the resulting .out file on an AM335x device. / //
-cr /* Link using C conventions */
/* Specify the System Memory Map / MEMORY { PAGE 0: PRU_IMEM : org = 0x00000000 len = 0x00002000 / 8kB PRU0 Instruction RAM */
}
/* Specify the sections allocation into memory / SECTIONS { / Forces _c_int00 to the start of PRU IRAM. Not necessary when loading an ELF file, but useful when loading a binary / .text:_c_int00 > 0x0, PAGE 0
}
This project seeks to document the design and usage of BeagleBoard.org boards.
Priority is given to the out-of-box Debian Linux software images, but additional well-maintained software projects supporting these boards are welcome to be documented here as well.
This project seeks to provide a more authoritative and easy to consume set of documentation than is available through wiki pages, but still encourages community contributions. Issues and pull requests will be reviewed for accuracy.
The project will have release versions and archive those specific versions for future reference. The stable release versions will be published at https://docs.beagleboard.org. The latest output is hosted at https://docs.beagleboard.io and source is maintained at https://git.beagleboard.org/docs/docs.beagleboard.io.
// / AM57xx_PRU.cmd / / Copyright (c) 2015 Texas Instruments Incorporated / / / / Description: This file is a linker command file that can be used for / / linking PRU programs built with the C compiler and / / the resulting .out file on an AM57xx device. / //
-cr /* Link using C conventions */
/* Specify the System Memory Map / MEMORY { PAGE 0: PRU_IMEM : org = 0x00000000 len = 0x00003000 / 12kB PRU-ICSS1 Instruction RAM */
}
/* Specify the sections allocation into memory / SECTIONS { / Forces _c_int00 to the start of PRU IRAM. Not necessary when loading an ELF file, but useful when loading a binary / .text:_c_int00 > 0x0, PAGE 0
}
// / AM335x_PRU.cmd / / Copyright (c) 2015 Texas Instruments Incorporated / / / / Description: This file is a linker command file that can be used for / / linking PRU programs built with the C compiler and / / the resulting .out file on an AM335x device. / //
-cr /* Link using C conventions */
/* Specify the System Memory Map / MEMORY { PAGE 0: PRU_IMEM : org = 0x00000000 len = 0x00002000 / 8kB PRU0 Instruction RAM */
}
/* Specify the sections allocation into memory / SECTIONS { / Forces _c_int00 to the start of PRU IRAM. Not necessary when loading an ELF file, but useful when loading a binary / .text:_c_int00 > 0x0, PAGE 0
}
// / AM335x_PRU.cmd / / Copyright (c) 2015 Texas Instruments Incorporated / / / / Description: This file is a linker command file that can be used for / / linking PRU programs built with the C compiler and / / the resulting .out file on an AM335x device. / //
-cr /* Link using C conventions */
/* Specify the System Memory Map / MEMORY { PAGE 0: PRU_IMEM : org = 0x00000000 len = 0x00002000 / 8kB PRU0 Instruction RAM */
}
/* Specify the sections allocation into memory / SECTIONS { / Forces _c_int00 to the start of PRU IRAM. Not necessary when loading an ELF file, but useful when loading a binary / .text:_c_int00 > 0x0, PAGE 0
}
// / AM335x_PRU.cmd / / Copyright (c) 2015 Texas Instruments Incorporated / / / / Description: This file is a linker command file that can be used for / / linking PRU programs built with the C compiler and / / the resulting .out file on an AM335x device. / //
-cr /* Link using C conventions */
/* Specify the System Memory Map / MEMORY { PAGE 0: PRU_IMEM : org = 0x00000000 len = 0x00002000 / 8kB PRU0 Instruction RAM */
}
/* Specify the sections allocation into memory / SECTIONS { / Forces _c_int00 to the start of PRU IRAM. Not necessary when loading an ELF file, but useful when loading a binary / .text:_c_int00 > 0x0, PAGE 0
}
One of the advantages of gpiod is that it can toggle multiple bits on the same gpio chip at the same time. The toggle2 examples show how it's done.
The directory contains examples of using gpiod with C and python to read/write a gpio pin.
Tip: Use gpioinfo to lookup chip and line numbers for various pins.
libgpiod is a new C library and tools for interacting with the linux GPIO character device. Detailed information is and also has information.
Toggles one pin as fast as possible. (300KHz in C, 57KHz in python)
Toggles two pins as fast as possible. (280KHz in C, 55KHz in python)
Reads an input pin and prints its value.
Reads an input pin and writes its value to an output pin. (5us delay in C, 20 us Delay in python)
Like getset, but uses events. (40 us delay in C, 75 us delay in python)
Toggles the four built in USR LEDs.
These are the files used by all the platforms for running the PRUs.