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.
git clone https://github.com/OpenChirp/LoRaBug_BlinkySleep.git
git submodule update --init --recursive
Board_RLED
Board_GLED
Radio.Sleep()
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.
The button is configured in trigger the bootloader if depressed during reset. This is configured in the ccfg.c file.
-
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.
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.