Browse Source

update

3lead_uart_test_ok_version
zhaohe 1 year ago
parent
commit
b478b401ae
  1. 6
      app/main.c
  2. 4
      app/src/board.c

6
app/main.c

@ -107,12 +107,12 @@ int main(void) {
};
zble_module_init(&cfg);
board_init();
fatfs_init();
// fatfs_init();
NRF_SDH_BLE_OBSERVER(m_ble_observer, 3, ble_evt_handler, NULL);
ZERROR_CHECK(app_timer_create(&m_test_tx_timer, APP_TIMER_MODE_REPEATED, test_tx_timer_cb));
ZERROR_CHECK(app_timer_start(m_test_tx_timer, APP_TIMER_TICKS(100), NULL));
// ZERROR_CHECK(app_timer_create(&m_test_tx_timer, APP_TIMER_MODE_REPEATED, test_tx_timer_cb));
// ZERROR_CHECK(app_timer_start(m_test_tx_timer, APP_TIMER_TICKS(100), NULL));
// pwm_trigger();
// wd_init();

4
app/src/board.c

@ -197,7 +197,7 @@ void pwm_trigger() {
.irq_priority = APP_IRQ_PRIORITY_LOWEST,
.base_clock = NRF_PWM_CLK_125kHz,
.count_mode = NRF_PWM_MODE_UP,
.top_value = 5,
.top_value = 10,
.load_mode = NRF_PWM_LOAD_INDIVIDUAL,
.step_mode = NRF_PWM_STEP_AUTO,
};
@ -210,7 +210,7 @@ void pwm_trigger() {
.end_delay = 0,
};
m_demo1_seq_values.channel_0 = 2;
m_demo1_seq_values.channel_0 = 8;
m_demo1_seq_values.channel_1 = 0;
m_demo1_seq_values.channel_2 = 0;
m_demo1_seq_values.channel_3 = 0;

Loading…
Cancel
Save