GithubHelp home page GithubHelp logo

openchirp / lorabug_blinkysleep Goto Github PK

View Code? Open in Web Editor NEW
0.0 8.0 0.0 42 KB

The classic first blinky example, but with the added bonus of < 300nA draw when sleeping

C 92.74% Batchfile 7.26%
cc2650

lorabug_blinkysleep's Introduction

Example Summary

This example cycles through illuminating the red LED, the green LED, and then sleeping at a rate determined by the arg0 parameter for the constructed heart beat Task. It is intended to be a starting point for new development where a minimal footprint is needed.

See blinky_sleep.c for more information.

Cloning and Submodules

git clone https://github.com/OpenChirp/LoRaBug_BlinkySleep.git
git submodule update --init --recursive

Peripherals Exercised

  • Board_RLED
  • Board_GLED
  • Radio.Sleep()

Application Design Details

Minimal footprint

This example is based on the CC2650 Launchpad empty_min example project.

The empty_min is the same as the Empty example except many development and debug features are disabled. For example:

  • No Kernel Idle task
  • No stack overflow checking
  • No Logs or Asserts are enabled

The ROM is being used in this example. This is controlled by the following lines in the .cfg file:

var ROM = xdc.useModule('ti.sysbios.rom.ROM');
    ROM.romName = ROM.CC2650;

Since the kernel in the ROM is being used, there is no logging or assert checking done by the kernel.

Bootloader

The button is configured in trigger the bootloader if depressed during reset. This is configured in the ccfg.c file.

References

  • For GNU and IAR users, please read the following website for details about enabling semi-hosting in order to view console output.

  • Please refer to the Memory Footprint Reduction section in the TI-RTOS User Guide spruhd4.pdf for a complete and detailed list of the differences between the empty minimal and empty projects.

Developer Notes

Unfortunately, the LoRaMAC-node implementation of LoRaWAN uses C99's in for loop variable declaration. For this reason, you MUST change the C compiler Language mode to allow C99 syntax. Currently, the C99 syntax usage is isolated to the LoRaMac.c file.

lorabug_blinkysleep's People

Contributors

linux4life798 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.