wswan:guide:interrupt_handlers
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| wswan:guide:interrupt_handlers [2024/02/18 08:32] – asie | wswan:guide:interrupt_handlers [2025/11/07 15:14] (current) – asie | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Writing interrupt handlers ====== | ====== Writing interrupt handlers ====== | ||
| - | |||
| - | |||
| ===== C interrupt handlers ===== | ===== C interrupt handlers ===== | ||
| Line 13: | Line 11: | ||
| | | ||
| // Acknowledge the hardware interrupt. | // Acknowledge the hardware interrupt. | ||
| - | | + | |
| } | } | ||
| </ | </ | ||
| Line 29: | Line 27: | ||
| <code C> | <code C> | ||
| // Set the function " | // Set the function " | ||
| - | ws_hwint_set_handler(HWINT_IDX_VBLANK, (ws_int_handler_t) vblank_int_handler); | + | ws_int_set_handler(WS_INT_VBLANK, (ws_int_handler_t) vblank_int_handler); |
| // Enable the vertical blank hardware interrupt. | // Enable the vertical blank hardware interrupt. | ||
| - | ws_hwint_enable(HWINT_VBLANK); | + | ws_int_enable(WS_INT_ENABLE_VBLANK); |
| // Disable the vertical blank hardware interrupt. | // Disable the vertical blank hardware interrupt. | ||
| - | ws_hwint_disable(HWINT_VBLANK); | + | ws_int_disable(WS_INT_ENABLE_VBLANK); |
| </ | </ | ||
| - | |||
| - | <WRAP round important> | ||
| - | Watch out! '' | ||
| - | |||
| - | I admit, this is a little confusing. ^^; | ||
| - | </ | ||
wswan/guide/interrupt_handlers.txt · Last modified: by asie
