ASF Bugzilla – Bug 1693
UC3C ASF twi drivers need to support all twi ports
Last modified: 2015-11-11 23:35:53 CET
The current twim driver only supports a single twi. Please update the driver to
support all three ports simultaneously.
Discussion external reference:
The limitation of a single TWI master module in the current implementation is
due to the single global "twi_inst" variable.
Correct, thanks for reporting - we'll look into that.
*** Bug 1679 has been marked as a duplicate of this bug. ***
TWIM and TWIS drivers modified to support simultaneous use of all instances of
The number of available instances is set according to header file defines.
Multiple ISRs are created but calls a common interrupt handler for all modules
of the same type.
The common handler uses a table of "twi_context" structs that holds state and
references of every instances of the hardware module.
Also added unit tests :
The tests sets the TWIM and TWIS module to make twi transfers of small data
Since TWIM and TWIS are connected together on the same pins, the only external
hardware needed are pull-ups for the twi lines.
Tests jobs will be posted on top bug (bug1642)
Creating a new dev branch for the bug
Removed block on bug1642 (quickstart guides)
One of our customers is requesting the bug to be fixed asap. Can we speed-up
the process please?
Setting importance to 'major'.
Validation job passed :
*** Bug 2640 has been marked as a duplicate of this bug. ***
Validation tests relaunched after synching with main :
If this issue have already been fixed, why haven't it been released into the
main release of ASF yet?
Also, if i would like to get the bugfix branch, where can i access the source
Revisiting this bug report on November 2015.
Where did end up the modifications announced by Laurent Le Goffic on
There is still an interest on having a better TWIM driver integrated in Atmel