OpenCores
URL https://opencores.org/ocsvn/fsl2serial/fsl2serial/trunk

Subversion Repositories fsl2serial

[/] [fsl2serial/] [trunk/] [fsl2serial_v1_00_a/] [code/] [fsl_interface.h] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 cutullus
// This is a header file describing the FSL interface developed for use with the FSL2Serial
2
// module.  Data can also be sent over this link, but the assumption is that text will be sent.
3
//
4
// This requires the Xilinx FSL interface code, which can generally be found in fsl.h,
5
// mb_interface.h, and xbasic_types.h
6
//
7
// These functions cannot take the FSL ID as a parameter because the fsl functions used are
8
// actually macros for asm inline commands.
9
//
10
// Alex Marschner
11
// 2007.03.12
12
 
13
#ifndef FSL_INTERFACE_H
14
#define FSL_INTERFACE_H
15
 
16
#include "fsl.h"        //  getfsl(val, id),  putfsl(val, id),  (blocking)
17
                                        // ngetfsl(val, id), nputfsl(val,id)    (non blocking)
18
 
19
#define BOOL int
20
#define TRUE 1
21
#define FALSE 0
22
 
23
#define FSL_BLOCKING 1
24
#define FSL_NONBLOCKING 0
25
 
26
#define FSL0 0 
27
 
28
// Put a string of data through the specified FSL port.
29
void fsl0print(const char* s);
30
void fsl0nprint(const char* s);
31
 
32
// Print a single character to the specified FSL port.
33
void fsl0put(const char s);
34
void fsl0nput(const char s);
35
 
36
// Get a single character from the specified FSL port.
37
char fsl0get(char * s);
38
char fsl0nget(char * s);
39
 
40
// Print the hexadecimal representation of a 32-bit integer to the specified FSL port.
41
void fsl0hex(const unsigned int val);
42
 
43
// Print the decimal representation of a 32-bit unsigned int to the specified FSL port.
44
//void fsldec(const unsigned int val, const unsigned int id);
45
 
46
#endif
47
 

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.