Skip to content

Commit

Permalink
error out if bus not 48mhz
Browse files Browse the repository at this point in the history
  • Loading branch information
teachop committed Jul 7, 2014
1 parent 861baa6 commit a9dd8fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions FlexCAN.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

#include <Arduino.h>

// in the short term insure 48MHz bus speed
#if F_BUS != 48000000
#error "Only CPU speeds 48, 96 and 144 are supported"
#endif

typedef struct CAN_message_t {
uint32_t id; // can identifier
uint8_t ext; // identifier is extended
Expand Down

0 comments on commit a9dd8fa

Please sign in to comment.