Jared Boone
b13081696d
Simplify MessageQueue pop() usage.
2015-08-27 14:35:17 -07:00
Jared Boone
d8b3b4cb6b
Check queue empty only once when reading messages.
...
There was a second is_empty() call hidden in the pop() call, so the while(condition) was redundant.
2015-08-27 14:27:29 -07:00
Jared Boone
5d9079f87f
Stop streaming when changing baseband configuration.
...
Without, the baseband would get confused.
2015-08-27 14:07:15 -07:00
Jared Boone
e751e10e45
Add wideband spectrum processor.
2015-08-27 13:57:31 -07:00
Jared Boone
23ac04ad56
Make channel spectrum members protected, not private.
2015-08-27 13:51:55 -07:00
Jared Boone
c7907e948c
Extract FSKProcessor into separate files.
2015-08-27 13:31:39 -07:00
Jared Boone
ffe829cf67
Extract WidebandFMAudio into separate files.
2015-08-27 13:19:34 -07:00
Jared Boone
7c5db55f8f
Extract NarrowbandFMAudio into separate files.
2015-08-27 13:14:45 -07:00
Jared Boone
e246ea2c39
Extract NarrowbandAMAudio class into separate files.
2015-08-27 13:07:07 -07:00
Jared Boone
6bf61cbe88
Extract BasebandProcessor into separate files.
2015-08-27 11:11:08 -07:00
Jared Boone
b0e9afe26c
Add missing #includes.
2015-08-27 11:10:44 -07:00
Jared Boone
04d05368c7
Push static variables and spectrum calc into BasebandProcessor.
2015-08-27 10:48:29 -07:00
Jared Boone
de0777f476
Extract FMSquelch into separate files.
2015-08-27 09:59:03 -07:00
Jared Boone
b904971ef2
Extract IIR filter configurations into separate file.
2015-08-27 09:58:37 -07:00
Jared Boone
c92bf12fbd
Extract ChannelDecimator into separate files.
2015-08-27 09:49:14 -07:00
Jared Boone
035ec84f04
Wrap MessageQueue.push() with mutex.
...
This addresses issue #61 , occasional FIFO/data corruption. With the mutex, any thread on one core can write to the FIFO. But still, only one thread on one core should read from the FIFO.
2015-08-26 14:18:03 -07:00
Jared Boone
7937ea7327
Enable DMB instruction at end of FIFO data copy.
...
Can't hurt to make sure FIFO and buffer state are flushed before returning to caller...
2015-08-26 14:13:51 -07:00
Jared Boone
4974774f82
Simplify PLL math when correcting for PPM.
2015-08-25 17:56:03 -07:00
Jared Boone
98773cb62a
Make GIT_REVISION value available within code.
...
Addresses issue #59 .
No idea what it'll do if the commit is also tagged as a release...
2015-08-25 16:33:52 -07:00
Jared Boone
4fe145b61d
Remove application kludge to strip DFU of header.
...
Strip the header in in the Python SPI image generator, instead.
2015-08-25 15:11:22 -07:00
Jared Boone
f7ced7a823
Support Python 3.x in make_spi_image.py.
2015-08-25 14:56:50 -07:00
Jared Boone
dfe0bd7366
Generate SPI flash image with Python, not dd/cat/head.
...
Addresses issue #42 .
Windows users now stand a chance of being able to build an image, and all these zero-byte HackRF binary issues should go away.
2015-08-25 14:30:38 -07:00
Furrtek
282662e958
Update README.md
2015-08-25 00:14:03 +02:00
Jared Boone
8f326e2d8e
Use PPB correction to adjust clock generator XTAL PLLA frequency.
...
Addresses issue #40 .
2015-08-24 12:11:33 -07:00
Jared Boone
fe7dcdc613
Function to adjust clock generator XTAL PLL frequency.
...
Needed to switch PLLA to operate in fractional mode.
2015-08-24 12:09:11 -07:00
furrtek
8f815a3b39
Integerized the waveform table
2015-08-24 05:16:55 +02:00
furrtek
8e0210f944
Savestate ! RDS (only PSN) tx
2015-08-23 05:08:38 +02:00
Jared Boone
3a96c04aa7
Implement, use configuration for FM demod deviation.
2015-08-21 09:19:08 -07:00
Jared Boone
fa275156ed
Move FSKPacketMessage to stack.
2015-08-21 09:18:21 -07:00
Jared Boone
589cb47cc6
Move M4 shutdown() next to init().
2015-08-20 20:40:46 -07:00
Jared Boone
672284080b
Extract M4 IPC IRQ code into separate file.
2015-08-20 20:39:08 -07:00
Jared Boone
11561659b4
Reset the M0 after the M4 is running HackRF firmware.
2015-08-20 20:26:36 -07:00
Jared Boone
690c3c98db
Add Shutdown message, plumbing to send and handle.
2015-08-20 18:03:49 -07:00
Jared Boone
15791e345d
Make baseband event loop methods private.
2015-08-20 17:57:59 -07:00
Jared Boone
2efbd337bd
Provide a way to exit application event loop.
2015-08-20 17:56:47 -07:00
Jared Boone
9742a058e9
Move event loop into dispatcher, provide a way to exit.
2015-08-20 17:56:19 -07:00
Jared Boone
5978c99c31
Add API to stop HAL SysTick counter.
2015-08-20 17:51:07 -07:00
Jared Boone
bd791a8512
Remove code replaced by memory_map.hpp.
2015-08-20 17:50:20 -07:00
Jared Boone
4b7780f5c6
Move _KiB and _MiB user-defined literals to utility.hpp.
...
Where I put all the stuff I don't know where to put.
2015-08-20 17:15:51 -07:00
Jared Boone
1c3e45917c
Rework to make use of declared memory map regions.
2015-08-20 17:11:08 -07:00
Jared Boone
05690b20ed
Created memory_map header.
...
Knowledge of memory map will be consolidated here.
2015-08-20 17:09:11 -07:00
Jared Boone
e9c47ff91a
Remove M0 ldscript NVRAM region.
...
I misunderstood the documentation. It's not NVRAM (backed up by VBAT), it just survives a deeper core sleep than other RAM does.
2015-08-20 16:03:14 -07:00
Jared Boone
52e8093618
Generalize FIFO to specify FIFO size as 2^K.
...
Configure baseband queue to be larger (4K) than application queue (2K).
2015-08-20 15:59:25 -07:00
Jared Boone
4126f1ab1f
Change IPC to exchange data, not pointers.
2015-08-20 13:13:12 -07:00
Jared Boone
f99016d78f
Tweak cast to C++ style.
2015-08-15 15:40:55 -07:00
Jared Boone
d7c5da73f4
Merge pull request #54 from argilo/fix-conversion-warning
...
Fix a narrowing conversion warning.
2015-08-15 15:35:52 -07:00
Clayton Smith
25c2e612c0
Fix a narrowing conversion warning.
2015-08-15 17:56:30 -04:00
Jared Boone
f2cabadf60
Review application initialization order.
...
Group related things together.
2015-08-14 22:28:28 -07:00
Jared Boone
49b91d9c5d
Move event loop into EventDispatcher.
2015-08-14 22:01:20 -07:00
Jared Boone
d5ebb9ef1e
Remove more dead code and comments.
2015-08-14 21:58:54 -07:00