diff options
| author | Tharo <17233964+Thar0@users.noreply.github.com> | 2022-06-03 20:43:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-03 15:43:30 -0400 |
| commit | 1738b19d63d65afd01e1043a5359502ffef2e40e (patch) | |
| tree | 28046b3903f20dfeb34c0bbddea44450ce3e2308 /src/code/rcp_utils.c | |
| parent | ee5ac838b693f14710954f361ad91936975d00b7 (diff) | |
More documentation for sched.c (#1219)
* More documentation for sched.c
* VI retrace -> vertical retrace, attempt to clarify comment in viconfig
* Further review changes, fix inconsistent capitalization of PreNMI (PRENMI -> PreNMI)
* Fix typo
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
* Change TaskSwapBuffer, change comment on OS_SC_DRAM_DLIST to unimplemented
* Rename SchedContext/gSchedContext to Scheduler/gScheduler
* Comments fixes
Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
* Format
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
Diffstat (limited to 'src/code/rcp_utils.c')
| -rw-r--r-- | src/code/rcp_utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/code/rcp_utils.c b/src/code/rcp_utils.c index d9fc9cd85..5c14c39f9 100644 --- a/src/code/rcp_utils.c +++ b/src/code/rcp_utils.c @@ -3,6 +3,7 @@ #define printSpStatus(x, name) \ if (x & SP_STATUS_##name) \ osSyncPrintf(#name " ") + #define printDpStatus(x, name) \ if (x & DPC_STATUS_##name) \ osSyncPrintf(#name " ") @@ -44,9 +45,11 @@ void RcpUtils_PrintRegisterStatus(void) { osSyncPrintf("\n"); } -void RcpUtils_Reset() { +void RcpUtils_Reset(void) { RcpUtils_PrintRegisterStatus(); + // Flush the RDP pipeline and freeze clock counter osDpSetStatus(DPC_SET_FREEZE | DPC_SET_FLUSH); + // Halt the RSP, disable interrupt on break and set "task done" signal __osSpSetStatus(SP_SET_HALT | SP_SET_SIG2 | SP_CLR_INTR_BREAK); RcpUtils_PrintRegisterStatus(); } |
