BoardPeripherals.h 813 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef __BOARDPERIPH_H__
  2. #define __BOARDPERIPH_H__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. union Periph_Flags {
  7. uint8_t R;
  8. struct {
  9. uint8_t rsvd:6;
  10. uint8_t init_ok:1;
  11. uint8_t test_ok:1;
  12. uint8_t test_fail:1;
  13. } B;
  14. };
  15. typedef struct {
  16. union Periph_Flags FRAM_Flags;
  17. uint32_t test_time;
  18. } Board_Status;
  19. //-------------------------------------------------------
  20. //API
  21. //extern Board_Status Board_S;
  22. void BoardPeriph_init ( void );
  23. extern void BoardPeriph_test_init ( void );
  24. extern int8_t BoardPeriph_test_update_polled ( void );
  25. extern void BoardPeriph_update_1ms ( void );
  26. extern void BoardPeriph_update_polled ( void );
  27. //-------------------------------------------------------
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif /* ifndef*/