Jared Boone
f2dd6827ea
Add Widget::parent_rect() accessor, rename member variable.
...
Some day I will settle on a convention for naming members... I think that day is near.
2016-12-06 09:28:48 -08:00
Jared Boone
3f94591083
Remove a lot of static_cast<>s involving UI structs.
...
Also starting to get religion on using unsigned integers only when I want their wrapping/modulus behavior.
2016-11-29 10:13:56 -08:00
Jared Boone
227719ff1d
Fix static_cast warning.
2016-11-28 12:05:24 -08:00
Jared Boone
e820bed097
Hide ui::Rect implementation.
2016-11-28 11:25:27 -08:00
Jared Boone
d15ace4676
Hide ui::Size implementation.
2016-11-28 10:55:45 -08:00
Jared Boone
aac2d31548
Hide ui::Point implementation.
2016-11-28 10:39:10 -08:00
Jared Boone
46b3d9d087
Disallow copy constructors/assignments.
...
For classes containing pointers/state that should not be copied.
2016-11-26 16:52:57 -08:00
Jared Boone
4eb0facacb
Add lots of value constructors.
2016-11-26 16:50:44 -08:00
Jared Boone
cd31ae86d7
Add single-arg constructor for vec2_s16.
2016-11-26 16:42:03 -08:00
Jared Boone
a33476259e
Create buffer.cpp, reduce #include dependencies and impl leakage.
2016-10-24 11:16:48 -07:00
Jared Boone
5dfb53263a
Extract BufferExchange, simplify threading.
2016-10-06 13:38:56 -07:00
Jared Boone
414dd41577
Allow modification of StreamBuffer (data values, size).
2016-10-04 09:15:19 -07:00
Jared Boone
df0fc30fda
Rect: Comment about a bad API method.
...
In retrospect, I don't like Rect + Rect = union -- it doesn't make as much sense and isn't as readable as Rect.union(Rect).
2016-09-07 22:19:30 -07:00
Jared Boone
f722497b01
Rect: operator method to offset by a Point.
2016-09-07 22:18:11 -07:00
Jared Boone
09222f0044
Widget/View: Consolidate dirty code inside Widget.
2016-09-05 15:04:28 -07:00
Jared Boone
8a69b0523e
View::add_children: Use std::list_initializer as argument.
...
Improvement in code size -- 944 bytes.
Some day I will understand C++11 well enough to do the right thing the first time.
2016-09-05 14:53:04 -07:00
Jared Boone
5d2ad9c1aa
SGPIO: Use pin constants when changing output enables.
2016-08-30 21:33:44 -07:00
Jared Boone
00c7cdf027
CPLD: Always clock SGPIO data on external clock rising edge.
2016-08-30 21:30:03 -07:00
Jared Boone
f0c4b0fc98
AIS: Doesn't use RRC filter -- use rect instead.
2016-08-29 20:47:37 -07:00
Jared Boone
e2fe4b65d9
CPLD: Set DECIM1 as input to CPLD.
...
How did DECIM work before?! Now, decimate is no longer a feature, so this doesn't really matter. But tidying it up anyway.
2016-08-23 10:30:05 -07:00
Jared Boone
f7bfde73b6
FatFs: Enable long file name support.
...
Lots of re-plumbing to make this work, including a bunch of Unicode stuff now in the binary. Bloat City, I'm sure.
TODO: FatFs using unsigned (uint16_t) for UTF16 representation is kinda inconvenient. Lots of reinterpret_cast<>().
2016-08-21 18:06:39 -07:00
Jared Boone
77016b9a40
Rename CPLD "Q_INVERT" to signal to "INVERT".
...
Don't expose detail in name about how the task is accomplished.
2016-08-21 11:35:40 -07:00
Jared Boone
b0a3f680e5
CPLD: Remove decimation feature.
2016-08-21 11:31:37 -07:00
Jared Boone
52c089c4df
SGPIO: Hi-Z data bus before setting direction pin.
...
Another tactic to avoid bus contention, however brief.
2016-08-13 16:46:02 -07:00
Jared Boone
62d2ae2336
SGPIO: Change bus direction more deliberately.
...
There may have been an instant where the CPLD and SGPIO were driving the bus simultaneously, when switching from TX to RX.
2016-08-13 16:42:39 -07:00
Jared Boone
c424bf08f3
Touch: Migrate touch calibration to persistent memory.
2016-07-27 15:30:43 -07:00
Jared Boone
82f6e7c306
Change default frequency when NVRAM is initialized.
2016-07-27 14:17:57 -07:00
Jared Boone
20bcbf511e
Move thread_base.hpp from baseband/ to common/.
...
I want to use it with M0 code as well.
2016-07-26 10:22:10 -07:00
Jared Boone
8b02e40602
Move touch ADC data collection to M0.
...
...so it continues when M4 is shut down.
It's not as pretty as using DMA, but it's far simpler, even if it involves letting the ADC run continuously and taking the last samples even if not synchronizing to the phase of the sampling of the channels.
2016-07-24 15:31:53 -07:00
Jared Boone
b3f4ea8978
Clean up SharedMemory placement new.
2016-07-24 15:27:05 -07:00
Jared Boone
49d6cda731
Move BasebandConfiguration to receiver_model.hpp.
...
That's the only place it's being used now -- it's no longer moving between cores.
2016-07-19 17:11:32 -07:00
Jared Boone
74b5571e8b
Remove baseband::start()/stop() and related message.
2016-07-19 17:06:22 -07:00
Jared Boone
4b7fa9f411
CPLD: Add XC2C64A method to init from EEPROM contents.
2016-07-18 11:31:21 -07:00
Jared Boone
4cc356f325
JTAG: Code to manage HackRF CPLD interactions.
2016-07-17 15:45:00 -07:00
Jared Boone
71c7f543c5
JTAG: Add TAP state management.
...
Not all that happy with the implementation, but it's doing the job for now.
2016-07-17 15:44:30 -07:00
Jared Boone
c0f4fbe32d
JTAG: Add GPIO definitions for HackRF CPLD.
2016-07-16 14:06:58 -07:00
Jared Boone
22143c9543
JTAG: Remove unused methods.
2016-07-13 11:02:13 -07:00
Jared Boone
18fe30136e
JTAG: Move Target interface to separate header.
2016-07-11 09:39:02 -07:00
Jared Boone
6917ffe1e3
JTAG: Clean up definition of Target interface.
2016-07-11 09:16:47 -07:00
Jared Boone
ad4a68f90a
CMake: Generate portapack_cpld_data.cpp from SVF via tool.
2016-07-05 12:45:31 -07:00
Jared Boone
3ed1d9e24a
CPLD: Method to calculate bitstream CRC32.
2016-07-05 12:06:51 -07:00
Jared Boone
df825807d6
CRC: Rearrange public methods to reduce user error.
...
If you can access process_bits() without considering RevIn value, you will likely not get the CRC value you're expecting! Put RevIn check where it belongs, in process_bits().
2016-07-05 11:57:57 -07:00
Jared Boone
57293bc5eb
Clear application message queue after baseband is shut down.
2016-07-02 16:19:41 -07:00
Jared Boone
eac4cf678a
Capture M4 chDbgPanic msg, show in application.
2016-07-02 15:33:03 -07:00
Jared Boone
97ba19af24
Change M4 loader to use image tags.
...
Also finish moving HackRF binary to tagged image region.
2016-07-01 10:37:22 -07:00
Jared Boone
0e62876578
Add types for tagged data chunks in SPI flash.
2016-07-01 10:32:52 -07:00
Jared Boone
d41c6ee36a
Simplify app->baseband message handling.
...
No need for a FIFO when all messages are intended to be synchronous.
2016-06-24 14:16:45 -07:00
Jared Boone
264c19b312
Rename CaptureThread message, callback method, handle success.
2016-06-21 12:05:55 -07:00
Jared Boone
81d4e59aeb
Add CaptureThread success_callback.
2016-06-21 11:53:07 -07:00
Jared Boone
cfaa44b02a
Send CaptureThread error into app-local message queue.
2016-06-21 11:04:10 -07:00