Browse Source

eCos fixes

git-svn-id: svn://svn.berlios.de/openocd/trunk@1763 b42882b7-edfa-0310-969c-e2dbd0fdcd60
tags/v0.2.0
oharboe 15 years ago
parent
commit
75f89c5cb6
2 changed files with 14 additions and 0 deletions
  1. +9
    -0
      src/helper/jim.c
  2. +5
    -0
      src/jtag/jtag.h

+ 9
- 0
src/helper/jim.c View File

@@ -48,6 +48,15 @@

#ifdef __ECOS
#include <pkgconf/jimtcl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <ctype.h>
#include <limits.h>
#include <assert.h>
#include <errno.h>
#include <time.h>
#endif
#ifndef JIM_ANSIC
#define JIM_DYNLIB /* Dynamic library support for UNIX and WIN32 */


+ 5
- 0
src/jtag/jtag.h View File

@@ -607,6 +607,11 @@ extern void jtag_add_callback(jtag_callback1_t, u8 *in);
/* implemented by minidriver */
#endif


#ifdef __ECOS
typedef CYG_ADDRWORD intptr_t;
#endif

/* This type can store an integer safely by a normal cast on 64 and
* 32 bit systems. */
typedef intptr_t jtag_callback_data_t;


Loading…
Cancel
Save