semifix. PWM stuff mostly works. ADC should work.
[matches/MCTX3420.git] / server / bbb_pin_defines.c
index e89c6dc..ff7caea 100644 (file)
@@ -42,4 +42,12 @@ const unsigned char g_index_to_gpio[GPIO_NUM_PINS] = {
         30,  31,  44,  45,  46,  47,  48,  49,  50,  51,  60,  61,  65,  66,
         67,  68,  69,  70,  71,  72,  73,  74,  75,  76,  77,  78,  79,  80,
         81,  86,  87,  88,  89, 112, 115, 117
+};
+
+/**
+ * Converts PWM index to PWM number
+ * e.g index 3 becomes 6 for /sys/class/pwm/pwm6
+ */
+const unsigned char g_pin_safe_pwm[PWM_NUM_SAFE_PINS] = {
+       0, 2, 4, 6, 7
 };
\ No newline at end of file

UCC git Repository :: git.ucc.asn.au