Skip to content

Conversation

@mathk
Copy link

@mathk mathk commented Nov 18, 2025

This is a rewrite of the hal for STM32F303.
It improve the compatibility with other HAL.
It also provide fixes for the latest regz generated peripherals.
For now only blinky would work and Usart kind of work with only USART1.

I would like to support better Alternate function and the RCC peripherals before moving on.

Copy link
Collaborator

@tact1m4n3 tact1m4n3 left a comment

Choose a reason for hiding this comment

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

Thanks! It's nice to see more hals getting attention 😄

.UART5 => UART5,
};
return struct {
pub const Writer = std.io.GenericWriter(*const Self, error{}, writer_fn);
Copy link
Collaborator

Choose a reason for hiding this comment

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

GenericWriter is deprecated. Can you use the new std.Io.Writer instead?

/// A UART configuration. The config defaults to the *8N1* setting, so "8 data bits, no parity, 1 stop bit" which is the
/// most common serial format.
/// A UART configuration.
pub const Config = struct {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why did you change this? Anyways everything in the experimental directory is not used at the moment

pins.PIN15,
};

microzig.board.debug_write("test");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you remove this function please? Seems like it's broken anyways? 😆 Instead go for std.log and the uart logger if you need logging.

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.

2 participants