freetel-svn-tracking.git
8 years agoinitial sm2000 repo
drowe67 [Thu, 22 Oct 2015 08:56:19 +0000 (08:56 +0000)]
initial sm2000 repo

git-svn-id: https://svn.code.sf.net/p/freetel/code@2465 01035d8c-6547-0410-b346-abe4f91aad63

8 years agooops, undo previous mv
drowe67 [Thu, 22 Oct 2015 08:55:42 +0000 (08:55 +0000)]
oops, undo previous mv

git-svn-id: https://svn.code.sf.net/p/freetel/code@2464 01035d8c-6547-0410-b346-abe4f91aad63

8 years agoSetting Up SM2000 repo
drowe67 [Thu, 22 Oct 2015 08:54:17 +0000 (08:54 +0000)]
Setting Up SM2000 repo

git-svn-id: https://svn.code.sf.net/p/freetel/code@2463 01035d8c-6547-0410-b346-abe4f91aad63

8 years agoinitial sm2000 checkin
drowe67 [Thu, 22 Oct 2015 08:52:38 +0000 (08:52 +0000)]
initial sm2000 checkin

git-svn-id: https://svn.code.sf.net/p/freetel/code@2462 01035d8c-6547-0410-b346-abe4f91aad63

8 years agoCorrected dumb mistake in fsk4 bit-symbol mapping
baobrien [Wed, 21 Oct 2015 01:48:32 +0000 (01:48 +0000)]
Corrected dumb mistake in fsk4 bit-symbol mapping

git-svn-id: https://svn.code.sf.net/p/freetel/code@2461 01035d8c-6547-0410-b346-abe4f91aad63

8 years agoFSK4 symbol demapping improved by un-doing my other improvement
baobrien [Wed, 21 Oct 2015 00:53:56 +0000 (00:53 +0000)]
FSK4 symbol demapping improved by un-doing my other improvement

git-svn-id: https://svn.code.sf.net/p/freetel/code@2460 01035d8c-6547-0410-b346-abe4f91aad63

8 years agoall combos working and script to run thru them, plus comments
drowe67 [Tue, 20 Oct 2015 22:20:52 +0000 (22:20 +0000)]
all combos working and script to run thru them, plus comments

git-svn-id: https://svn.code.sf.net/p/freetel/code@2459 01035d8c-6547-0410-b346-abe4f91aad63

8 years agostarting to get sensible results for 4FSK, still early days
drowe67 [Tue, 20 Oct 2015 08:44:47 +0000 (08:44 +0000)]
starting to get sensible results for 4FSK, still early days

git-svn-id: https://svn.code.sf.net/p/freetel/code@2458 01035d8c-6547-0410-b346-abe4f91aad63

8 years agofurther fsk4 modularization
baobrien [Tue, 20 Oct 2015 00:06:54 +0000 (00:06 +0000)]
further fsk4 modularization

git-svn-id: https://svn.code.sf.net/p/freetel/code@2457 01035d8c-6547-0410-b346-abe4f91aad63

8 years agofsk4 clean up and modularization
baobrien [Mon, 19 Oct 2015 22:34:22 +0000 (22:34 +0000)]
fsk4 clean up and modularization

git-svn-id: https://svn.code.sf.net/p/freetel/code@2456 01035d8c-6547-0410-b346-abe4f91aad63

8 years agoFurther fsk4 work
baobrien [Mon, 19 Oct 2015 21:27:00 +0000 (21:27 +0000)]
Further fsk4 work

git-svn-id: https://svn.code.sf.net/p/freetel/code@2455 01035d8c-6547-0410-b346-abe4f91aad63

8 years agoadded a few notes and some questions
drowe67 [Mon, 19 Oct 2015 19:29:46 +0000 (19:29 +0000)]
added a few notes and some questions

git-svn-id: https://svn.code.sf.net/p/freetel/code@2454 01035d8c-6547-0410-b346-abe4f91aad63

8 years agoideal mFSK sim for m=4 working and getting sensible results
drowe67 [Mon, 19 Oct 2015 07:37:34 +0000 (07:37 +0000)]
ideal mFSK sim for m=4 working and getting sensible results

git-svn-id: https://svn.code.sf.net/p/freetel/code@2453 01035d8c-6547-0410-b346-abe4f91aad63

8 years agotwo modems running, 4.7dB between them
drowe67 [Mon, 19 Oct 2015 00:06:12 +0000 (00:06 +0000)]
two modems running, 4.7dB between them

git-svn-id: https://svn.code.sf.net/p/freetel/code@2452 01035d8c-6547-0410-b346-abe4f91aad63

8 years agoinitial BER results for manchester encoded modem, looking gd
drowe67 [Sat, 17 Oct 2015 04:02:48 +0000 (04:02 +0000)]
initial BER results for manchester encoded modem, looking gd

git-svn-id: https://svn.code.sf.net/p/freetel/code@2451 01035d8c-6547-0410-b346-abe4f91aad63

8 years agonotes and tweak to bit flipping
drowe67 [Fri, 16 Oct 2015 07:17:20 +0000 (07:17 +0000)]
notes and tweak to bit flipping

git-svn-id: https://svn.code.sf.net/p/freetel/code@2450 01035d8c-6547-0410-b346-abe4f91aad63

8 years agoexploring waveforms that can pass through legacy radios
drowe67 [Fri, 16 Oct 2015 03:10:48 +0000 (03:10 +0000)]
exploring waveforms that can pass through legacy radios

git-svn-id: https://svn.code.sf.net/p/freetel/code@2449 01035d8c-6547-0410-b346-abe4f91aad63

8 years agofixed bug in SD error flipping on streaming version
drowe67 [Thu, 15 Oct 2015 22:14:07 +0000 (22:14 +0000)]
fixed bug in SD error flipping on streaming version

git-svn-id: https://svn.code.sf.net/p/freetel/code@2448 01035d8c-6547-0410-b346-abe4f91aad63

8 years agoSD error flipping working on streaming version
drowe67 [Thu, 15 Oct 2015 21:26:48 +0000 (21:26 +0000)]
SD error flipping working on streaming version

git-svn-id: https://svn.code.sf.net/p/freetel/code@2447 01035d8c-6547-0410-b346-abe4f91aad63

8 years agofirst pass at error correction using bit slipping of weakest bits
drowe67 [Thu, 15 Oct 2015 20:36:55 +0000 (20:36 +0000)]
first pass at error correction using bit slipping of weakest bits

git-svn-id: https://svn.code.sf.net/p/freetel/code@2446 01035d8c-6547-0410-b346-abe4f91aad63

8 years agoprotect against boundary condition
drowe67 [Thu, 15 Oct 2015 07:30:19 +0000 (07:30 +0000)]
protect against boundary condition

git-svn-id: https://svn.code.sf.net/p/freetel/code@2445 01035d8c-6547-0410-b346-abe4f91aad63

8 years agofirst pass at writing to log file and telling foxtrotgps to plot track
drowe67 [Thu, 15 Oct 2015 05:00:47 +0000 (05:00 +0000)]
first pass at writing to log file and telling foxtrotgps to plot track

git-svn-id: https://svn.code.sf.net/p/freetel/code@2444 01035d8c-6547-0410-b346-abe4f91aad63

8 years agofixed phase discontnuity in simulated fsk tx
drowe67 [Thu, 15 Oct 2015 03:32:43 +0000 (03:32 +0000)]
fixed phase discontnuity in simulated fsk tx

git-svn-id: https://svn.code.sf.net/p/freetel/code@2443 01035d8c-6547-0410-b346-abe4f91aad63

8 years agofixed phase discontnuity in simulated fsk tx
drowe67 [Thu, 15 Oct 2015 02:25:00 +0000 (02:25 +0000)]
fixed phase discontnuity in simulated fsk tx

git-svn-id: https://svn.code.sf.net/p/freetel/code@2442 01035d8c-6547-0410-b346-abe4f91aad63

8 years agosome refactoring of ascii processing functions
drowe67 [Thu, 15 Oct 2015 02:05:56 +0000 (02:05 +0000)]
some refactoring of ascii processing functions

git-svn-id: https://svn.code.sf.net/p/freetel/code@2441 01035d8c-6547-0410-b346-abe4f91aad63

8 years agoadded clock offset ppm measurement software
drowe67 [Wed, 14 Oct 2015 01:53:47 +0000 (01:53 +0000)]
added clock offset ppm measurement software

git-svn-id: https://svn.code.sf.net/p/freetel/code@2440 01035d8c-6547-0410-b346-abe4f91aad63

8 years agoA little work towards FSK4 fine timing estimation
baobrien [Tue, 13 Oct 2015 17:49:19 +0000 (17:49 +0000)]
A little work towards FSK4 fine timing estimation

git-svn-id: https://svn.code.sf.net/p/freetel/code@2439 01035d8c-6547-0410-b346-abe4f91aad63

8 years agoEb/No and SNR measurement on streaming version
drowe67 [Tue, 13 Oct 2015 09:23:58 +0000 (09:23 +0000)]
Eb/No and SNR measurement on streaming version

git-svn-id: https://svn.code.sf.net/p/freetel/code@2438 01035d8c-6547-0410-b346-abe4f91aad63

8 years agoanother go at Eb/No estimation
drowe67 [Tue, 13 Oct 2015 09:13:36 +0000 (09:13 +0000)]
another go at Eb/No estimation

git-svn-id: https://svn.code.sf.net/p/freetel/code@2437 01035d8c-6547-0410-b346-abe4f91aad63

8 years agofile input example
drowe67 [Tue, 13 Oct 2015 07:37:17 +0000 (07:37 +0000)]
file input example

git-svn-id: https://svn.code.sf.net/p/freetel/code@2436 01035d8c-6547-0410-b346-abe4f91aad63

8 years agoadded Eb/No estimate
drowe67 [Tue, 13 Oct 2015 07:36:30 +0000 (07:36 +0000)]
added Eb/No estimate

git-svn-id: https://svn.code.sf.net/p/freetel/code@2435 01035d8c-6547-0410-b346-abe4f91aad63

8 years agostreaming working OK, some run time diagnostics
drowe67 [Tue, 13 Oct 2015 05:04:44 +0000 (05:04 +0000)]
streaming working OK, some run time diagnostics

git-svn-id: https://svn.code.sf.net/p/freetel/code@2434 01035d8c-6547-0410-b346-abe4f91aad63

8 years agofirst pass at streaming version, works oK from stroed file
drowe67 [Tue, 13 Oct 2015 02:23:15 +0000 (02:23 +0000)]
first pass at streaming version, works oK from stroed file

git-svn-id: https://svn.code.sf.net/p/freetel/code@2433 01035d8c-6547-0410-b346-abe4f91aad63

8 years agofading and freq drift model working OK
drowe67 [Tue, 13 Oct 2015 01:45:57 +0000 (01:45 +0000)]
fading and freq drift model working OK

git-svn-id: https://svn.code.sf.net/p/freetel/code@2432 01035d8c-6547-0410-b346-abe4f91aad63

8 years agodecoding multiple packets
drowe67 [Mon, 12 Oct 2015 08:27:20 +0000 (08:27 +0000)]
decoding multiple packets

git-svn-id: https://svn.code.sf.net/p/freetel/code@2431 01035d8c-6547-0410-b346-abe4f91aad63

8 years agofirst packet from Horus payload demodulated and printed out yayyy
drowe67 [Mon, 12 Oct 2015 03:41:03 +0000 (03:41 +0000)]
first packet from Horus payload demodulated and printed out yayyy

git-svn-id: https://svn.code.sf.net/p/freetel/code@2430 01035d8c-6547-0410-b346-abe4f91aad63

8 years agofine timing OK at +/- 1000pm Eb/No=10dB, getting bits from baloon signal OK, now...
drowe67 [Mon, 12 Oct 2015 00:00:10 +0000 (00:00 +0000)]
fine timing OK at +/- 1000pm Eb/No=10dB, getting bits from baloon signal OK, now for frame sync

git-svn-id: https://svn.code.sf.net/p/freetel/code@2429 01035d8c-6547-0410-b346-abe4f91aad63

8 years agosome more work on fine timing
drowe67 [Sun, 11 Oct 2015 23:22:05 +0000 (23:22 +0000)]
some more work on fine timing

git-svn-id: https://svn.code.sf.net/p/freetel/code@2428 01035d8c-6547-0410-b346-abe4f91aad63

8 years agofine timing estimate hanging on for a range of static timing offsets
drowe67 [Sun, 11 Oct 2015 00:24:26 +0000 (00:24 +0000)]
fine timing estimate hanging on for a range of static timing offsets

git-svn-id: https://svn.code.sf.net/p/freetel/code@2427 01035d8c-6547-0410-b346-abe4f91aad63

8 years agoA little improvement to 4FSK symbol resolution
baobrien [Sat, 10 Oct 2015 18:08:24 +0000 (18:08 +0000)]
A little improvement to 4FSK symbol resolution

git-svn-id: https://svn.code.sf.net/p/freetel/code@2426 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosm1000_main: First stab at a time-out timer.
sjlongland [Tue, 6 Oct 2015 10:03:57 +0000 (10:03 +0000)]
sm1000_main: First stab at a time-out timer.

This needs calibration, but basically it cuts transmission after a fixed
period, giving warning beeps in the time just prior to timeout.

For now it is disabled by default, and the timing for now is way off.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2425 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosounds: Add a tune to play for when the time-out is reached.
sjlongland [Tue, 6 Oct 2015 10:03:55 +0000 (10:03 +0000)]
sounds: Add a tune to play for when the time-out is reached.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2424 01035d8c-6547-0410-b346-abe4f91aad63

9 years agotot: Time-out timer module
sjlongland [Tue, 6 Oct 2015 10:03:52 +0000 (10:03 +0000)]
tot: Time-out timer module

This is a crude time-out timer, designed to be ticked along by the
systick timer then polled in the main loop.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2423 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosounds: Make structures const.
sjlongland [Tue, 6 Oct 2015 10:03:47 +0000 (10:03 +0000)]
sounds: Make structures const.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2422 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoCommit draft instructions for branching and tagging.
hobbes1069 [Mon, 5 Oct 2015 14:14:10 +0000 (14:14 +0000)]
Commit draft instructions for branching and tagging.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2421 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoRemove failed attempt to use prebuilt wxWidgets binaries from svn.
hobbes1069 [Mon, 5 Oct 2015 13:52:32 +0000 (13:52 +0000)]
Remove failed attempt to use prebuilt wxWidgets binaries from svn.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2420 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoA bit more messing with and clean up of fsk4.m
baobrien [Mon, 5 Oct 2015 00:26:11 +0000 (00:26 +0000)]
A bit more messing with and clean up of fsk4.m

git-svn-id: https://svn.code.sf.net/p/freetel/code@2419 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoFIX SVN CHANGE LOG RGB 10/04/15
rickb44 [Sun, 4 Oct 2015 19:19:14 +0000 (19:19 +0000)]
FIX SVN CHANGE LOG RGB 10/04/15

git-svn-id: https://svn.code.sf.net/p/freetel/code@2418 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoFIX COMMIT PROBLEM RGB 10-04-5
rickb44 [Sun, 4 Oct 2015 19:16:38 +0000 (19:16 +0000)]
FIX COMMIT PROBLEM RGB 10-04-5

git-svn-id: https://svn.code.sf.net/p/freetel/code@2417 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoCOMMIT TO SVN
rickb44 [Sun, 4 Oct 2015 19:10:11 +0000 (19:10 +0000)]
COMMIT TO SVN

git-svn-id: https://svn.code.sf.net/p/freetel/code@2416 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoSM1000-F RELEASE. MFG & GERBER FILES FOR PRODUCTION. RGB 10-04-15
rickb44 [Sun, 4 Oct 2015 19:07:51 +0000 (19:07 +0000)]
SM1000-F RELEASE. MFG & GERBER FILES FOR PRODUCTION. RGB 10-04-15

git-svn-id: https://svn.code.sf.net/p/freetel/code@2415 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoADD PDFs of Schematics and board layers L1, L2, L3 & L4 for reference only. RGB 10...
rickb44 [Sun, 4 Oct 2015 02:15:15 +0000 (02:15 +0000)]
ADD PDFs of Schematics and board layers L1, L2, L3 & L4 for reference only. RGB 10/03/15

git-svn-id: https://svn.code.sf.net/p/freetel/code@2414 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoFix install location for Win64.
hobbes1069 [Sat, 3 Oct 2015 02:57:17 +0000 (02:57 +0000)]
Fix install location for Win64.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2413 01035d8c-6547-0410-b346-abe4f91aad63

9 years agocodec2 debian rules: make executable
sjlongland [Fri, 2 Oct 2015 23:04:08 +0000 (23:04 +0000)]
codec2 debian rules: make executable

git-svn-id: https://svn.code.sf.net/p/freetel/code@2412 01035d8c-6547-0410-b346-abe4f91aad63

9 years agofreedv debian rules: Fix indentation, permissions.
sjlongland [Fri, 2 Oct 2015 23:02:40 +0000 (23:02 +0000)]
freedv debian rules: Fix indentation, permissions.

Should be executable, and who-TF took out the tabs?!  Makefiles have
tabs.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2411 01035d8c-6547-0410-b346-abe4f91aad63

9 years agofreedv: debian control: Rename source package to fdmdv2
sjlongland [Fri, 2 Oct 2015 22:49:25 +0000 (22:49 +0000)]
freedv: debian control: Rename source package to fdmdv2

This is to maintain compatibility with the older 'fdmdv2' package in
Debian.  Not calling it this can lead to apt getting confused.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2410 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoUpdate Schematic & board files. Add PDF of schematic for review. RGB
rickb44 [Mon, 28 Sep 2015 17:33:08 +0000 (17:33 +0000)]
Update Schematic & board files. Add PDF of schematic for review. RGB

git-svn-id: https://svn.code.sf.net/p/freetel/code@2409 01035d8c-6547-0410-b346-abe4f91aad63

9 years agostm32_flash: Add BKPSRAM section.
sjlongland [Mon, 28 Sep 2015 10:43:36 +0000 (10:43 +0000)]
stm32_flash: Add BKPSRAM section.

This is taken from the datasheet.  We can place variables in there by
declaring them in the C code like this:

/*!
 * User preferences
 */
static struct prefs_t {
    /*! Serial number */
    uint64_t serial;
    /*! Menu frequency */
    uint16_t menu_freq;
    /*! Menu speed */
    uint8_t menu_speed;
    /*! Menu volume (attenuation) */
    uint8_t menu_vol;
    /*! Default operating mode */
    uint8_t op_mode;
} prefs __attribute__((section(".bkpsram")));

git-svn-id: https://svn.code.sf.net/p/freetel/code@2408 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoFurther 4FSK DMR work
baobrien [Mon, 28 Sep 2015 03:28:56 +0000 (03:28 +0000)]
Further 4FSK DMR work

git-svn-id: https://svn.code.sf.net/p/freetel/code@2407 01035d8c-6547-0410-b346-abe4f91aad63

9 years agostm32f4_vrom: Correct sector size.
sjlongland [Sun, 27 Sep 2015 06:41:19 +0000 (06:41 +0000)]
stm32f4_vrom: Correct sector size.

The sectors are 16kB, not 64kB.  (Yes, brain fart moment yesterday.)

git-svn-id: https://svn.code.sf.net/p/freetel/code@2406 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosm1000_main: Store two copies of the settings.
sjlongland [Sun, 27 Sep 2015 04:23:30 +0000 (04:23 +0000)]
sm1000_main: Store two copies of the settings.

We keep a rolling serial number (64-bit, so probably flash will wear out
before rollover happens) that is incremented on each write, and we write
to the oldest image in flash.

On load, we pick the newest one that's valid.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2405 01035d8c-6547-0410-b346-abe4f91aad63

9 years agofsk4 ber curves work now
baobrien [Sun, 27 Sep 2015 02:42:58 +0000 (02:42 +0000)]
fsk4 ber curves work now

git-svn-id: https://svn.code.sf.net/p/freetel/code@2404 01035d8c-6547-0410-b346-abe4f91aad63

9 years agofsk4.m now has BER curve tracer
baobrien [Sun, 27 Sep 2015 01:22:21 +0000 (01:22 +0000)]
fsk4.m now has BER curve tracer

git-svn-id: https://svn.code.sf.net/p/freetel/code@2403 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosm1000_main: Enable CRC peripheral.
sjlongland [Sun, 27 Sep 2015 01:07:51 +0000 (01:07 +0000)]
sm1000_main: Enable CRC peripheral.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2402 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosm1000_main: Don't save settings unless something changed.
sjlongland [Sun, 27 Sep 2015 00:44:53 +0000 (00:44 +0000)]
sm1000_main: Don't save settings unless something changed.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2401 01035d8c-6547-0410-b346-abe4f91aad63

9 years agostm32f4_vrom: Do checksum on copy of block.
sjlongland [Sun, 27 Sep 2015 00:03:20 +0000 (00:03 +0000)]
stm32f4_vrom: Do checksum on copy of block.

Store a temporary copy of the block on the stack to do our checksumming
on.  This allows us to zero out the CRC32 field.

(There is a way to include the CRC32 field in the checksum itself, but
haven't figured out the mathematics needed yet.)

git-svn-id: https://svn.code.sf.net/p/freetel/code@2400 01035d8c-6547-0410-b346-abe4f91aad63

9 years agostm32f4_vrom: Adjust erase cycle counter.
sjlongland [Sat, 26 Sep 2015 23:53:32 +0000 (23:53 +0000)]
stm32f4_vrom: Adjust erase cycle counter.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2399 01035d8c-6547-0410-b346-abe4f91aad63

9 years agostm32f4_vrom: Make structures "packed"
sjlongland [Sat, 26 Sep 2015 23:53:30 +0000 (23:53 +0000)]
stm32f4_vrom: Make structures "packed"

git-svn-id: https://svn.code.sf.net/p/freetel/code@2398 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosm1000_main: Clear DAC buffer after playback.
sjlongland [Sat, 26 Sep 2015 23:53:27 +0000 (23:53 +0000)]
sm1000_main: Clear DAC buffer after playback.

This seems to cure a "hanging note" issue when navigating menus.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2397 01035d8c-6547-0410-b346-abe4f91aad63

9 years agostm32f4_vrom: Fixes to writing out data.
sjlongland [Sat, 26 Sep 2015 13:59:29 +0000 (13:59 +0000)]
stm32f4_vrom: Fixes to writing out data.

Numerous logic errors fixed.  This time we succesfully write out blocks
and mark them as being used.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2396 01035d8c-6547-0410-b346-abe4f91aad63

9 years agostm32_flash: Fill EEPROM section with 0xff.
sjlongland [Sat, 26 Sep 2015 11:45:28 +0000 (11:45 +0000)]
stm32_flash: Fill EEPROM section with 0xff.

Filling it with 0x00 (the default) makes the virtual EEPROM code think
the sectors are depleted.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2395 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosm1000_main: Add some logic involving the virtual EEPROM.
sjlongland [Sat, 26 Sep 2015 11:45:25 +0000 (11:45 +0000)]
sm1000_main: Add some logic involving the virtual EEPROM.

Not working yet.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2394 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoMakefile: Add stm32f4_vrom to sm1000 target
sjlongland [Sat, 26 Sep 2015 11:45:20 +0000 (11:45 +0000)]
Makefile: Add stm32f4_vrom to sm1000 target

git-svn-id: https://svn.code.sf.net/p/freetel/code@2393 01035d8c-6547-0410-b346-abe4f91aad63

9 years agostm32f4_vrom: Virtual EEPROM driver for STM32F4.
sjlongland [Sat, 26 Sep 2015 10:32:45 +0000 (10:32 +0000)]
stm32f4_vrom: Virtual EEPROM driver for STM32F4.

This is a work-in-progress driver for talking to the flash on the
STM32F4.  Untested for now.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2392 01035d8c-6547-0410-b346-abe4f91aad63

9 years agotone: Fix copyright notice
sjlongland [Sat, 26 Sep 2015 10:32:41 +0000 (10:32 +0000)]
tone: Fix copyright notice

git-svn-id: https://svn.code.sf.net/p/freetel/code@2391 01035d8c-6547-0410-b346-abe4f91aad63

9 years agostm32_flash: Add a section for EEPROM data.
sjlongland [Sat, 26 Sep 2015 02:57:32 +0000 (02:57 +0000)]
stm32_flash: Add a section for EEPROM data.

This allocates a few sectors of flash for the following purposes:
- Sector 0: ISR vector data.  (This gets mapped to address 0; so we have
  no choice, the ISR data *must* reside here.)
- Sector 1..3: Virtual EEPROM.  We'll stash our configuration parameters
  here.  We have 48kB available.
- Sector 4.. onwards: Program data

Credit: clive1, ST e2e Communities.
https://my.st.com/public/STe2ecommunities/mcu/_layouts/st/getshorturl.aspx?List={697285D7-A9CA-445D-B16C-F23BF0E3B1A3}&ItemId=24079

git-svn-id: https://svn.code.sf.net/p/freetel/code@2390 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosm1000_main: Forbid entering menu with PTT asserted.
sjlongland [Sat, 26 Sep 2015 01:32:22 +0000 (01:32 +0000)]
sm1000_main: Forbid entering menu with PTT asserted.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2389 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosm1000_main: Ensure sane output states on entering menu.
sjlongland [Sat, 26 Sep 2015 01:32:19 +0000 (01:32 +0000)]
sm1000_main: Ensure sane output states on entering menu.

Particularly, ensure PTT is not asserted.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2388 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosm1000_main: Software-mix audio tones.
sjlongland [Sat, 26 Sep 2015 00:51:36 +0000 (00:51 +0000)]
sm1000_main: Software-mix audio tones.

Mix the received audio with menu audio tones so that things like mode
announcements don't interrupt the received audio.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2387 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosm1000_main: Fix logic error exiting 'VOL'
sjlongland [Sat, 26 Sep 2015 00:05:55 +0000 (00:05 +0000)]
sm1000_main: Fix logic error exiting 'VOL'

Seems we were setting the dit time on the morse player instead of
restoring the old volume setting.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2386 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosm1000_main: Fix indentation
sjlongland [Sat, 26 Sep 2015 00:05:53 +0000 (00:05 +0000)]
sm1000_main: Fix indentation

git-svn-id: https://svn.code.sf.net/p/freetel/code@2385 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosm1000_main: Fix announcement of volume level
sjlongland [Sat, 26 Sep 2015 00:05:50 +0000 (00:05 +0000)]
sm1000_main: Fix announcement of volume level

git-svn-id: https://svn.code.sf.net/p/freetel/code@2384 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosm1000_main: Tweak default menu volume
sjlongland [Sat, 26 Sep 2015 00:05:47 +0000 (00:05 +0000)]
sm1000_main: Tweak default menu volume

7 is a bit quiet, set attenuation to 2 instead (volume == 13).

git-svn-id: https://svn.code.sf.net/p/freetel/code@2383 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosm1000_main: Wait for BACK button release after menu exit.
sjlongland [Fri, 25 Sep 2015 21:26:43 +0000 (21:26 +0000)]
sm1000_main: Wait for BACK button release after menu exit.

Otherwise we inadvertantly switch modes unexpectedly.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2382 01035d8c-6547-0410-b346-abe4f91aad63

9 years agotone: Exploit sine-wave symmetry to save space.
sjlongland [Fri, 25 Sep 2015 13:13:54 +0000 (13:13 +0000)]
tone: Exploit sine-wave symmetry to save space.

The sine wave basically can be divided into four quadrants, 0→0.5pi,
0.5pi→pi, pi→1.5pi and 1.5pi→2pi.  If we call these Q1, Q2, Q3 and Q4,
we can see:

- Q2 is basically Q1 in reverse
- Q3 is Q1 negated
- Q4 is Q2 negated

We can therefore exploit this to store ¼ of the waveform.  We do some if
statement trickery to stitch the partial waveforms together.  End result
is we've now quadrupled the definition of our sine wave at minimal
code-size cost.

CPU wise is a wee bit more expensive, but still a lot better than
actually calculating sine with a math library!

git-svn-id: https://svn.code.sf.net/p/freetel/code@2381 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoFixed fsk4.m
baobrien [Thu, 24 Sep 2015 21:36:48 +0000 (21:36 +0000)]
Fixed fsk4.m

git-svn-id: https://svn.code.sf.net/p/freetel/code@2380 01035d8c-6547-0410-b346-abe4f91aad63

9 years agorefactored a little and wrote Octave function to generate files of modulated bits
drowe67 [Thu, 24 Sep 2015 21:11:42 +0000 (21:11 +0000)]
refactored a little and wrote Octave function to generate files of modulated bits

git-svn-id: https://svn.code.sf.net/p/freetel/code@2379 01035d8c-6547-0410-b346-abe4f91aad63

9 years agofsk4.m restructured for easier testing of 4fsk variants
baobrien [Thu, 24 Sep 2015 20:23:08 +0000 (20:23 +0000)]
fsk4.m restructured for easier testing of 4fsk variants

git-svn-id: https://svn.code.sf.net/p/freetel/code@2378 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoFix BuildCodec2.cmake and add cmake module to build hamlib (not ready for production).
hobbes1069 [Thu, 24 Sep 2015 19:48:16 +0000 (19:48 +0000)]
Fix BuildCodec2.cmake and add cmake module to build hamlib (not ready for production).

git-svn-id: https://svn.code.sf.net/p/freetel/code@2377 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoBranch and tag FreeDV 1.1.
hobbes1069 [Thu, 24 Sep 2015 19:30:57 +0000 (19:30 +0000)]
Branch and tag FreeDV 1.1.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2376 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoBranch and tag codec2 0.5
hobbes1069 [Thu, 24 Sep 2015 19:03:32 +0000 (19:03 +0000)]
Branch and tag codec2 0.5

git-svn-id: https://svn.code.sf.net/p/freetel/code@2375 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoMakefile: Build profile targets with -DPROFILE
sjlongland [Thu, 24 Sep 2015 09:27:33 +0000 (09:27 +0000)]
Makefile: Build profile targets with -DPROFILE

git-svn-id: https://svn.code.sf.net/p/freetel/code@2374 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoMakefile: Fix build of fft_test.elf
sjlongland [Thu, 24 Sep 2015 09:17:54 +0000 (09:17 +0000)]
Makefile: Fix build of fft_test.elf

git-svn-id: https://svn.code.sf.net/p/freetel/code@2373 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoMakefile: Compile stm32f4_adc_tuner.o without -O3
sjlongland [Thu, 24 Sep 2015 08:21:15 +0000 (08:21 +0000)]
Makefile: Compile stm32f4_adc_tuner.o without -O3

git-svn-id: https://svn.code.sf.net/p/freetel/code@2372 01035d8c-6547-0410-b346-abe4f91aad63

9 years agoMakefile: Compile adc_sfdr_ut with -O3
sjlongland [Thu, 24 Sep 2015 08:21:06 +0000 (08:21 +0000)]
Makefile: Compile adc_sfdr_ut with -O3

git-svn-id: https://svn.code.sf.net/p/freetel/code@2371 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosm1000_main: Add new menu system.
sjlongland [Thu, 24 Sep 2015 08:12:25 +0000 (08:12 +0000)]
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

9 years agoMakefile: Add menu module to project
sjlongland [Thu, 24 Sep 2015 08:12:22 +0000 (08:12 +0000)]
Makefile: Add menu module to project

git-svn-id: https://svn.code.sf.net/p/freetel/code@2369 01035d8c-6547-0410-b346-abe4f91aad63

9 years agomenu: Heirachical callback-based menu system
sjlongland [Thu, 24 Sep 2015 08:12:19 +0000 (08:12 +0000)]
menu: Heirachical callback-based menu system

This is an event-driven menu handler that allows arbirary depth and
event handling.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2368 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosm1000_leds_switches: Tweak debounce delay
sjlongland [Thu, 24 Sep 2015 08:12:16 +0000 (08:12 +0000)]
sm1000_leds_switches: Tweak debounce delay

git-svn-id: https://svn.code.sf.net/p/freetel/code@2367 01035d8c-6547-0410-b346-abe4f91aad63

9 years agosm1000_leds_switches: Add support for toggling LEDs
sjlongland [Thu, 24 Sep 2015 08:12:13 +0000 (08:12 +0000)]
sm1000_leds_switches: Add support for toggling LEDs

git-svn-id: https://svn.code.sf.net/p/freetel/code@2366 01035d8c-6547-0410-b346-abe4f91aad63