Skip to content

IRQ callback#33

Open
Premik wants to merge 6 commits intoponty:masterfrom
Premik:IRQCallback
Open

IRQ callback#33
Premik wants to merge 6 commits intoponty:masterfrom
Premik:IRQCallback

Conversation

@Premik
Copy link
Copy Markdown
Contributor

@Premik Premik commented Apr 22, 2017

The callback implemeted also the IRQ stuff.

  • There are helper methods created in the irq module. Which is accessible on the main avr object.
  • Currently helpers are only created for digital IO and ADC. But all the required IRQ methods/macros I found are already exposed on the swig level in the utils.i.
    For example to register a callback on pin change:
avr.irq.ioport_register_notify(myCallable, ("A", 6))

More comperhensive usage is in the test_irq.py.

This enables both-way communication between Python and simavr core. No need to create custom parts in C anymore just to be able to watch pin change etc.

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 22, 2017

Coverage Status

Coverage increased (+3.7%) to 82.261% when pulling a3f031b on Premik:IRQCallback into a04237d on ponty:master.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+3.7%) to 82.31% when pulling 2fb7d8a on Premik:IRQCallback into a04237d on ponty:master.

2 similar comments
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+3.7%) to 82.31% when pulling 2fb7d8a on Premik:IRQCallback into a04237d on ponty:master.

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 29, 2017

Coverage Status

Coverage increased (+3.7%) to 82.31% when pulling 2fb7d8a on Premik:IRQCallback into a04237d on ponty:master.

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 29, 2017

Coverage Status

Coverage increased (+3.7%) to 82.31% when pulling a2cc8f6 on Premik:IRQCallback into a04237d on ponty:master.

2 similar comments
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+3.7%) to 82.31% when pulling a2cc8f6 on Premik:IRQCallback into a04237d on ponty:master.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+3.7%) to 82.31% when pulling a2cc8f6 on Premik:IRQCallback into a04237d on ponty:master.

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