mirror of
https://github.com/drasko/codezero.git
synced 2026-03-04 11:33:15 +01:00
Initial commit
This commit is contained in:
30
include/l4/platform/tests/uart.h
Normal file
30
include/l4/platform/tests/uart.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef __PLATFORM__PB926__UART__H__
|
||||
#define __PLATFORM__PB926__UART__H__
|
||||
|
||||
/*
|
||||
* Platform specific ties to generic uart functions that putc expects.
|
||||
*
|
||||
* Copyright (C) 2005 Bahadir Balban
|
||||
*
|
||||
*/
|
||||
|
||||
/* C library on host */
|
||||
#include <stdio.h>
|
||||
|
||||
#include INC_PLAT(offsets.h)
|
||||
#include INC_GLUE(basiclayout.h)
|
||||
/* TODO: PL011_BASE must point at a well-known virtual uart base address */
|
||||
//#define PL011_BASE PB926_UART0_BASE
|
||||
#define PL011_BASE (IO_AREA0_VADDR + 0xF1000)
|
||||
#include <drivers/uart/pl011/pl011_uart.h>
|
||||
|
||||
static inline void uart_initialise(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#define uart_putc(c) printf("%c",(char)c)
|
||||
|
||||
|
||||
|
||||
#endif /* __PLATFORM__PB926__UART__H__ */
|
||||
Reference in New Issue
Block a user