target.c 574 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * This Source Code Form is subject to the terms of the MIT License.
  3. * If a copy of the MIT License was not distributed with this file,
  4. * you can obtain one at https://opensource.org/licenses/MIT
  5. */
  6. #include "target.h"
  7. #include "system.h"
  8. void targetSysReset( void )
  9. {
  10. GPIOA_BSRR = (1 << (PIN_RESET + 16));
  11. return ;
  12. }
  13. void targetSysUnReset( void )
  14. {
  15. GPIOA_BSRR = (1 << (PIN_RESET));
  16. return ;
  17. }
  18. void targetSysOff( void )
  19. {
  20. GPIOA_BSRR = (1 << (PIN_POWER + 16));
  21. return ;
  22. }
  23. void targetSysOn( void )
  24. {
  25. GPIOA_BSRR = (1 << (PIN_POWER));
  26. return ;
  27. }