Jump to content

Search the Community

Showing results for tags 'hibernation'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks


There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 1 result

  1. Trying to get the hibernate library to work as in the pastebin example for the tm4c123 here. I've modified it with the request at the end. //#include <DateTimeLibrary.h> #include "driverlib/hibernate.c" boolean redstate = false; boolean bluestate = false; int green = 0; void setup() { uint32_t hibact = HibernateIsActive(); // put your setup code here, to run once: pinMode(GREEN_LED, OUTPUT); pinMode(BLUE_LED, OUTPUT); HibernateEnableExpClk(F_CPU); HibernateRTCEnable(); HibernateRTCMatchSet(0,HibernateRTCGet()+5); HibernateIntRegister(HibernateHandler); HibernateIntEnable(HIBERNATE_INT_RTC_MATCH_0); HibernateRTCTrimSet(0x7FFF); } void HibernateHandler(void) { //Use this to reset interrupt flag uint32_t ui32Status = HibernateIntStatus(1); HibernateIntClear(ui32Status); //Place here code to execute every second, ex: LCD or 7 segment display //Altough it should be as fastest as possible redstate = !redstate; //To keep the interrupt hapening every second you need this HibernateRTCMatchSet(0,HibernateRTCGet()+5); } void loop() { // put your main code here, to run repeatedly: bluestate = !bluestate; if(redstate ==0){ green = 0; } else green = 64; analogWrite(GREEN_LED, green); if (bluestate) { analogWrite(BLUE_LED, 64); } else { analogWrite(BLUE_LED, 0); } delay(750); HibernateRequest(); } Been reading through 16.2 API Functions for the hibernate module here and can figure out whats going on. I just want the hibernate module to be requested once main has run, this doesn't seem to happen and the hibernate interrupt just seems to function as a timer running alongside the main function...??? Tried adding HibernateWakeSet(HIBERNATE_WAKE_RTC); to the setup
  • Create New...