smarter PWM API - need to pass arbitrary pointer
This commit is contained in:
parent
e3b74f0f3e
commit
ae711e3a52
|
@ -17,7 +17,7 @@ extern int timeNowUs;
|
|||
static int expectedTimeOfNextEvent;
|
||||
static int pinValue = -1;
|
||||
|
||||
static void testApplyPinState(PwmConfig *state, int stateIndex) {
|
||||
static void testApplyPinState(int stateIndex, PwmConfig *state) /* pwm_gen_callback */ {
|
||||
pinValue = state->multiWave.getChannelState(/*channelIndex*/0, stateIndex);
|
||||
|
||||
printf("PWM_test: setPinValue=%d @ timeNow=%d\r\n", pinValue, timeNowUs);
|
||||
|
|
Loading…
Reference in New Issue