+
+/**
+ * Configure a GPIO pin
+ *
+ * \param port Base address of the GPIO port
+ * \param pins Bit-packed representation of the pin(s)
+ * \param mode Pin(s) configuration mode
+ * \param strength Output drive strength
+ * \param type Pin(s) type
+ *
+ * Return 0 on success, otherwise a negative value.
+ */
+int lm3s_gpioPinConfig(uint32_t port, uint8_t pins,
+ uint32_t mode, uint32_t strength, uint32_t type)
+{
+ int ret;
+
+ ret = lm3s_gpioPinConfigMode(port, pins, mode);
+ if (UNLIKELY(ret < 0))
+ return ret;
+ ret = lm3s_gpioPinConfigStrength(port, pins, strength);
+ if (UNLIKELY(ret < 0))
+ return ret;
+ ret = lm3s_gpioPinConfigType(port, pins, type);
+ if (UNLIKELY(ret < 0))
+ return ret;
+ return 0;
+}