sm1000_main: Add new menu system.
authorsjlongland <sjlongland@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 24 Sep 2015 08:12:25 +0000 (08:12 +0000)
committersjlongland <sjlongland@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 24 Sep 2015 08:12:25 +0000 (08:12 +0000)
commit312ba9909cc736a00641f5afc01e3b97522c8e0d
tree05120b47651597067e80abb5ae6df324b1e842e9
parent40a55d09c628d0b83685ad388bcfa13e5a387d7c
sm1000_main: Add new menu system.

This is a first attempt at a proper UI for the SM1000.  The SELECT and
BACK buttons now have two functions.

When the device powers on, the SELECT/BACK buttons cycle between the
operating modes when pressed momentarily.

Hold down SELECT and the POWER LED starts flashing, now you are in MENU
mode.  SELECT/BACK now move between the menu items, holding down SELECT
chooses an item, and holding down BACK backs out without making a
change.

The menu structure at the moment is as follows:

-> Root menu:
|---> "MODE": Operating mode
| |---> "ANA":  Analogue mode
| |---> "1600": FreeDV 1600
| '---> "TONE": Test tone
|
'---> "UI": User interface options
|---> "FREQ": Morse frequency
| 50-2000 Hz in 50Hz steps
|---> "WPM": Morse send speed (PARIS standard)
| 5-60 WPM in 5 WPM steps
'---> "VOL": Menu volume
1-15 units.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2370 01035d8c-6547-0410-b346-abe4f91aad63
codec2-dev/stm32/src/sm1000_main.c