Rev 48 | Rev 53 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 48 | Rev 50 | ||
|---|---|---|---|
| Line 49... | Line 49... | ||
| 49 | // USART buffer sizes |
49 | // USART buffer sizes |
| 50 | #define TX_USART_BUFF_SIZ 512 |
50 | #define TX_USART_BUFF_SIZ 512 |
| 51 | 51 | ||
| 52 | #define RX_USART_BUFF_SIZ 512 |
52 | #define RX_USART_BUFF_SIZ 512 |
| 53 | 53 | ||
| 54 | // Number of SPI temperature sensors |
54 | // Number of SPI temperature sensors |
| 55 | #define NUM_SPI_TEMP_SENS 4 |
55 | #define NUM_SPI_TEMP_SENS 4 |
| 56 | 56 | ||
| 57 | /* USER CODE END EC */ |
57 | /* USER CODE END EC */ |
| 58 | 58 | ||
| 59 | /* Exported macro ------------------------------------------------------------*/ |
59 | /* Exported macro ------------------------------------------------------------*/ |
| Line 67... | Line 67... | ||
| 67 | extern unsigned char volatile periodPulse; |
67 | extern unsigned char volatile periodPulse; |
| 68 | 68 | ||
| 69 | extern unsigned char volatile tim3triggered; |
69 | extern unsigned char volatile tim3triggered; |
| 70 | extern void triggerTim3(void); |
70 | extern void triggerTim3(void); |
| 71 | 71 | ||
| - | 72 | // code required to use libPlx/commsLib.h |
|
| - | 73 | ||
| - | 74 | extern void libPLXcallbackResetSerialTimeout(); |
|
| - | 75 | ||
| - | 76 | extern void libPLXcallbackSendUserData(); |
|
| - | 77 | ||
| 72 | // we are using timer 2 for the RPM counter |
78 | // we are using timer 2 for the RPM counter |
| 73 | #define RPMTIMER 2 |
79 | #define RPMTIMER 2 |
| 74 | 80 | ||
| 75 | // code to trigger timer 3 on rising edge of contact breaker pulse |
81 | // code to trigger timer 3 on rising edge of contact breaker pulse |
| 76 | #define AUXILIARY_HIGH \ |
82 | #define AUXILIARY_HIGH \ |
| 77 | if (tim3triggered == 0) \ |
83 | if (tim3triggered == 0) \ |
| 78 | { \ |
84 | { \ |
| 79 | tim3triggered = 1; \ |
85 | tim3triggered = 1; \ |
| 80 | triggerTim3(); \ |
86 | triggerTim3(); \ |
| 81 | } |
87 | } |
| 82 | 88 | ||
| 83 | // e.g indicate that there are contact breaker closures |
89 | // e.g indicate that there are contact breaker closures |
| 84 | // code to trigger indicating falling edge of contact breaker pulse |
90 | // code to trigger indicating falling edge of contact breaker pulse |
| 85 | #define AUXILIARY_LOW periodPulse = 0; |
91 | #define AUXILIARY_LOW periodPulse = 0; |
| 86 | 92 | ||
| 87 | #if defined __cplusplus |
93 | #if defined __cplusplus |
| 88 | } |
94 | } |
| 89 | #endif |
95 | #endif |