From c27a968bcc0f7f5f50c7a416eb76de6a394701a1 Mon Sep 17 00:00:00 2001 From: Guy McSwain Date: Wed, 29 Apr 2020 11:25:02 -0500 Subject: [PATCH] Add test cases to x_* for padded waves. --- x_pigpio.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ x_pigpio.py | 41 +++++++++++++++++++++++++++++++++++++++++ x_pigpiod_if2.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ x_pigs | 20 ++++++++++++++++++++ 4 files changed, 150 insertions(+) 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<