aboutsummaryrefslogtreecommitdiff
path: root/src/PL0/PL0_utils.c
blob: b9853fb1512326e2cef4a68bc06775da5514cdc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stddef.h>
#include <stdint.h>

#include "../utils/svc_interface.h"
#include "PL0_utils.h"

// most generic definition possible
// the actual function defined in svc.S
uint32_t svc(enum svc_type, ...);

void putchar(char character)
{
  svc(UART_PUTCHAR, character);
}

char getchar(void)
{
  return svc(UART_GETCHAR);
}