File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
examples/raspberrypi/rp2xxx/src
port/raspberrypi/rp2xxx/src/hal Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ pub fn main() !void {
3838 rp2xxx .uart .init_logger (uart );
3939
4040 // Set up stacks. A helper function that automates this would be nice.
41- const max_tasks = 2 ;
41+ const max_tasks = 8 ;
4242 var task_stacks_data : [max_tasks ][1024 ]usize = undefined ;
4343 var task_stacks : [max_tasks ]* Io.PauseReason = undefined ;
4444 for (& task_stacks , & task_stacks_data ) | * dst , * src |
@@ -50,7 +50,6 @@ pub fn main() !void {
5050 io .async (task_blink , .{ & io , 24_000 });
5151 io .async (task_blink , .{ & io , 25_000 });
5252
53- // We might want both a monotonic clock and an epoch-synchronized one.
5453 var deadline : time.Absolute = get_time_since_boot ();
5554 var cnt : u32 = 0 ;
5655 while (true ) {
Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ pub const ContextArm = extern struct {
162162 }
163163};
164164
165+ // TODO
165166pub const ContextRV32 = struct {
166167 pub fn save_and_switch (save_to : ** PauseReason , switch_to : * @This (), reason : * const PauseReason ) void {
167168 _ = save_to ;
You can’t perform that action at this time.
0 commit comments