Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2 | Rev 9 | ||
|---|---|---|---|
| Line 28... | Line 28... | ||
| 28 | #define RPM_SAMPLES 256 // sample times per 100mS or 1000mS when testing |
28 | #define RPM_SAMPLES 256 // sample times per 100mS or 1000mS when testing |
| 29 | #define RPM_COUNT_RATE 100000UL // Counter increments at 100KHz (need to match in STM32CubeMX) |
29 | #define RPM_COUNT_RATE 100000UL // Counter increments at 100KHz (need to match in STM32CubeMX) |
| 30 | 30 | ||
| 31 | #define RPM_AVERAGE 4 |
31 | #define RPM_AVERAGE 4 |
| 32 | 32 | ||
| - | 33 | ||
| - | 34 | #endif |
|
| - | 35 | ||
| 33 | #if defined __cplusplus |
36 | #if defined __cplusplus |
| 34 | extern "C" |
37 | extern "C" |
| 35 | { |
38 | { |
| 36 | #endif |
39 | #endif |
| 37 | // return rpm estimate or -1 if not calculated this time |
40 | // return rpm estimate or -1 if not calculated this time |
| 38 | extern int CalculateRPM(void); |
41 | extern int CalculateRPM(void); |
| 39 | 42 | ||
| 40 | #if defined __cplusplus |
43 | #if defined __cplusplus |
| 41 | } |
44 | } |
| 42 | #endif |
45 | #endif |
| 43 | - | ||
| 44 | #endif |
- | |
| 45 | 46 | ||