mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Initial support for CJMCU target (work-in-progress, compiles but doesn't link yet)
This commit is contained in:
parent
3d65e4ff96
commit
8f473f9b20
4 changed files with 121 additions and 13 deletions
|
@ -203,6 +203,35 @@ static const uint16_t airPWM[] = {
|
|||
};
|
||||
#endif
|
||||
|
||||
#ifdef CJMCU
|
||||
static const uint16_t multiPPM[] = {
|
||||
PWM1 | (TYPE_IP << 8), // PPM input
|
||||
PWM2 | (TYPE_M << 8),
|
||||
PWM3 | (TYPE_M << 8),
|
||||
PWM4 | (TYPE_M << 8),
|
||||
PWM5 | (TYPE_M << 8),
|
||||
0xFF
|
||||
};
|
||||
|
||||
static const uint16_t multiPWM[] = {
|
||||
PWM1 | (TYPE_IP << 8), // PPM input
|
||||
PWM2 | (TYPE_M << 8),
|
||||
PWM3 | (TYPE_M << 8),
|
||||
PWM4 | (TYPE_M << 8),
|
||||
PWM5 | (TYPE_M << 8),
|
||||
0xFF
|
||||
};
|
||||
|
||||
static const uint16_t airPPM[] = {
|
||||
0xFF
|
||||
};
|
||||
|
||||
static const uint16_t airPWM[] = {
|
||||
0xFF
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
static const uint16_t * const hardwareMaps[] = {
|
||||
multiPWM,
|
||||
multiPPM,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue