Naze32 clone with Frysky receiver
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Combined-PPM signal generator
  3. */
  4. #ifndef _CPPM_H
  5. #define _CPPM_H
  6. #include <stdint.h>
  7. #ifdef DEBUG
  8. // Arduino D10
  9. #define CPPM_PORT PORTB
  10. #define CPPM_DDR DDRB
  11. #define CPPM_PIN PB2
  12. #else
  13. #define CPPM_PORT PORTB
  14. #define CPPM_DDR DDRB
  15. #define CPPM_PIN PB5
  16. #endif
  17. extern volatile uint16_t cppmData[8];
  18. void cppmInit(void);
  19. void cppmCopy(uint16_t *data);
  20. #endif