enable interrupts in capture as task0 never runs
this took days (2) to find
This commit is contained in:
parent
e1419da297
commit
6004eaac27
1 changed files with 4 additions and 0 deletions
4
main.c
4
main.c
|
@ -126,6 +126,7 @@ void task0_func(UArg arg1, UArg arg2)
|
|||
|
||||
void capture_waveform(UArg arg1, UArg arg2)
|
||||
{
|
||||
IntMasterEnable();
|
||||
while(true) {
|
||||
Semaphore_pend(capture_sem, BIOS_WAIT_FOREVER);
|
||||
|
||||
|
@ -170,6 +171,9 @@ void process_waveform(UArg arg1, UArg arg2) {
|
|||
|
||||
void display_waveform(UArg arg1, UArg arg2)
|
||||
{
|
||||
while(1) {
|
||||
Semaphore_pend(display_sem, BIOS_WAIT_FOREVER);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue