anelok:anelok.git
2 years agofw/fatfs/ff.c (clust2sect, get_fat, put_fat): add "static" fatfs-warnings
Werner Almesberger [Fri, 27 Feb 2015 05:27:05 +0000 (02:27 -0300)]
fw/fatfs/ff.c (clust2sect, get_fat, put_fat): add "static"

2 years agoCOPYING: add FatFs license
Werner Almesberger [Thu, 26 Feb 2015 16:23:29 +0000 (13:23 -0300)]
COPYING: add FatFs license

2 years agoCOPYING: add section titles
Werner Almesberger [Thu, 26 Feb 2015 16:20:43 +0000 (13:20 -0300)]
COPYING: add section titles

2 years agoAdd fatfs files [http://elm-chan.org/fsw/ff/00index_e.html]
Xiangfu [Wed, 18 Feb 2015 14:01:24 +0000 (22:01 +0800)]
Add fatfs files [elm-chan.org/fsw/ff/00index_e.html]

2 years agoMakefile: Add etags rule
Xiangfu [Thu, 19 Feb 2015 05:04:13 +0000 (13:04 +0800)]
Makefile: Add etags rule

2 years agoAdd three Canaan brds in DEVCFG
Xiangfu [Thu, 19 Feb 2015 00:19:29 +0000 (08:19 +0800)]
Add three Canaan brds in DEVCFG

2 years agodoc/evol-hw.fig: update for February 2015
Werner Almesberger [Thu, 19 Feb 2015 08:46:56 +0000 (05:46 -0300)]
doc/evol-hw.fig: update for February 2015

Changes:

- CPU: add KL16+KL26 combo
- USB device: add Micro B
- Slider: choice is now firm
- RF-Kill: select "Ground VDD", add loss of TRNG as disadvantage

2 years agomeas/2032/: CR2032 battery life measurement scripts
Werner Almesberger [Wed, 18 Feb 2015 20:34:33 +0000 (17:34 -0300)]
meas/2032/: CR2032 battery life measurement scripts

2 years agofw/2014/main.c (ui): use msleep instead of mdelay
Werner Almesberger [Wed, 18 Feb 2015 02:28:33 +0000 (23:28 -0300)]
fw/2014/main.c (ui): use msleep instead of mdelay

Finally ! :)

2 years agofw/2014/touch.c (touch_init): set TSI_GENCS_STPE to enable TSI in sleep modes
Werner Almesberger [Wed, 18 Feb 2015 02:27:50 +0000 (23:27 -0300)]
fw/2014/touch.c (touch_init): set TSI_GENCS_STPE to enable TSI in sleep modes

2 years agofw/2014/main.c (ui): wait only 6 ms if we had an update
Werner Almesberger [Wed, 18 Feb 2015 02:21:28 +0000 (23:21 -0300)]
fw/2014/main.c (ui): wait only 6 ms if we had an update

This should make the overall timing smoother, similar to what we'll
have when using interrupts.

2 years agofw/disp/display.c, display.h (display_update): return 1 if an update was needed
Werner Almesberger [Wed, 18 Feb 2015 02:20:50 +0000 (23:20 -0300)]
fw/disp/display.c, display.h (display_update): return 1 if an update was needed

2 years agoAUTHORS: update (many new directories, patch by Mikeqin)
Werner Almesberger [Wed, 18 Feb 2015 01:52:07 +0000 (22:52 -0300)]
AUTHORS: update (many new directories, patch by Mikeqin)

2 years agoTODO: update: lanyard is done; idea: slide battery under OLED
Werner Almesberger [Wed, 18 Feb 2015 01:50:48 +0000 (22:50 -0300)]
TODO: update: lanyard is done; idea: slide battery under OLED

2 years agosim/sim.c: use tick.h instead of sleep.h
Werner Almesberger [Wed, 18 Feb 2015 01:40:35 +0000 (22:40 -0300)]
sim/sim.c: use tick.h instead of sleep.h

2 years agofw/base/sleep.h: merge into plat/tick.h
Werner Almesberger [Wed, 18 Feb 2015 01:39:32 +0000 (22:39 -0300)]
fw/base/sleep.h: merge into plat/tick.h

2 years agofw/base/sleep.c: merge into plat/tick.c, fixing numerous issues
Werner Almesberger [Wed, 18 Feb 2015 01:34:25 +0000 (22:34 -0300)]
fw/base/sleep.c: merge into plat/tick.c, fixing numerous issues

This solves the following issues:

- tick_init didn't enable LPTMR register access,
- msleep didn't know how to bypass the prescaler and thus operated with
  an unnecessarily reduced resolution,
- msleep(n) for n < 2 would cause trouble,
- tick_* and msleep both used the LPTMR but didn't know of each other.

2 years agofw/disp/display.c (display_blit): also ignore patterns that are completely below...
Werner Almesberger [Tue, 17 Feb 2015 17:44:42 +0000 (14:44 -0300)]
fw/disp/display.c (display_blit): also ignore patterns that are completely below y = 0

It seems that not doing this caused the artefacts that often appeared when
sliding. So it wasn't signal timing after all. (Note that the signal
integrity issues encountered at large supply voltage differences are
different from this, but some of the artefacts fixed in this commit may
have been mistaken for signal integrity problems.)

2 years agodoc/CodingStyle, common/whitespace: define coding style, with script to check
Werner Almesberger [Tue, 17 Feb 2015 17:29:22 +0000 (14:29 -0300)]
doc/CodingStyle, common/whitespace: define coding style, with script to check

2 years agoswdlib/: clean up use of whitespace
Werner Almesberger [Tue, 17 Feb 2015 17:25:25 +0000 (14:25 -0300)]
swdlib/: clean up use of whitespace

2 years agosim/: clean up use of whitespace
Werner Almesberger [Tue, 17 Feb 2015 17:14:52 +0000 (14:14 -0300)]
sim/: clean up use of whitespace

2 years agofw/mmc/: clean up use of whitespace
Werner Almesberger [Tue, 17 Feb 2015 16:54:50 +0000 (13:54 -0300)]
fw/mmc/: clean up use of whitespace

2 years agofw/ybox/ep0.c: clean up use of whitespace
Werner Almesberger [Tue, 17 Feb 2015 16:51:45 +0000 (13:51 -0300)]
fw/ybox/ep0.c: clean up use of whitespace

2 years agofw/2014/: clean up use of whitespace; fix a redundant "else"
Werner Almesberger [Tue, 17 Feb 2015 16:47:25 +0000 (13:47 -0300)]
fw/2014/: clean up use of whitespace; fix a redundant "else"

2 years agofw/common/: clean up use of whitespace
Werner Almesberger [Tue, 17 Feb 2015 16:40:47 +0000 (13:40 -0300)]
fw/common/: clean up use of whitespace

2 years agofw/board/devcfg.h: clean up use of whitespace
Werner Almesberger [Tue, 17 Feb 2015 16:37:45 +0000 (13:37 -0300)]
fw/board/devcfg.h: clean up use of whitespace

2 years agofw/ccfw/: clean up use of whitespace
Werner Almesberger [Tue, 17 Feb 2015 16:35:47 +0000 (13:35 -0300)]
fw/ccfw/: clean up use of whitespace

2 years agofw/cc/: clean up use of whitespace
Werner Almesberger [Tue, 17 Feb 2015 16:26:36 +0000 (13:26 -0300)]
fw/cc/: clean up use of whitespace

2 years agofw/usb/: clean up use of whitespace
Werner Almesberger [Tue, 17 Feb 2015 16:23:33 +0000 (13:23 -0300)]
fw/usb/: clean up use of whitespace

2 years agofw/ui/: clean up use of whitespace
Werner Almesberger [Tue, 17 Feb 2015 16:09:56 +0000 (13:09 -0300)]
fw/ui/: clean up use of whitespace

2 years agofw/ui/event.c, event.h, list.h: move unused files to attic/
Werner Almesberger [Tue, 17 Feb 2015 15:55:19 +0000 (12:55 -0300)]
fw/ui/event.c, event.h, list.h: move unused files to attic/

Note sure if we'll ever want to revive them. Maybe list.h

2 years agofw/plat/: clean up use of whitespace; remove commented-out debugging code
Werner Almesberger [Tue, 17 Feb 2015 15:52:03 +0000 (12:52 -0300)]
fw/plat/: clean up use of whitespace; remove commented-out debugging code

2 years agofw/base/: clean up use of whitespace
Werner Almesberger [Tue, 17 Feb 2015 15:44:13 +0000 (12:44 -0300)]
fw/base/: clean up use of whitespace

2 years agofw/disp/: clean up use of whitespace around arithmetic operators
Werner Almesberger [Tue, 17 Feb 2015 15:27:21 +0000 (12:27 -0300)]
fw/disp/: clean up use of whitespace around arithmetic operators

Follow kernel coding style.

2 years agoybox/ybox.c: update for linker script change (untested)
Werner Almesberger [Tue, 17 Feb 2015 04:32:23 +0000 (01:32 -0300)]
ybox/ybox.c: update for linker script change (untested)

2 years agofw/: switch to the linker script from KSDK
Werner Almesberger [Tue, 17 Feb 2015 04:09:56 +0000 (01:09 -0300)]
fw/:  switch to the linker script from KSDK

2 years agosdk/: add linker script from KSDK
Werner Almesberger [Tue, 17 Feb 2015 04:07:29 +0000 (01:07 -0300)]
sdk/: add linker script from KSDK

2 years agofw/COPYING: correct formatting of Freescale license, add contact data
Werner Almesberger [Tue, 17 Feb 2015 03:42:49 +0000 (00:42 -0300)]
fw/COPYING: correct formatting of Freescale license, add contact data

2 years agofw/: switch to MKL46Z4.h; adapt code for CMSIS
Werner Almesberger [Mon, 16 Feb 2015 20:54:00 +0000 (17:54 -0300)]
fw/: switch to MKL46Z4.h; adapt code for CMSIS

CMSIS only affects accesses to core registers and the changes are therefore
fairly small.

2 years agofw/sdk/: obtain MKL46Z4.h (and auxiliary files) from Freescale KSDK
Werner Almesberger [Mon, 16 Feb 2015 20:47:48 +0000 (17:47 -0300)]
fw/sdk/: obtain MKL46Z4.h (and auxiliary files) from Freescale KSDK

This is a "cleanly" redistributable version of the register definitions
which we can safely include in the Anelok sources. This avoids the
downloading of the KL26 example code and extraction of MKL26Z4.h from
the ZIP archive.

While the KSDK does not contain register definitions for the KL26, the
KL46 is a direct superset of it and its definitions can therefore be
safely used (as long as we stay away from the LCD controller).

Since MKL46Z4.h is bases on CMSIS, we need to include a few support
files and we dummy out some of the support files we probably won't
need.

2 years agofw/2014/main.c (ui): use the tick counter for more stable input timing
Werner Almesberger [Mon, 16 Feb 2015 16:17:53 +0000 (13:17 -0300)]
fw/2014/main.c (ui): use the tick counter for more stable input timing

2 years agofw/plat/tick.c, tick.h, fw/Makefile: 1 kHz tick counter (LPO+LPTRM)
Werner Almesberger [Mon, 16 Feb 2015 16:14:49 +0000 (13:14 -0300)]
fw/plat/tick.c, tick.h, fw/Makefile: 1 kHz tick counter (LPO+LPTRM)

This is for inexact timekeeping (+/- 10%).

2 years agofw/, sim/: make input system use delta time as input, not absolute time
Werner Almesberger [Mon, 16 Feb 2015 10:01:04 +0000 (07:01 -0300)]
fw/, sim/: make input system use delta time as input, not absolute time

2 years agofw/2014/main.c (ui): raise delay to 10 ms so that touch timing still works
Werner Almesberger [Mon, 16 Feb 2015 16:19:35 +0000 (13:19 -0300)]
fw/2014/main.c (ui): raise delay to 10 ms so that touch timing still works

For some reason, the touch sensor sampling goes awry if we are much faster
than 10 ms. Not sure if the problem is in the sampling process, if it's
in the (fixed-size) low-pass filter getting shifted to a much higher
frequency, or if it's in calibration happening much more often.

2 years agofw/ui/input.c: fix last_pos initialization, delta time calculation
Werner Almesberger [Mon, 16 Feb 2015 09:50:42 +0000 (06:50 -0300)]
fw/ui/input.c: fix last_pos initialization, delta time calculation

We can safely set last_pos to zero, which means that no position marker
is present.

The delta time calculation has an interesting effect: we accumulate delta
time too quickly when the display is not being updated but this bug disabled
the checks that would react to excessive delta time. Or at least I think
this is roughly what happened there. So this actually made the whole logic
work.

Note that the simulator uses real time and is therefore not affected by
this problem.

After fixing it, the slider no longer works properly. But this will be
remedied very soon ...

2 years agofw/: add -Wextra -Wno-unused-parameter and clean up 2/4 of the resulting warnings
Werner Almesberger [Mon, 16 Feb 2015 08:04:28 +0000 (05:04 -0300)]
fw/: add -Wextra -Wno-unused-parameter and clean up 2/4 of the resulting warnings

Fixing the two remaining ones somehow breaks the slider. Interesting.

2 years agofw/2014/touch.c: add fast calibration after initialization
Werner Almesberger [Sun, 15 Feb 2015 06:12:23 +0000 (03:12 -0300)]
fw/2014/touch.c: add fast calibration after initialization

2 years agofw/2014/main.c (main): don't call touch_init twice (in main and in ui)
Werner Almesberger [Sun, 15 Feb 2015 06:03:33 +0000 (03:03 -0300)]
fw/2014/main.c (main): don't call touch_init twice (in main and in ui)

2 years agofw/: make touch scaling and offset also configurable via devcfg
Werner Almesberger [Sun, 15 Feb 2015 04:55:16 +0000 (01:55 -0300)]
fw/: make touch scaling and offset also configurable via devcfg

2 years agofw/2014/touch.c (touch_pos): clean up scaling calculation (and fix whitespaces)
Werner Almesberger [Sun, 15 Feb 2015 04:40:45 +0000 (01:40 -0300)]
fw/2014/touch.c (touch_pos): clean up scaling calculation (and fix whitespaces)

2 years agodoc/handed/handed.fig: add the LED
Werner Almesberger [Sat, 14 Feb 2015 12:20:05 +0000 (09:20 -0300)]
doc/handed/handed.fig: add the LED

2 years agodoc/handed/: handedness example
Werner Almesberger [Sat, 14 Feb 2015 12:12:10 +0000 (09:12 -0300)]
doc/handed/: handedness example

2 years agofw/ui/ui_setup.c (do_identify, do_rf): use console window
Werner Almesberger [Sat, 14 Feb 2015 02:18:05 +0000 (23:18 -0300)]
fw/ui/ui_setup.c (do_identify, do_rf): use console window

We need this for left-handed operation since the main display area is then
offset.

2 years agofw/disp/console.c, console.h: add windowing (restrict output area)
Werner Almesberger [Sat, 14 Feb 2015 02:16:52 +0000 (23:16 -0300)]
fw/disp/console.c, console.h: add windowing (restrict output area)

2 years agofw/disp/console.c (console_char): use FB_X and FB_Y instead of hard-coded size
Werner Almesberger [Sat, 14 Feb 2015 02:09:39 +0000 (23:09 -0300)]
fw/disp/console.c (console_char): use FB_X and FB_Y instead of hard-coded size

2 years agofw/: when rotating, keep touch position and icon bar next to the slider
Werner Almesberger [Sat, 14 Feb 2015 02:04:47 +0000 (23:04 -0300)]
fw/: when rotating, keep touch position and icon bar next to the slider

This means that the main display field moves away from the edge.

2 years agofw/Makefile (update): depend directly on $(NAME).bin
Werner Almesberger [Tue, 10 Feb 2015 03:33:55 +0000 (00:33 -0300)]
fw/Makefile (update): depend directly on $(NAME).bin

This way, we compile before waiting for USB. Allows for a more direct
workflow in cases where compilation may fail.

2 years agocommon/Makefile.c-common, fw/Makefile: use more reliable dependency for MKL26Z4.h
Werner Almesberger [Tue, 10 Feb 2015 03:32:41 +0000 (00:32 -0300)]
common/Makefile.c-common, fw/Makefile: use more reliable dependency for MKL26Z4.h

See
http://stackoverflow.com/questions/5229561/gnu-make-generating-automatic-dependencies-with-generated-header-files

2 years agofw/Makefile (MKL26Z4.h): unzip needs -DD or it will still change the date
Werner Almesberger [Sat, 7 Feb 2015 13:40:16 +0000 (10:40 -0300)]
fw/Makefile (MKL26Z4.h): unzip needs -DD or it will still change the date

2 years agofw/: use MKL26Z4.h from Freescale's Sample Code instead of bare-metal's MKL25Z4.h
Werner Almesberger [Fri, 6 Feb 2015 00:31:37 +0000 (21:31 -0300)]
fw/: use MKL26Z4.h from Freescale's Sample Code instead of bare-metal's MKL25Z4.h

Besides some fun renaming, there is a nasty difference in SPI register
addresses, making KL25 and KL26 code incompatible even though things
almost look as if the same code could run on both.

Note that we still need bare-metal-arm for mkl25z4.ld

2 years agofw/Makefile: remove antique support for alternate USB stack
Werner Almesberger [Fri, 6 Feb 2015 00:19:09 +0000 (21:19 -0300)]
fw/Makefile: remove antique support for alternate USB stack

We habe moved well beyond this point and it probably wouldn't work anymore.

2 years agosim/Makefile: add devcfg.inc dependency
Werner Almesberger [Sun, 1 Feb 2015 01:15:40 +0000 (22:15 -0300)]
sim/Makefile: add devcfg.inc dependency

2 years agosim/subst.h: forgot to commit this file
Werner Almesberger [Sun, 1 Feb 2015 01:15:23 +0000 (22:15 -0300)]
sim/subst.h: forgot to commit this file

2 years agofw/2014/main.c (ui): power the display (hack)
Werner Almesberger [Sun, 1 Feb 2015 01:03:34 +0000 (22:03 -0300)]
fw/2014/main.c (ui): power the display (hack)

We don't want to power the display permanently, so this still needs a
bit more work. Not sure yet whether display_on should call power_disp
or whether this should go elsewhere.

2 years agofw/DEVCFG: add threshold for brd #2 in its new case
Werner Almesberger [Sun, 1 Feb 2015 01:01:51 +0000 (22:01 -0300)]
fw/DEVCFG: add threshold for brd #2 in its new case

2 years agosim/Makefile: remove weird references to USB
Werner Almesberger [Sun, 1 Feb 2015 00:59:46 +0000 (21:59 -0300)]
sim/Makefile: remove weird references to USB

The simulator doesn't even use USB. That's what happens when reusing
Makefiles without cleaning them up properly.

2 years agocase/mask/: another try: show where the windows should be, then mask manually
Werner Almesberger [Thu, 29 Jan 2015 14:34:14 +0000 (11:34 -0300)]
case/mask/: another try: show where the windows should be, then mask manually

2 years agocase/slider/slider.fpd (pcb_off): board too loose; change from -0.2 mm to 0 mm
Werner Almesberger [Thu, 29 Jan 2015 05:08:26 +0000 (02:08 -0300)]
case/slider/slider.fpd (pcb_off): board too loose; change from -0.2 mm to 0 mm

2 years agocase/slider/: PCB with a window to apply masking fluid (for the slider area)
Werner Almesberger [Thu, 29 Jan 2015 04:55:03 +0000 (01:55 -0300)]
case/slider/: PCB with a window to apply masking fluid (for the slider area)

2 years agocase/top-paint-mask.png: narrow rim created by PCB wall was not marked
Werner Almesberger [Thu, 29 Jan 2015 03:49:14 +0000 (00:49 -0300)]
case/top-paint-mask.png: narrow rim created by PCB wall was not marked

2 years agocase/window/: PCB with a window to apply masking fluid
Werner Almesberger [Thu, 29 Jan 2015 02:59:54 +0000 (23:59 -0300)]
case/window/: PCB with a window to apply masking fluid

2 years agocase/mask.py, Makefile: covering the whole panel wasn't the brightest idea
Werner Almesberger [Thu, 29 Jan 2015 02:59:12 +0000 (23:59 -0300)]
case/mask.py, Makefile: covering the whole panel wasn't the brightest idea

2 years agofw/2014/main.c (main): run the UI before special USB commands
Werner Almesberger [Wed, 28 Jan 2015 12:29:16 +0000 (09:29 -0300)]
fw/2014/main.c (main): run the UI before special USB commands

To access the special commands, one now has to leave the UI from the
setup menu.

2 years agosim/sim.c: support exiting the user interface (exits the simulator)
Werner Almesberger [Wed, 28 Jan 2015 11:57:08 +0000 (08:57 -0300)]
sim/sim.c: support exiting the user interface (exits the simulator)

2 years agofw/: support exiting the user interface
Werner Almesberger [Wed, 28 Jan 2015 11:56:42 +0000 (08:56 -0300)]
fw/: support exiting the user interface

2 years agofw/DEVCFG: add board #2 and explain case configuration of board #1
Werner Almesberger [Wed, 28 Jan 2015 11:49:14 +0000 (08:49 -0300)]
fw/DEVCFG: add board #2 and explain case configuration of board #1

2 years agofw/Makefile: let environment variables override ANELOK_DEVCFG
Werner Almesberger [Tue, 27 Jan 2015 13:14:04 +0000 (10:14 -0300)]
fw/Makefile: let environment variables override ANELOK_DEVCFG

2 years agosim/: simulate rf-kill switch; R toggles it (default: RF is powered)
Werner Almesberger [Mon, 26 Jan 2015 14:50:45 +0000 (11:50 -0300)]
sim/: simulate rf-kill switch; R toggles it (default: RF is powered)

2 years agosim/: add dummy CC support (just acquisition and identification for now)
Werner Almesberger [Mon, 26 Jan 2015 14:41:37 +0000 (11:41 -0300)]
sim/: add dummy CC support (just acquisition and identification for now)

2 years agofw/ui/ui_setup.c, fw/Makefile: add RF chip presence test
Werner Almesberger [Mon, 26 Jan 2015 14:34:08 +0000 (11:34 -0300)]
fw/ui/ui_setup.c, fw/Makefile: add RF chip presence test

2 years agocc/cc.c: didn't include own header file (for prototypes)
Werner Almesberger [Mon, 26 Jan 2015 14:31:50 +0000 (11:31 -0300)]
cc/cc.c: didn't include own header file (for prototypes)

2 years agoswdlib/ccdbg.c (get_chip_id), ccdbg.h: make public (as ccdbg_get_chip_id)
Werner Almesberger [Mon, 26 Jan 2015 14:31:12 +0000 (11:31 -0300)]
swdlib/ccdbg.c (get_chip_id), ccdbg.h: make public (as ccdbg_get_chip_id)

2 years agofw/ui/ui_setup.c: give tasks own sections; move specific includes there
Werner Almesberger [Mon, 26 Jan 2015 13:54:04 +0000 (10:54 -0300)]
fw/ui/ui_setup.c: give tasks own sections; move specific includes there

2 years agocase/doit: update for runs #12 to #14
Werner Almesberger [Mon, 26 Jan 2015 00:55:11 +0000 (21:55 -0300)]
case/doit: update for runs #12 to #14

2 years agocase/README, top-paint-mask.png, bot-paint-mask.png: describe painting (WIP)
Werner Almesberger [Mon, 26 Jan 2015 00:54:07 +0000 (21:54 -0300)]
case/README, top-paint-mask.png, bot-paint-mask.png: describe painting (WIP)

2 years agosim/sim.c, subst.c; move miscellaneous substitute functions to their own file
Werner Almesberger [Mon, 26 Jan 2015 00:03:37 +0000 (21:03 -0300)]
sim/sim.c, subst.c; move miscellaneous substitute functions to their own file

... and add missing devcfg.h include to sim.c

2 years agofw/ui/ui_login.c: add direct access to setup while no code has been entered
Werner Almesberger [Sun, 25 Jan 2015 23:52:30 +0000 (20:52 -0300)]
fw/ui/ui_login.c: add direct access to setup while no code has been entered

2 years agosim/: catch up with uses of devcfg
Werner Almesberger [Sun, 25 Jan 2015 05:37:49 +0000 (02:37 -0300)]
sim/: catch up with uses of devcfg

2 years agofw/: add board name (field "name") to devcfg system
Werner Almesberger [Sun, 25 Jan 2015 05:35:33 +0000 (02:35 -0300)]
fw/: add board name (field "name") to devcfg system

2 years agofw/: use device configurations from fw/DEVCFG instead of hard-coding them
Werner Almesberger [Sun, 25 Jan 2015 05:30:24 +0000 (02:30 -0300)]
fw/: use device configurations from fw/DEVCFG instead of hard-coding them

2 years agofw/2014/touch.c (touch_pos): use local default if devcfg->thresh is zero
Werner Almesberger [Sun, 25 Jan 2015 05:27:24 +0000 (02:27 -0300)]
fw/2014/touch.c (touch_pos): use local default if devcfg->thresh is zero

2 years agofw/: add per-device configuration, and raise touch threshold for brd #1
Werner Almesberger [Sun, 25 Jan 2015 04:34:56 +0000 (01:34 -0300)]
fw/: add per-device configuration, and raise touch threshold for brd #1

2 years agofw/base/misc.h (ARRAY_ELEMENTS, ARRAY_END): convenience macros
Werner Almesberger [Sun, 25 Jan 2015 04:34:00 +0000 (01:34 -0300)]
fw/base/misc.h (ARRAY_ELEMENTS, ARRAY_END): convenience macros

2 years agofw/plat.c, plat.h (id_eq): always compare with own ID
Werner Almesberger [Sun, 25 Jan 2015 04:32:32 +0000 (01:32 -0300)]
fw/plat.c, plat.h (id_eq): always compare with own ID

Not much point in comparing other people's IDs ...

2 years agofw/Makefile (update): new target to wait for Anelok reboot, then run DFU
Werner Almesberger [Sun, 25 Jan 2015 04:31:18 +0000 (01:31 -0300)]
fw/Makefile (update): new target to wait for Anelok reboot, then run DFU

2 years agofw/ui/ui_setup.c (do_show_id): use %X and just one call to console_printf
Werner Almesberger [Sun, 25 Jan 2015 03:35:06 +0000 (00:35 -0300)]
fw/ui/ui_setup.c (do_show_id): use %X and just one call to console_printf

2 years agofw/base/fmt.c (vformat): also support %X (upper-case variant of %x)
Werner Almesberger [Sun, 25 Jan 2015 03:31:39 +0000 (00:31 -0300)]
fw/base/fmt.c (vformat): also support %X (upper-case variant of %x)

2 years agosim/Makefile: add ui_show
Werner Almesberger [Sun, 25 Jan 2015 03:27:04 +0000 (00:27 -0300)]
sim/Makefile: add ui_show

2 years agosim/sim.c (get_id): also support ID retrieval (ID is hard-coded)
Werner Almesberger [Sun, 25 Jan 2015 03:26:35 +0000 (00:26 -0300)]
sim/sim.c (get_id): also support ID retrieval (ID is hard-coded)

2 years agofw/ui/ui_setup.c, fw/Makefile: add setup item to display the chip ID (WIP)
Werner Almesberger [Sun, 25 Jan 2015 03:24:34 +0000 (00:24 -0300)]
fw/ui/ui_setup.c, fw/Makefile: add setup item to display the chip ID (WIP)