Batch 28 commit ca63702 gave RT-Thread mutex priority ceilings (1 of 3 passed), LVGL repeat cadence and RT-Thread soft-timer wakeup (0 of 3) as HARD. Each task comes from the commit Qwen measured, its digest matches, and it is still present at the batch branch head. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
458 B
C
19 lines
458 B
C
#include <stdio.h>
|
|
#include "controlled.h"
|
|
static int count;
|
|
static void callback(void *p) { count += *(int *)p; }
|
|
int main(void)
|
|
{
|
|
struct rt_timer timer;
|
|
int amount = 3;
|
|
port_init(100);
|
|
rt_timer_init(&timer, "sample", callback, &amount, 5, RT_TIMER_FLAG_SOFT_TIMER);
|
|
rt_timer_start(&timer);
|
|
port_pump();
|
|
port_advance(104);
|
|
printf("before=%d\n", count);
|
|
port_advance(105);
|
|
printf("after=%d\n", count);
|
|
return 0;
|
|
}
|