updated: event_char_notify_param->notify_period can be modified by a command (for RD use)
This commit is contained in:
@@ -294,7 +294,7 @@ pel_output_t pel_smaple_and_convt_all(uint32_t measure_out, uint32_t load_mask)
|
||||
#define VERSION_DATE_MONTH 12
|
||||
#define VERSION_DATE_DAY 25
|
||||
#define VERSION_DATE_HOUR 17
|
||||
#define VERSION_DATE_MINUTE 39
|
||||
#define VERSION_DATE_MINUTE 43
|
||||
static void cis_version(uint8_t *ins, uint16_t size)
|
||||
{
|
||||
NRF_LOG_INFO("%s", __FUNCTION__);
|
||||
@@ -974,7 +974,7 @@ static void send_resis_and_sample_and_hold_data(void *p_arg)
|
||||
}
|
||||
}
|
||||
|
||||
void start_sample_and_hold_pulse_task(void)
|
||||
void start_sample_and_hold_pulse_task(uint8_t *param)
|
||||
{
|
||||
pel_config_t pel_cfg = {
|
||||
.anode_pin = ANODE_PIN,
|
||||
@@ -1008,10 +1008,11 @@ void start_sample_and_hold_pulse_task(void)
|
||||
return;
|
||||
}
|
||||
|
||||
// event_char_notify_param->notify_period = u8_to_u32(param[0], param[1], param[2], param[3]);
|
||||
event_char_notify_param->notify_period = u8_to_u32(param[0], param[1], param[2], param[3]);
|
||||
// event_char_notify_param->total_notify_count = u8_to_u32(param[0], param[1], param[2], param[3]);
|
||||
event_char_notify_param->notify_period = 1000;
|
||||
// event_char_notify_param->notify_period = 10;
|
||||
event_char_notify_param->total_notify_count = 5;
|
||||
NRF_LOG_INFO("event_char_notify_param->notify_period=%d", event_char_notify_param->notify_period);
|
||||
|
||||
xTaskCreate(send_resis_and_sample_and_hold_data, "send_resis_and_sample_and_hold_data", 2048, (void *)event_char_notify_param, 3, NULL);
|
||||
}
|
||||
@@ -1040,7 +1041,7 @@ static void dev_mode_sample_and_hold_pulse_task(uint8_t *ins)
|
||||
switch (p_ins->opcode)
|
||||
{
|
||||
case 0x00:
|
||||
start_sample_and_hold_pulse_task();
|
||||
start_sample_and_hold_pulse_task(p_ins->param);
|
||||
break;
|
||||
|
||||
case 0x01:
|
||||
|
||||
Reference in New Issue
Block a user