{wip} test timer clock source
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "main.h"
|
||||
#include "tim.h"
|
||||
#include "hw_button.h"
|
||||
#include "ctrl_bottom_button.h"
|
||||
#include "ctrl_channel_button.h"
|
||||
@@ -154,6 +155,14 @@ void CTRL_longPushedChanBtnEvent(ButtonKey_t *key)
|
||||
ULOG_TRACE("Chan btn(long): %d", key->instance);
|
||||
GEN_channel_t channel = btn_ch_to_chan[key->instance];
|
||||
|
||||
if (channel == CHANNEL2)
|
||||
{
|
||||
if (HAL_TIM_Base_Start(&htim17) == HAL_ERROR)
|
||||
{
|
||||
HAL_TIM_Base_Stop(&htim17);
|
||||
}
|
||||
}
|
||||
|
||||
switch (signal_gen[channel].type)
|
||||
{
|
||||
case GEN_FG_TYPE:
|
||||
|
||||
Reference in New Issue
Block a user