console.h 670 B

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