1/*
2 * Copyright 2017, Data61
3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4 * ABN 41 687 119 230.
5 *
6 * This software may be distributed and modified according to the terms of
7 * the BSD 2-Clause license. Note that NO WARRANTY is provided.
8 * See "LICENSE_BSD2.txt" for details.
9 *
10 * @TAG(DATA61_BSD)
11 */
12
13#pragma once
14
15#include <sel4/sel4.h>
16#include <camkes/gdb/gdb.h>
17
18/* send message to gdb client */
19void gdb_printf(const char *format, ...);
20
21/* Initialise serial for debugger */
22void serial_init(gdb_state_t *gdb_state);
23
24/* Mutex around serial hardware */
25int serial_lock(void);
26int serial_unlock(void);
27
28/* CAmkES hw IRQ function */
29int serial_irq_acknowledge(void);