g0orx / pihpsdr

Raspberry Pi standalone code for HPSDR (Protocol 1 and Protocol 2)
GNU General Public License v2.0
105 stars 73 forks source link

The next step in the "big merge". #170

Closed dl1ycf closed 2 years ago

dl1ycf commented 2 years ago

(some changes, e.g. removal of unsused variables, avoiding "shadowing" of global variables, etc. were induced by running "cppcheck" on the source code).

Makefile

MacOS.h:

band.c:

MIDI MENU:

Support for external CW Keyers:

MOX and TUNE actions in actions.c

New interface to "process_action"

I2C service routine

(An attempt to solve some problems in i2c_interrupt function)

NOTE: I have no "controller", just an MCP23017 on a bread-board, so this probably needs more testing.

Header files

gpio.c

midi3.c

sliders.c, zoompan.c, sliders.h

The "scale_status" is now logically an "enum action" value, and therefore its neutral value must be NO_ACTION instead of NO_FUNCTION. The old scale_status enum from sliders.h is now removed.

set_squelch(RECEIVER *rx)

this now has a RECEIVER * argument, as suggested by its use in actions.c (SQUELCH_RX1, SQUELCH_RX2).

including "midi_menu.h"

dl1ycf commented 2 years ago

I think after several months, this pending PR should be closed and re-opened when there is more activity.