-
Notifications
You must be signed in to change notification settings - Fork 155
Better HAL for STM32F303 #729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…est regz register.
tact1m4n3
left a comment
There was a problem hiding this 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); |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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"); |
There was a problem hiding this comment.
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.
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.