Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1.1.0 #12

Merged
merged 10 commits into from
Jun 4, 2024
8 changes: 3 additions & 5 deletions src/wch-ch56x-lib/HSPIDeviceScheduled/hspi_scheduled.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ bool hspi_send(uint8_t* buffer, uint16_t size, uint16_t custom_register)
hspi_task_args->args.size = size;
hspi_task_args->args.custom_register = custom_register;
hydra_interrupt_queue_set_next_task(_hspi_send, (uint8_t*)hspi_task_args,
_hspi_cleanup, INTERRUPT_QUEUE_LOW_PRIO);
_hspi_cleanup);
return true;
}

Expand Down Expand Up @@ -368,8 +368,7 @@ __attribute__((interrupt("WCH-Interrupt-fast"))) void HSPI_IRQHandler(void)
hspi_task_args->args.custom_register =
(udf0 & HSPI_USER_DEFINED_MASK) >> 13;
hydra_interrupt_queue_set_next_task(
_hspi_rx_callback, (uint8_t*)hspi_task_args, _hspi_cleanup,
INTERRUPT_QUEUE_LOW_PRIO);
_hspi_rx_callback, (uint8_t*)hspi_task_args, _hspi_cleanup);
}
hspi_rx_buffer_0 = ramx_pool_alloc_bytes(hspi_packet_size);
R32_HSPI_RX_ADDR0 = (vuint32_t)hspi_rx_buffer_0;
Expand All @@ -391,8 +390,7 @@ __attribute__((interrupt("WCH-Interrupt-fast"))) void HSPI_IRQHandler(void)
hspi_task_args->args.custom_register =
(udf1 & HSPI_USER_DEFINED_MASK) >> 13;
hydra_interrupt_queue_set_next_task(
_hspi_rx_callback, (uint8_t*)hspi_task_args, _hspi_cleanup,
INTERRUPT_QUEUE_LOW_PRIO);
_hspi_rx_callback, (uint8_t*)hspi_task_args, _hspi_cleanup);
}
hspi_rx_buffer_1 = ramx_pool_alloc_bytes(hspi_packet_size);
R32_HSPI_RX_ADDR1 = (vuint32_t)hspi_rx_buffer_1;
Expand Down
Loading
Loading