No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

49 líneas
1.2 KiB

  1. /** @defgroup gpio_file GPIO
  2. @ingroup LPC17xx
  3. @brief <b>libopencm3 LPC17xx General Purpose I/O</b>
  4. @version 1.0.0
  5. @author @htmlonly &copy; @endhtmlonly 2009 Uwe Hermann <uwe@hermann-uwe.de>
  6. LGPL License Terms @ref lgpl_license
  7. */
  8. /*
  9. * This file is part of the libopencm3 project.
  10. *
  11. * Copyright (C) 2010 Uwe Hermann <uwe@hermann-uwe.de>
  12. *
  13. * This library is free software: you can redistribute it and/or modify
  14. * it under the terms of the GNU Lesser General Public License as published by
  15. * the Free Software Foundation, either version 3 of the License, or
  16. * (at your option) any later version.
  17. *
  18. * This library is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU Lesser General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU Lesser General Public License
  24. * along with this library. If not, see <http://www.gnu.org/licenses/>.
  25. */
  26. /**@{*/
  27. #include <libopencm3/lpc17xx/gpio.h>
  28. void gpio_set(uint32_t gpioport, uint32_t gpios)
  29. {
  30. GPIO_SET(gpioport) = gpios;
  31. }
  32. void gpio_clear(uint32_t gpioport, uint32_t gpios)
  33. {
  34. GPIO_CLR(gpioport) = gpios;
  35. }
  36. /**@}*/