pwm in MCU added
This commit is contained in:
parent
5f48849c4e
commit
1f53117577
7 changed files with 48 additions and 40 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "global_vars.h"
|
||||
#include "selftest.h"
|
||||
#include "boardinfo.h"
|
||||
#include "pwm.h"
|
||||
|
||||
constexpr static uint8_t RQ_DISC = 0;
|
||||
constexpr static uint8_t RQ_TEST = 1;
|
||||
|
@ -20,6 +21,7 @@ constexpr static uint8_t RQ_AA0 = 10;
|
|||
constexpr static uint8_t RQ_AA1 = 11;
|
||||
constexpr static uint8_t RQ_ADC = 12;
|
||||
constexpr static uint8_t RQ_ADC_DAC_STROKE = 13;
|
||||
constexpr static uint8_t RQ_SET_PWM = 14;
|
||||
|
||||
uint8_t const rq_len[] = {
|
||||
/* RQ_DISC */ 1,
|
||||
|
@ -35,7 +37,8 @@ uint8_t const rq_len[] = {
|
|||
/* RQ_AA0 */ 3,
|
||||
/* RQ_AA1 */ 3,
|
||||
/* RQ_ADC */ 2,
|
||||
/* RQ_ADC_DAC_STROKE */ 9
|
||||
/* RQ_ADC_DAC_STROKE */ 9,
|
||||
/* RQ_SET_PWM */ 2
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -58,5 +61,6 @@ void rqAnalogWrite0(void);
|
|||
void rqAnalogWrite1(void);
|
||||
void rqAnalogRead(void);
|
||||
void rqAdcDacStroke(void);
|
||||
void rqSetPwm(void);
|
||||
|
||||
#endif // REQUESTS_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue