1
0
mirror of git://projects.qi-hardware.com/f32xbase.git synced 2025-04-21 12:27:27 +03:00

Cleaned up command-line parsing. Added option -n to disable target power.

- 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
This commit is contained in:
Werner Almesberger
2010-10-22 14:09:35 -03:00
parent 8325a06f61
commit e614d15fef
6 changed files with 101 additions and 47 deletions

View File

@@ -27,7 +27,7 @@
#include "c2-bitbang.c"
static void om_init(void)
static void om_init(int power)
{
gpio_init();
c2_init();