target.h 610 B

1234567891011121314151617181920212223242526
  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. #ifndef INC_TARGET_H
  7. #define INC_TARGET_H
  8. #define RCC_AHBENR_GPIO_RESET (RCC_AHBENR_GPIOAEN)
  9. #define RCC_AHBENR_GPIO_POWER (RCC_AHBENR_GPIOAEN)
  10. #define GPIO_RESET (GPIOA)
  11. #define PIN_RESET (11u)
  12. #define GPIO_POWER (GPIOA)
  13. #define PIN_POWER (12u)
  14. void targetSysCtrlInit( void );
  15. void targetSysReset( void );
  16. void targetSysUnReset( void );
  17. void targetSysOff( void );
  18. void targetSysOn( void );
  19. #endif