Skip to content

Conversation

@ArcaneNibble
Copy link
Collaborator

This implements the rest of the clock API. It currently assumes that IRQs are never disabled on the EV3.

Closes pybricks/support#2270

@ArcaneNibble
Copy link
Collaborator Author

Note that I've tested that I haven't broken pybricks.tools.wait, but I'm not sure how to test if any of the new functions are actually working.

@coveralls
Copy link

coveralls commented Jul 14, 2025

Coverage Status

coverage: 57.254% (-0.01%) from 57.268%
when pulling 6a40bb6 on ArcaneNibble:clock
into 8342aae on pybricks:master.

The interrupt enable and interrupt status bits are not the same.
There is no need to disable and re-enable the interrupt if clearing
the correct bit.
Because the time period never changes, there is no reason to use reload
The PRU1 code which will be added in the future expects the 34 part of Timer0
to count with a period which is a multiple of 256*256 in order to generate
accurate PWM widths. We switch the system tick in order to not conflict with it.
@dlech dlech merged commit ff0f1b9 into pybricks:master Jul 15, 2025
17 checks passed
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.

[EV3 - help wanted]: Implement remainder of clock API

4 participants