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:
@@ -27,7 +27,7 @@
|
||||
#include "c2-bitbang.c"
|
||||
|
||||
|
||||
static void om_init(void)
|
||||
static void om_init(int power)
|
||||
{
|
||||
gpio_init();
|
||||
c2_init();
|
||||
|
||||
Reference in New Issue
Block a user