(minor changes)

This commit is contained in:
Lephe 2021-04-29 16:15:59 +02:00
parent acc35d774f
commit 4147236343
No known key found for this signature in database
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: Extensions on existing code:
* bfile: implement the optimization-restart as realized by Kbd2 * 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) * kernel: better restore to userspace before panic (ensure BL=0 IMASK=0)
* project: add license file * project: add license file
* kernel: group linker script symbols in a single header file * kernel: group linker script symbols in a single header file

View file

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

View file

@ -13,7 +13,7 @@
/* Timer types and numbers /* Timer types and numbers
If you're new to timers, read this comment and then check timer_configure() 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, 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 and extra timers added by Casio called ETMU. The main difference is that TMU