Skip to content

Conversation

@tact1m4n3
Copy link
Collaborator

No description provided.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Lint Results

Found 9 issues on changed lines in 9 files:

  • examples/espressif/esp/src/tcp_server.zig: 1 issue
  • examples/raspberrypi/rp2xxx/src/net/lwip/net.zig: 1 issue
  • port/espressif/esp/src/hal/radio/osi.zig: 1 issue
  • port/espressif/esp/src/hal/system.zig: 1 issue
  • port/raspberrypi/rp2xxx/src/hal/usb.zig: 1 issue
  • port/stmicro/stm32/src/hals/STM32F103/adc.zig: 1 issue
  • port/stmicro/stm32/src/hals/STM32F103/i2c.zig: 1 issue
  • port/stmicro/stm32/src/hals/STM32F103/rcc.zig: 1 issue
  • port/stmicro/stm32/src/hals/common/i2c_v2.zig: 1 issue

⚠️ Could not attach inline comments due to an error.

@github-actions github-actions bot dismissed their stale review January 16, 2026 09:29

Updating with new lint results

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Lint Results

Found 3 issues on changed lines in 3 files:

  • examples/espressif/esp/src/tcp_server.zig: 1 issue
  • port/espressif/esp/src/hal/radio/osi.zig: 1 issue
  • port/espressif/esp/src/hal/system.zig: 1 issue

@tact1m4n3
Copy link
Collaborator Author

I managed to crash the formatter :) The problematic file is esp/cpus/esp_riscv.zig. I also tested the formatter from master and that crashes as well.

@github-actions github-actions bot dismissed their stale review January 16, 2026 09:43

Updating with new lint results

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Lint Results

Found 1 issue on changed lines in 1 file:

  • port/espressif/esp/src/hal/radio/osi.zig: 1 issue

@tact1m4n3 tact1m4n3 marked this pull request as ready for review January 16, 2026 09:50
@github-actions github-actions bot dismissed their stale review January 17, 2026 09:39

Updating with new lint results

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Lint Results

Found 1 issue on changed lines in 1 file:

  • port/espressif/esp/src/hal/radio/osi.zig: 1 issue


.data :
{
. = ALIGN(16);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get littering the linker with align directives, but do you actually know for sure that these need align 16, or are you just going this high to be safe?

const systimer = @import("systimer.zig");

// How it works?
// For simple task to task context switches, only necessary registers are
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what are 'necessary'?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only the registers that the compiler wants to save. This happens through the clobbers from the inline asm context_switch.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I mean to say that you should be more specific in the comment. It's defined by the ABI?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it better now?

},
};

const SSID = "SSID";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a comment here and a compile error if it's not set

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add a comment. If we add a compile error, wouldn't CI fail?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah good point.

@tact1m4n3 tact1m4n3 marked this pull request as draft January 19, 2026 20:41
@Grazfather Grazfather mentioned this pull request Jan 19, 2026
// TODO: config
const coex_enabled: bool = false;

pub var gpa: std.mem.Allocator = undefined;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit but GPA implies general purpose allocator. Do they normally call it GPA unless it's actually that (or the debug allocator now)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Afaik, it is a good practice to name allocators gpa or arena to imply what kind of allocator do you need to provide. If it is an arena, you expect it to leak memory.

tim.deadline = .init_relative(get_time_since_boot(), duration);
tim.periodic = if (repeat) duration else null;
} else {
log.warn("timer not found based on ets_timer", .{});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we actually survive these? Should we be panicking if it's game over here rather than failing later on?

},
};

const SSID = "SSID";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah good point.

const systimer = @import("systimer.zig");

// How it works?
// For simple task to task context switches, only necessary registers are
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I mean to say that you should be more specific in the comment. It's defined by the ABI?

@github-actions github-actions bot dismissed their stale review January 20, 2026 18:31

Updating with new lint results

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Lint Results

Found 1 issue on changed lines in 1 file:

  • port/espressif/esp/src/hal/radio/osi.zig: 1 issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants