From: Guy McSwain Date: Wed, 29 Apr 2020 16:25:02 +0000 (-0500) Subject: Add test cases to x_* for padded waves. X-Git-Tag: archive/raspbian/1.78-1+rpi1^2~4^2~5^2~6^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c27a968bcc0f7f5f50c7a416eb76de6a394701a1;p=pigpio.git Add test cases to x_* for padded waves. --- diff --git a/x_pigpio.c b/x_pigpio.c index cd15389..8119d73 100644 --- a/x_pigpio.c +++ b/x_pigpio.c @@ -459,6 +459,51 @@ To the lascivious pleasing of a lute.\n\ c = gpioWaveGetMaxCbs(); CHECK(5, 21, c, 25016, 0, "wave get max cbs"); + + /* waveCreatePad tests */ + gpioWaveTxStop(); + gpioWaveClear(); + gpioSetAlertFunc(GPIO, t5cbf); + + e = gpioWaveAddGeneric(2, (gpioPulse_t[]) + { {1<