On 3/13/21 10:54 AM, Philippe Mathieu-Daudé wrote:
+static unsigned gpio_port_index(char c)
+{
+    assert(c >= 'A' && c < 'A' + GPIO_MAX);
+    return c - 'A';
+}

If you're not going to use this for anything else, isn't

#define PORT_B 1

enough?


r~

Reply via email to