diff options
-rw-r--r-- | doc/perfboard.svg | 14 | ||||
-rw-r--r-- | src/common/src/Audio/cw.c | 6 | ||||
-rw-r--r-- | src/common/src/Core/common.c | 4 | ||||
-rw-r--r-- | src/common/src/Core/main.c | 6 | ||||
-rw-r--r-- | src/glutt-o-logique/pio.c | 5 |
5 files changed, 18 insertions, 17 deletions
diff --git a/doc/perfboard.svg b/doc/perfboard.svg index 1f5c67a..8cf2732 100644 --- a/doc/perfboard.svg +++ b/doc/perfboard.svg @@ -2284,9 +2284,9 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="2.8284271" - inkscape:cx="842.10835" - inkscape:cy="133.74215" + inkscape:zoom="2" + inkscape:cx="889.36751" + inkscape:cy="364.19891" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="true" @@ -24880,7 +24880,7 @@ id="tspan34218" y="1007.1062" x="398.24316" - sodipodi:role="line">2016-05-30 HB9EGM - HB9FOH</tspan></text> + sodipodi:role="line">2016-06-05 HB9EGM - HB9FOH</tspan></text> </g> <g transform="matrix(0,1,1,0,-301.18106,329.52752)" @@ -25863,9 +25863,9 @@ d="m 779.52758,499.60628 9.92126,9.92126 60.94489,0 0,107.71654 28.34645,9.92125 35.43308,25.51182 21.25984,0" style="fill:none;fill-rule:evenodd;stroke:#34c3ff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:bevel;stroke-opacity:1" /> <g - id="g9250"> + id="g9256"> <g - transform="translate(83.622059,-21.259838)" + transform="translate(83.622059,-77.952754)" id="g9839"> <path sodipodi:nodetypes="ccc" @@ -25881,7 +25881,7 @@ </g> <g id="g9845" - transform="translate(83.622059,7.0866201)"> + transform="translate(83.622077,-49.606296)"> <path style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:bevel;stroke-opacity:1" d="m 864.56695,712.20472 7.08661,0 0,7.0866" diff --git a/src/common/src/Audio/cw.c b/src/common/src/Audio/cw.c index 36f2d09..e4a04f5 100644 --- a/src/common/src/Audio/cw.c +++ b/src/common/src/Audio/cw.c @@ -528,9 +528,6 @@ static void cw_psk31_task(void *pvParameters) cw_transmit_ongoing = 1; - // Audio should be off, turn it on - audio_on(); - if (cw_fill_msg_current.dit_duration) { cw_psk31_buffer_len = cw_text_to_on_buffer( cw_fill_msg_current.message, @@ -594,9 +591,6 @@ static void cw_psk31_task(void *pvParameters) // We have completed this message cw_transmit_ongoing = 0; - - // Turn off audio to save power - audio_off(); } } } diff --git a/src/common/src/Core/common.c b/src/common/src/Core/common.c index 6f608ad..77d3360 100644 --- a/src/common/src/Core/common.c +++ b/src/common/src/Core/common.c @@ -150,7 +150,7 @@ int local_time(struct tm *time) { void common_init(void) { common_timer = xTimerCreate("Timer", - portTICK_PERIOD_MS, + pdMS_TO_TICKS(10), pdTRUE, // Auto-reload NULL, // No unique id common_increase_timestamp @@ -176,7 +176,7 @@ static void common_increase_timestamp(TimerHandle_t t) } #else - common_timestamp++; + common_timestamp += 10; #endif } diff --git a/src/common/src/Core/main.c b/src/common/src/Core/main.c index 27925b9..6a546a1 100644 --- a/src/common/src/Core/main.c +++ b/src/common/src/Core/main.c @@ -425,6 +425,12 @@ static void exercise_fsm(void *pvParameters) fsm_get_outputs(&fsm_out); pio_set_tx(fsm_out.tx_on); + if (fsm_out.tx_on) { + audio_on(); + } + else { + audio_off(); + } pio_set_mod_off(!fsm_out.modulation); pio_set_qrp(fsm_out.qrp); // TODO move out of FSM diff --git a/src/glutt-o-logique/pio.c b/src/glutt-o-logique/pio.c index d8780fe..c003881 100644 --- a/src/glutt-o-logique/pio.c +++ b/src/glutt-o-logique/pio.c @@ -37,7 +37,7 @@ #define GPIO_PIN_QRP_out GPIO_Pin_9 #define GPIO_PIN_D GPIO_Pin_11 #define GPIO_PIN_REPLIE_n GPIO_Pin_13 -#define GPIO_PIN_FAX_n GPIO_Pin_14 +#define GPIO_PIN_FAX GPIO_Pin_14 #define GPIOC_OUTPUT_PINS ( \ @@ -56,6 +56,7 @@ GPIO_PIN_U | \ GPIO_PIN_D | \ GPIO_PIN_REPLIE_n | \ + GPIO_PIN_FAX | \ 0 ) #include "GPIO/pio.h" @@ -146,7 +147,7 @@ void read_fsm_input_task(void *pvParameters) GPIO_ReadInputDataBit(GPIOC, GPIO_PIN_REPLIE_n) ? 1 : 0; pio_signals.sstv_mode = - GPIO_ReadInputDataBit(GPIOC, GPIO_PIN_FAX_n) ? 0 : 1; + GPIO_ReadInputDataBit(GPIOC, GPIO_PIN_FAX) ? 1 : 0; vTaskDelay(100 / portTICK_RATE_MS); } |