Naze32 clone with Frysky receiver
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cppm.h 375B

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