(minor changes)

This commit is contained in:
Lephe 2021-04-29 16:15:59 +02:00
parent acc35d774f
commit 4147236343
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
3 changed files with 4 additions and 5 deletions

1
TODO
View File

@ -1,6 +1,5 @@
Extensions on existing code:
* bfile: implement the optimization-restart as realized by Kbd2
* kernel: use GINT_CALL() for all callbacks, without breaking the timer API
* kernel: better restore to userspace before panic (ensure BL=0 IMASK=0)
* project: add license file
* kernel: group linker script symbols in a single header file

View File

@ -55,7 +55,7 @@ typedef enum
@dst_mode Destination address mode
@callback Function to invoke when the transfer finishes
-> Returns true on success. */
bool dma_transfer_async(int channel, dma_size_t size, uint length,
bool dma_transfer_async(int channel, dma_size_t size, uint blocks,
void const *src, dma_address_t src_mode, void *dst,
dma_address_t dst_mode, gint_call_t callback);
@ -65,7 +65,7 @@ void dma_transfer_wait(int channel);
/* dma_transfer_sync(): Perform an synchronous DMA data transfer
Like dma_transfer_async(), but only returns once the transfer completes. */
bool dma_transfer_sync(int channel, dma_size_t size, uint length,
bool dma_transfer_sync(int channel, dma_size_t size, uint blocks,
void const *src, dma_address_t src_mode, void *dst,
dma_address_t dst_mode);
@ -81,7 +81,7 @@ void dma_transfer_atomic(int channel, dma_size_t size, uint blocks,
/* Deprecated version of dma_transfer_async() that did not have a callback */
__attribute__((deprecated("Use dma_transfer_async() instead")))
void dma_transfer(int channel, dma_size_t size, uint length, void const *src,
void dma_transfer(int channel, dma_size_t size, uint blocks, void const *src,
dma_address_t src_mode, void *dst, dma_address_t dst_mode);
/* Old name for dma_transfer_atomic() */
#define dma_transfer_noint dma_transfer_atomic

View File

@ -13,7 +13,7 @@
/* Timer types and numbers
If you're new to timers, read this comment and then check timer_configure()
timer_start(): most of the time you only need these.
and timer_start(): most of the time you only need these.
There are two types of timers on the calculator: normal timers called TMU,
and extra timers added by Casio called ETMU. The main difference is that TMU