rename the lib

This commit is contained in:
Zaltora 2018-04-16 15:42:43 +02:00
parent bdfc9cb6e9
commit 11dc6da5b8
6 changed files with 154 additions and 160 deletions

30
extras/dsm/dsm.h Normal file
View file

@ -0,0 +1,30 @@
/* Implementation of Delta-Sigma modulator support.
*
* Part of esp-open-rtos
* Copyright (C) 2018 ourairquality (https://github.com/ourairquality)
* Copyright (C) 2018 Zaltora (https://github.com/Zaltora)
* BSD Licensed as described in the file LICENSE
*/
#ifndef EXTRAS_DSM_H_
#define EXTRAS_DSM_H_
#include <stdint.h>
#define MAX_DSM_PINS 8
#ifdef __cplusplus
extern "C" {
#endif
void dsm_init(uint8_t npins, const uint8_t* pins);
void dsm_set_prescale(uint8_t prescale);
void dsm_set_target(uint8_t target);
void dsm_start();
void dsm_stop();
#ifdef __cplusplus
}
#endif
#endif /* EXTRAS_DSM_H_ */