Subversion Repositories chibiosIgnition

Rev

Rev 16 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16 Rev 17
Line 15... Line 15...
15
#include "shell.h"
15
#include "shell.h"
16
#include "evtimer.h"
16
#include "evtimer.h"
17
#include "chprintf.h"
17
#include "chprintf.h"
18
 
18
 
19
#include "shellCmds.h"
19
#include "shellCmds.h"
-
 
20
#include "timer2.h"
20
 
21
 
21
 
22
 
22
static void cmd_mem(BaseChannel *chp, int argc, char *argv[]) {
23
static void cmd_mem(BaseChannel *chp, int argc, char *argv[]) {
23
        size_t n, size , largest;
24
        size_t n, size , largest;
24
 
25
 
Line 61... Line 62...
61
 
62
 
62
 
63
 
63
static void cmd_pll (BaseChannel *chp, int argc, char *argv[])
64
static void cmd_pll (BaseChannel *chp, int argc, char *argv[])
64
{
65
{
65
 
66
 
66
        chprintf(chp,"pll\r\n");
67
        chprintf(chp,"pll ");
-
 
68
 
-
 
69
        if(argc >= 2)
-
 
70
        {
-
 
71
                if(strncmp(argv[0],"gain",4)==0)
-
 
72
                {
-
 
73
            int v = atoi(argv[0]);
-
 
74
            v=v==0?1:v;
-
 
75
            setGain(v);
-
 
76
            chprintf(chp,"setGain(%d)\r\n",v);
-
 
77
                }
-
 
78
 
-
 
79
 
-
 
80
        }
-
 
81
        else
-
 
82
        {
-
 
83
                chprintf(chp,"no args\r\n");
-
 
84
        }
67
 
85
 
68
        if(argc > 0)
-
 
69
                chprintf(chp,"has %d args\r\n",argc);
-
 
70
 
86
 
71
}
87
}
72
 
88
 
73
 
89
 
74
 
90