aboutsummaryrefslogtreecommitdiff
path: root/PL0_utils.c
blob: d83edb9201b4c86f07ca93dafdd76e820fbb1a98 (about) (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 "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);
}