1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Correct rx channel min/max pulse checking so that it is inclusive to

match the documentation.  Add first unit tests for code in rx.c.
This commit is contained in:
Dominic Clifton 2015-04-19 13:22:32 +01:00
parent 20a421c4be
commit fbc3a8e1eb
8 changed files with 219 additions and 8 deletions

View file

@ -33,6 +33,11 @@ typedef uint16_t timCCR_t;
typedef uint16_t timCCER_t;
typedef uint16_t timSR_t;
typedef uint16_t timCNT_t;
#elif defined(UNIT_TEST)
typedef uint32_t timCCR_t;
typedef uint32_t timCCER_t;
typedef uint32_t timSR_t;
typedef uint32_t timCNT_t;
#else
# error "Unknown CPU defined"
#endif