X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fdrv%2Fgpio_lm3s.c;h=2f887b59243f16f9b8a21bc8a81f065677085cb9;hb=dfd6bde734886243cc7053d4477ff840c865a133;hp=770e55b4fd376283d228fae3dcdf68d4303fed8e;hpb=c711ce450d1e5156ba8d3fcfb57291c245e4c96f;p=bertos.git diff --git a/bertos/cpu/cortex-m3/drv/gpio_lm3s.c b/bertos/cpu/cortex-m3/drv/gpio_lm3s.c index 770e55b4..2f887b59 100644 --- a/bertos/cpu/cortex-m3/drv/gpio_lm3s.c +++ b/bertos/cpu/cortex-m3/drv/gpio_lm3s.c @@ -37,23 +37,17 @@ #include #include -#include "io/lm3s.h" +#include #include "gpio_lm3s.h" -/* Write a value to the specified pin(s) */ -void lm3s_gpio_pin_write(uint32_t port, uint8_t pins, uint8_t val) -{ - HWREG(port + (GPIO_O_DATA + (pins << 2))) = val; -} - /** * Configure a GPIO pin * - * @port: the base address of the GPIO port - * @pins: the bit-packed representation of the pin(s) - * @mode: the pin(s) configuration mode - * @strength: the output drive strength - * @type: the pin(s) type + * \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. */