add example and fix makefile
This commit is contained in:
parent
a0a0cbf2da
commit
a02af3f279
5 changed files with 87 additions and 14 deletions
|
|
@ -8,14 +8,20 @@
|
|||
#ifndef EXTRAS_DSM_H_
|
||||
#define EXTRAS_DSM_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define MAX_DSM_PINS 8
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define MAX_DSM_PINS (8)
|
||||
#define DSM_DEBUG (0)
|
||||
|
||||
/*
|
||||
* Freq = (80,000,000/prescale) * (target / 256) HZ (0 < target < 128)
|
||||
* Freq = (80,000,000/prescale) * ((256 - target) / 256) HZ (128 < target < 256)
|
||||
*/
|
||||
|
||||
void dsm_init(uint8_t npins, const uint8_t* pins);
|
||||
void dsm_set_prescale(uint8_t prescale);
|
||||
void dsm_set_target(uint8_t target);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue