[riot-notifications] [RIOT-OS/RIOT] drivers: support for NXP PCA9685 I2C 16-channel, 12-bit PWM controller (#10556)

Gunar Schorcht notifications at github.com
Sat Sep 7 16:37:16 CEST 2019


gschorcht commented on this pull request.



> +
+#if MODULE_PCA9685 && MODULE_SAUL
+
+#include "assert.h"
+#include "log.h"
+
+#include "saul_reg.h"
+#include "saul/periph.h"
+
+#include "pca9685.h"
+#include "pca9685_params.h"
+
+/**
+ * @brief   Number of configured PCA9685 DAC devices
+ */
+#define PCA9685_NUM    (sizeof(pca9685_params) / sizeof(pca9685_params[0]))

Replaced them by `ARRAY_SIZE` macro.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10556#discussion_r321971382
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190907/d209db1c/attachment-0001.htm>


More information about the notifications mailing list