mirror of
git://projects.qi-hardware.com/f32xbase.git
synced 2024-11-16 20:00:38 +02:00
e614d15fef
- f32x/c2-ben.c: removed #include <stdio.h> left over from debugging - f32x/f32x.c (main): command-line parsing now uses getopt() and is done before trying to talk to the target - f32x/c2-drv.h (c2_ops), f32x/c2.h (c2_init), f32x/c2.c (c2_init), f32x/c2-om.c (om_init): pass "power" argument along the init call chain - f32x/c2-ben.c (ben_init): added target power switching - f32x/f32x.c (usage, main): new option -n to disable target power
30 lines
647 B
C
30 lines
647 B
C
/*
|
|
* f32x/c2.h - Basic C2 messages
|
|
*
|
|
* Written 2008, 2010 by Werner Almesberger
|
|
* Copyright 2008, 2010 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(int power);
|
|
void c2_reset(void);
|
|
|
|
#endif /* !C2_H */
|