Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning BeagleBone

You're reading from  Learning BeagleBone

Product type Book
Published in Dec 2014
Publisher
ISBN-13 9781783982905
Pages 206 pages
Edition 1st Edition
Languages
Author (1):
Hunyue Yau Hunyue Yau
Profile icon Hunyue Yau

Table of Contents (18) Chapters

Learning BeagleBone
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Introducing the Beagle Boards Software in the BeagleBone Building an LED Flasher Refining the LED Flasher Connecting the BeagleBone to Mobile Devices Recovering from the Mistakes Interfacing with the BeagleBone Advanced Software Topics Expansion Boards and Options The Boot Process Terms and Definitions
Index

The BeagleBone programming with the C and Linux APIs


Almost all Linux programs written in C for a desktop or laptop can be made to work on the BeagleBone if it uses only the Linux API. While this is a qualified statement, many programs will fall into this category. The gating factor is the presence of hardware. For example, a program that requires a keyboard will not work unless a keyboard is installed.

Tip

This section is applicable to other programming languages such as C++.

The things that are likely to break when moving from the desktop to the BeagleBone are as follows:

  • Software that accesses hardware using the low-level APIs rather than the higher-level abstractions layers; for example, an older desktop system may offer a parallel port that some applications will try to use as GPIOs. While the parallel port access is a standard Linux API, there is no equivalent parallel port on the BeagleBone.

    Note

    Most software written to use the parallel port in this fashion can often be rewritten to use...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}