1
0
mirror of https://github.com/xtacocorex/CHIP_IO synced 2025-07-20 04:43:21 +00:00

mods to test_pwm_setup.py to mark some tests that are failing as expected to fail (#22). the issue appears to be the pwm cleanup stuff. added some code to help with future work

This commit is contained in:
Robert Wolterman
2016-12-31 04:37:24 +00:00
parent e82f62133a
commit 8aa402fbd5
2 changed files with 61 additions and 99 deletions

View File

@ -57,9 +57,23 @@ struct pwm_dev
char key[KEYLEN+1]; /* leave room for terminating NUL byte */
int gpio;
int initialized;
struct pwm_dev *next;
};
struct pwm_dev *initialized_pwms = NULL;
struct pwm_dev *lookup_initialized_pwm(const char *key)
{
struct pwm_dev *dev = initialized_pwms;
while (dev != NULL)
{
if (strcmp(dev->key, key) == 0) {
return dev;
}
dev = dev->next;
}
return NULL;
}
// pwm exports
struct pwm_exp
{