Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

49 righe
1.2 KiB

  1. /** @defgroup pwr-file PWR
  2. @ingroup LPC17xx
  3. @brief <b>libopencm3 LPC17xx Power Control</b>
  4. @version 1.0.0
  5. @author @htmlonly &copy; @endhtmlonly 2013 Silvio Gissi <silvio.gissi@outlook.com>
  6. LGPL License Terms @ref lgpl_license
  7. */
  8. /*
  9. * This file is part of the libopencm3 project.
  10. *
  11. * Copyright (C) 2013 Silvio Gissi <silvio.gissi@outlook.com>
  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/pwr.h>
  28. void pwr_enable_peripherals(uint32_t peripherals)
  29. {
  30. PWR_PCONP |= peripherals;
  31. }
  32. void pwr_disable_peripherals(uint32_t peripherals)
  33. {
  34. PWR_PCONP &= ~peripherals;
  35. }
  36. /**@}*/