text: /*
   * Application interface for CANopenSocket.
   *
   * @file        application.c
   * @author      Janez Paternoster
   * @copyright   2016 Janez Paternoster
   *
   * This file is part of CANopenSocket, a Linux implementation of CANopen
   * stack with master functionality. Project home page is
   * <https://github.com/CANopenNode/CANopenSocket>. CANopenSocket is based
   * on CANopenNode: <https://github.com/CANopenNode/CANopenNode>.
   *
   * CANopenSocket is free and open source software: you can redistribute
   * it and/or modify it under the terms of the GNU General Public License
   * as published by the Free Software Foundation, either version 2 of the
   * License, or (at your option) any later version.
   *
   * This program is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   * GNU General Public License for more details.
   *
   * You should have received a copy of the GNU General Public License
   * along with this program. If not, see <http://www.gnu.org/licenses/>.
   */
  
  #include "CANopen.h"
  #include "Crutch.h"
  #include <iostream>
  
  Crutch exoCrutch;
  
  /******************************************************************************/
  void app_programStart(void)
  {
      // Testing LCD TRANSITIONS
      exoCrutch.initCrutch();
      exoCrutch.counter = 0;
  
      std::cout << "End app_programStart" << std::endl;
  }
  
  /******************************************************************************/
  void app_communicationReset(void)
  {
  }
  
  /******************************************************************************/
  void app_programEnd(void)
  {
  }
  
  /******************************************************************************/
  void app_programAsync(uint16_t timer1msDiff)
  {
  }
  
  /******************************************************************************/
  void app_program1ms(void)
  {
      exoCrutch.counter++;
      exoCrutch.run();
      exoCrutch.printCSNM();
  }