stm32_console.h 701 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef STM32_CONSOLE_H
  7. #define STM32_CONSOLE_H
  8. #include <drivers/console.h>
  9. #ifndef __ASSEMBLER__
  10. #include <stdint.h>
  11. /*
  12. * Initialize a new STM32 console instance and register it with the console
  13. * framework. The |console| pointer must point to storage that will be valid
  14. * for the lifetime of the console, such as a global or static local variable.
  15. * Its contents will be reinitialized from scratch.
  16. */
  17. int console_stm32_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud,
  18. console_t *console);
  19. #endif /*__ASSEMBLER__*/
  20. #endif /* STM32_CONSOLE_H */