source: branches/reconfiguration/softs/libs/stdio.h @ 1049

Last change on this file since 1049 was 850, checked in by cfuguet, 10 years ago

reconf: introducing a softs directory in the reconfiguration branch

  • This softs directory contains a minimalistic (giet-like) library of drivers and some utility functions.
  • Introducing a simple unit test in the vci_cc_vcache_wrapper component to test the newly introduced watchdog timer mechanism. This unit test uses the minimalistic library.
File size: 954 bytes
RevLine 
[850]1/**
2 * \file    stdio.h
3 * \date    July 8, 2014
4 * \author  Cesar Fuguet
5 *
6 * \brief   input/output functions
7 */
8#ifndef _STDIO_H
9#define _STDIO_H
10#include <stdarg.h>
11
12int getc(char *c);
13void puts(const char *buffer);
14void putc(const char c);
15void sputs(const char *buffer, unsigned int length);
16void putx(unsigned int val);
17void putd(unsigned int val);
18
19/**
20 * Display a format on TTY0.
21 * To provide an atomic display, this function takes the lock protecting
22 * exclusive access to TTY0, entering a critical section until the lock
23 * is released.
24 * Only a limited number of formats are supported:
25 *   - %d : 32 bits signed   decimal
26 *   - %u : 32 bits unsigned decimal
27 *   - %x : 32 bits unsigned hexa
28 *   - %l : 64 bits unsigned hexa
29 *   - %c : char
30 *   - %s : string
31 */
32void printf(const char *format, ...);
33
34void exit();
35
36#endif                          /* _STDIO_H */
37
38/*
39 * vim: tabstop=4 : softtabstop=4 : shiftwidth=4 : expandtab
40 */
Note: See TracBrowser for help on using the repository browser.