1
0
mirror of git://projects.qi-hardware.com/f32xbase.git synced 2024-11-05 03:45:21 +02:00
f32xbase/f32x/c2.h
Werner Almesberger de75051afa Support different targets. (Openmoko GTA01/02 with Dbgv3, soon c2ben.)
- f32x/Makefile: added support for building for different targets (for now,
  just TARGET=om)
- f32x/c2-drv.h: interface for C2 drivers
- f32x/c2-om.c: updated title
- f32x/c2-om.c: renamed all c2_* to om_* and made them "static"
- f32x/c2-om.c (c2_om): driver operations
- f32x/c2.c: call driver operations
- f32x/c2.h: moved protocol constants to c2-drv.h
2010-10-21 10:03:42 -03:00

30 lines
630 B
C

/*
* f32x/c2.h - Basic C2 messages
*
* Written 2008 by Werner Almesberger
* Copyright 2008 Werner Almesberger
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef C2_H
#define C2_H
#include <stdint.h>
void c2_addr_write(uint8_t addr);
uint8_t c2_addr_read(void);
void c2_data_write(uint32_t data, int bytes);
uint32_t c2_data_read(int bytes) ;
void c2_init(void);
void c2_reset(void);
#endif /* !C2_H */