Fix the spectrum labels, bandscope build, OOK on F+7, save flash
- Spectrum: GUI_DisplaySmallest() now draws with gFontSmall (7 px per character) for the status bar; the spectrum layout needs the 3x5 font (4 px), so it gets its own renderer again. Its labels were overlapping. - make BANDSCOPE=1: spectrum instead of the FM radio. Both do not fit in 60 KB together (FM radio is 4.9 KB). Debug log off and -finline-limit=1 in that edition; it fits with a few bytes to spare. - OOK sender on F+7 / long 7 (the VOX key is free, VOX is not built); F+EXIT is back to only cancelling F. - POCSAG deviation tuning keys behind POCSAG_DEVIATION_TUNING (default 0). - Smaller code: shared end of SMS/POCSAG transmissions, non-inlined fast SPI wait, compact OOK field tables, sprintf message header, shorter OOK strings. - Makefile: EXTRA_CFLAGS for passing defines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
No files matched your search
+7
-2
@@ -394,8 +394,13 @@ void BK4819_ToggleGpioOut(BK4819_GPIO_PIN_t Pin, bool bSet)
|
||||
BK4819_WriteRegister(BK4819_REG_33, gBK4819_GpioOutState);
|
||||
}
|
||||
|
||||
// ~250 ns at 48 MHz: keeps the bit-banged SPI clock around 1 MHz
|
||||
#define BK4819_FAST_SPI_WAIT() __asm volatile ("nop\n nop\n nop\n nop\n nop\n nop\n nop\n nop\n nop\n nop\n nop\n nop")
|
||||
// ~250 ns at 48 MHz (call + return + 6 nops): keeps the bit-banged SPI clock around
|
||||
// 1 MHz. A real function, so the wait is not inlined at every clock edge.
|
||||
static void __attribute__((noinline)) BK4819_FastSpiWait(void)
|
||||
{
|
||||
__asm volatile ("nop\n nop\n nop\n nop\n nop\n nop");
|
||||
}
|
||||
#define BK4819_FAST_SPI_WAIT() BK4819_FastSpiWait()
|
||||
|
||||
// BK4819_WriteRegister() without the SYSTICK_DelayUs(1) calls (their overhead makes a
|
||||
// write take ~300 us).
|
||||
|
||||
Reference in New Issue
Block a user