bsp.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*****************************************************************************
  2. * Product: DPP example
  3. * Last Updated for Version: 4.5.02
  4. * Date of the Last Update: Jul 04, 2012
  5. *
  6. * Q u a n t u m L e a P s
  7. * ---------------------------
  8. * innovating embedded systems
  9. *
  10. * Copyright (C)-2012 Quantum Leaps, LLC. All rights reserved.
  11. *
  12. * This program is open source software: you can redistribute it and/or
  13. * modify it under the terms of the GNU General Public License as published
  14. * by the Free Software Foundation, either version 3 of the License, or
  15. * (at your option) any later version.
  16. *
  17. * Alternatively, this program may be distributed and modified under the
  18. * terms of Quantum Leaps commercial licenses, which expressly supersede
  19. * the GNU General Public License and are specifically designed for
  20. * licensees interested in retaining the proprietary status of their code.
  21. *
  22. * This program is distributed in the hope that it will be useful,
  23. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  24. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25. * GNU General Public License for more details.
  26. *
  27. * You should have received a copy of the GNU General Public License
  28. * along with this program. If not, see <www.gnu.org/licenses/>.
  29. *
  30. * Contact information:
  31. * Quantum Leaps Web sites: http://www.quantum-leaps.com
  32. * <www.state-machine.com/licensing>
  33. * e-mail: info@quantum-leaps.com
  34. *****************************************************************************/
  35. #ifndef BSP_H
  36. #define BSP_H
  37. #define BSP_TICKS_PER_SEC 50U
  38. void BSP_init(int argc, char *argv[]);
  39. void BSP_displayPaused(uint8_t paused);
  40. void BSP_displayPhilStat(uint8_t n, char const *stat);
  41. void BSP_terminate(int16_t result);
  42. void BSP_randomSeed(uint32_t seed); /* random seed */
  43. uint32_t BSP_random(void); /* pseudo-random generator */
  44. #endif /* BSP_H */