]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/lx-rocon.git/blob - sw/app/rocon/appl_cmds.c
RoCoN: new file for application specific commands and sqrtll tests added.
[fpga/lx-cpu1/lx-rocon.git] / sw / app / rocon / appl_cmds.c
1 /*******************************************************************
2   Motion and Robotic System (MARS) aplication components
3
4   appl_cmds.c - application specific commands - mainly global
5                 PXMC state manipulation for RoCoN
6
7   Copyright (C) 2001-2014 by Pavel Pisa - originator
8                           pisa@cmp.felk.cvut.cz
9             (C) 2001-2014 by PiKRON Ltd. - originator
10                     http://www.pikron.com
11
12   This file can be used and copied according to next
13   license alternatives
14    - GPL - GNU Public License
15    - other license provided by project originators
16
17  *******************************************************************/
18
19 #include <cpu_def.h>
20 #include <system_def.h>
21 #include <pxmc.h>
22 #include <pxmc_coordmv.h>
23 #include <cmd_proc.h>
24 #include <pxmc_cmds.h>
25 #include <utils.h>
26
27 #include "appl_defs.h"
28
29 int sqrtll_main(int argc, char *argv[]);
30
31 int cmd_do_sqrtll(cmd_io_t *cmd_io, const struct cmd_des *des, char *param[])
32 {
33   char *ps;
34   ps = param[1];
35   sqrtll_main(!ps?1: !*ps? 1: 2, param);
36   return 0;
37 }
38
39 cmd_des_t const cmd_des_sqrtll={0, 0,"sqrtll","test 64-bit square root computation",
40                         cmd_do_sqrtll,
41                         {0,0}};
42
43
44 cmd_des_t const *const cmd_appl_specific[]={
45   &cmd_des_sqrtll,
46   NULL
47 };