12345678910111213141516171819202122232425262728293031 |
- /*
- * Combined-PPM signal generator
- */
-
- #ifndef _CPPM_H
- #define _CPPM_H
-
- #include <stdint.h>
-
- #ifdef DEBUG
-
- // Arduino D10
- #define CPPM_PORT PORTB
- #define CPPM_DDR DDRB
- #define CPPM_PIN PB2
-
- #else
-
- #define CPPM_PORT PORTB
- #define CPPM_DDR DDRB
- #define CPPM_PIN PB5
-
- #endif
-
- extern volatile uint16_t cppmData[8];
-
- void cppmInit(void);
- void cppmCopy(uint16_t *data);
-
- #endif
|