Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: NervousPuppySprintOne NervousPuppySprint2602 Robot WarehouseBot1 ... more
Fork of mbed by
Diff: Retarget.h
- Revision:
- 4:5d1359a283bc
- Parent:
- 3:aefd12a1f1c5
- Child:
- 5:62573be585e9
--- a/Retarget.h Fri Nov 14 15:25:20 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,43 +0,0 @@ -/* mbed Microcontroller Library - Retarget - * Copyright (c) 2007-2008, sford - */ - -#ifndef MBED_RETARGET_H -#define MBED_RETARGET_H - -#include "stdio.h" -#include "rt_sys.h" - -//=================================================================== -// System -//=================================================================== - -extern "C" void mbed_startup(); -extern "C" int $Sub$$main(); -extern "C" void $Sub$$_sys_exit(int return_code); - -//=================================================================== -// Pre-stdio -//=================================================================== - -extern "C" int $Sub$$fputc(int c, FILE* f); -extern "C" int $Sub$$fgetc(FILE* f); -extern "C" int $Sub$$__backspace(FILE* f); -extern "C" void $Sub$$_ttywrch(int c); - -//=================================================================== -// Post-stdio -//=================================================================== - -extern "C" FILEHANDLE $Sub$$_sys_open(const char* name, int openmode); -extern "C" int $Sub$$_sys_close(FILEHANDLE fh); -extern "C" int $Sub$$_sys_write(FILEHANDLE fh, const unsigned char* buffer, unsigned int length, int mode); -extern "C" int $Sub$$_sys_read(FILEHANDLE fh, unsigned char* buffer, unsigned int length, int mode); -extern "C" int $Sub$$_sys_istty(FILEHANDLE fh); -extern "C" int $Sub$$_sys_seek(FILEHANDLE fh, int position); -extern "C" int $Sub$$_sys_ensure(FILEHANDLE fh); -extern "C" int $Sub$$_sys_flen(FILEHANDLE fh); - - -#endif -
