config.h 1.0 KB

12345678910111213141516171819202122232425262728
  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. // ----------------------------------------------------------------------------
  4. /* Global settings for building the can-lib and application program.
  5. *
  6. * The following two #defines must be set identically for the can-lib and
  7. * your application program. They control the underlying CAN struct. If the
  8. * settings disagree, the underlying CAN struct will be broken, with
  9. * unpredictable results.
  10. * If can.h detects that any of the #defines is not defined, it will set them
  11. * to the default values shown here, so it is in your own interest to have a
  12. * consistent setting. Ommiting the #defines in both can-lib and application
  13. * program will apply the defaults in a consistent way too.
  14. *
  15. * Select if you want to use 29 bit identifiers.
  16. */
  17. #define SUPPORT_EXTENDED_CANID 1
  18. /* Select if you want to use timestamps.
  19. * Timestamps are sourced from a register internal to the AT90CAN.
  20. * Selecting them on any other controller will have no effect, they will
  21. * be 0 all the time.
  22. */
  23. #define SUPPORT_TIMESTAMPS 0
  24. #endif // CONFIG_H