- Feb 23, 2017
-
-
When wrpc binary is compiled with CONFIG_WR_NODE_SIM, it prevents callnig some time-consuming fuctions or other stuff that prevents the code to work in simulated LM32
-
- Jun 10, 2016
-
-
Adam Wujek authored
Additionally use type checking Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- May 18, 2016
-
-
Trigger start/stop of PTP from wrc_check_link job instead of PTP's job. This picks ppsi's new master that matches the change. We need to remove prototype for an unused function, now that the one in ppsi changed arguments and we'd otherwise get error: conflicting types for 'wr_servo_reset' Signed-off-by: Adam Wujek <adam.wujek@cern.ch> Signed-off-by: Alessandro Rubini <a.rubini@gsi.de>
-
- Apr 04, 2016
-
-
Alessandro Rubini authored
This allows several functions to be static in the files where they are defined. See temperature.c for an example. But mainly, the idea is allowing ease addition of features (likely Kconfig'd ones) for specific WR users, without any modification to the main function and other generic code. This will happen soon for snmp, for example. We may push this a little further, by moving all shell stuff into shell.c, the ptp task within ppsi itself, and so on. But now my time is over. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
WARNING: wr_switch_defconfig doesn't build, this is fixed in next commit Unfortunately this commit makes the internal communication between minic and lan asymmetric: on receive the tag is discarded (and the longer header falls into the payload) while on transmit it must be provided by lan.c. The reason is that on receive we can trim 4 bytes from the payload, but on send we can't add 4 bytes without a memmove. The functions receive pointers to two different header structures, so hopefully user errors will be signalled by the compiler. Still, users interact with net.c, which hides vlan completely from them. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- Feb 16, 2016
-
-
Alessandro Rubini authored
This commit turns individual calls to polling functions into an array of tasks. On this basis we can add profiling and periodic execution (instead of continuous polling). Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This is a step towards profiling. The functions being polled return whether or not they did actually work. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- Jan 20, 2016
-
-
Alessandro Rubini authored
Otherwise, the macro won't build on 64-bit hosts Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This removes TRACE_DEV(), turning it into pll_verbose() and wrc_verbose(). The functions are enabled and disabled by kconfig, with defaults matching the previous behaviour. So nothing changes, but the binary is smaller because the previous wrc_debug_printf() was silent because of a run-time conditional (though hardwired false at build time). The condional is now at build time. We save around 2k, between strings and calling code, in all wrc builds (nothing is saved in wrs, which is verbose by default, nor in devel_build_test_defconfig where all verbose options are on)). Signed-off-by: Alessandro Rubini <rubini@gnudd.com> devel_build_test_defconfig: enable all verbose options Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
The makefile included trace.h for everyone, which in turns included wrc.h. It's better to include wrc.h straight on (we can't rely on all files including it, for example pp_printf does not). Meanwhile, some redundant includes are removed, and some are added (I prefer wrc.h to be explicitly listed in the files that use it, even if the command line set in Makefile already prepends it). Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- Oct 30, 2015
-
-
Alessandro Rubini authored
This commit fixes all copyright notes, using "git blame" as a reference. For simple files I just added a 2-lines boilerplate about being WR and GPL. Some parts I left untouched: trivial-init and related files (unclear to me what this is, and pf-microcode.h is magic binary pfilter values). tools/lm32-etheruart: I don't know what this is and who the author is libsdbfs: this comes from another repo and I'd better not change it sfp_lib.h and hal_shmem.h: I lost track about the origin of this, among the several packages. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- Oct 27, 2015
-
-
Alessandro Rubini authored
We have not been using mprintf for ages now, and it's better for the code to explicitly call pp_printf, so people is aware of it. We might "#define printf pp_printf", but currently we'd better not. Maybe when we turn this into a real operating system, next millennium... Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- Oct 15, 2015
-
-
Alessandro Rubini authored
The function was only called with "0" as argument. Drop it. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- Jan 09, 2015
-
-
Grzegorz Daniluk authored
-
- Nov 18, 2014
-
-
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- Sep 08, 2014
-
-
By default the scb_ver is "33" but it can be modified at runtime in order to load the config for SCB v3.4 (i.e, load-lm32 rt_cpu.elf scb_ver=34) Signed-off-by: Benoit Rat <benoit@sevensols.com>
-
- Aug 05, 2014
-
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- Feb 11, 2014
-
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
softpll is built for both wrc and wrs; since it includes wrc.h and syscon.h, we must make them suitable for both environments. Waiting for the time and energies for a better merge, this uses ifdef to differentiate the two cases: the timer code is different (different prototypes) and the clock frequency is different as well (125 vs 62.5 MHz). Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- Feb 10, 2014
-
-
Grzegorz Daniluk authored
-
- Oct 17, 2013
-
-
Alessandro Rubini authored
This is a bigger change than expected, as the width was defined in two places. So I moved the definition in <wrc.h>, whence everybody picks it. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- May 23, 2013
-
-
Alessandro Rubini authored
This reverts commit 0bcbe429 . Now that we are able to check for bogus printf calls, don't define the name any more (ptp-noposix defines it anyways, but let's not do it when building with ppsi, so the code explicitly calls pp_printf (or mprintf, which will remain as an alias until we get rid of ptp-noposix). Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- May 14, 2013
-
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- May 06, 2013
-
-
Alessandro Rubini authored
Sometimes a printf happens in the code, and it eventually prevents the wrc to link because it pick up the whole of libc. While ptp-noposix already has a definition of printf to mprintf, we don't have the same for ppsi, so let's add it. Currently, rxts_calibrator.c includes calls to printf, and didn't build with CONFIG_PPSI until this commit. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- Mar 29, 2013
-
-
Alessandro Rubini authored
1- wrc.h now includes syscon.h. This is a prerequisite to a non-inline implementation of usleep (the current inline one is just a random loop, 10x wrong on the spec). Without this we should modify sockitowm where it calls usleep, but I'd better not touch sockitowm. 2- syscon.h includes <sys/types.h>. This is needed to have useconds_t. I'd better have usleep take unsigned long, but some file already includes sys/types.h, so our prototype must match that one. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- Mar 22, 2013
-
-
Tomasz Wlostowski authored
-
- Mar 18, 2013
-
-
mprintf is of uncertain copyright status, and that's why we added pp_printf (actually, that's why I picked pp_printf fro ptp-proposal and made it a standalone thing). Now that everyone involved confirms pp_printf is well tested, let's remove mprintf. We still accept mprintf in the callers, because the name is used by our ptp-noposix submodule, and I'm sure people has it in their fingers and it will appear again. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- Feb 19, 2013
-
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- Feb 12, 2013
-
-
Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
- Nov 01, 2012
-
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
I also turned to gui to void, as nobody checks the return value and there's no error code to return in any case. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
When I add prototypes to headers, I ensure the source that defines the function sees the header, to detect inconsistencies (here, I add <wrc.h> to the includes). Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This adds all missing prototypes and removes unused variables. It includes a generic <wrc.h> (which btw includes the printf prototype, not in uart.h any more) and other needed bits. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-