Add Texas Instruments TCA9548A driver scan interactive test
Closed this issue · 0 comments
apcountryman commented
Add Texas Instruments TCA9548A driver (::picolibrary::Texas_Instruments::TCA9548A::Driver
) scan interactive test (test-interactive-picolibrary-texas_instruments-tca9548a-driver-scan
).
- Add the
test/interactive/picolibrary/texas_instruments/tca9548a/driver/scan/
directory to the build - The test should be defined in
test/interactive/picolibrary/texas_instruments/tca9548a/driver/scan/main.cc
- The test should perform the following sequence of operations:
- Configure the clock (
::picolibrary::Testing::Interactive::Microchip::megaAVR0::configure_clock()
) - Initialize the interactive testing log (
::picolibrary::Testing::Interactive::Microchip::megaAVR0::Log::initialize()
) - Construct a Microchip megaAVR 0-series I2C controller (
::picolibrary::Microchip::megaAVR0::I2C::Controller
) - Run the Texas Instruments TCA9548A driver scan interactive test helper (
::picolibrary::Testing::Interactive::Texas_Instruments::TCA9548A::scan()
) - Enter an infinite loop
- Configure the clock (
- The test should have the following build parameters:
-
CONTROLLER_TWI
: controller TWI -
CONTROLLER_TWI_SDA_HOLD_TIME
: controller TWI SDA hold time -
CONTROLLER_TWI_BUS_SPEED
: controller TWI bus speed -
CONTROLLER_TWI_CLOCK_GENERATOR_SCALING_FACTOR
: controller TWI clock generator scaling factor -
CONTROLLER_TWI_INACTIVE_BUS_TIME_OUT
: controller TWI inactive bus time-out -
CONTROLLER_TWI_ROUTE
: controller TWI route -
TCA9548A_ADDRESS
: TCA9548A address
-
- Add ATmega4809 Arduino Nano Every test build configuration (
configuration/testing-interactive-atmega4809-arduino-nano-every/test/interactive/picolibrary/texas_instruments/tca9548a/driver/scan/CMakeLists.txt
)-
CONTROLLER_TWI
:TWI0
-
CONTROLLER_TWI_SDA_HOLD_TIME
:OFF
-
CONTROLLER_TWI_BUS_SPEED
:STANDARD
-
CONTROLLER_TWI_CLOCK_GENERATOR_SCALING_FACTOR
:73
-
CONTROLLER_TWI_INACTIVE_BUS_TIME_OUT
:DISABLED
-
CONTROLLER_TWI_ROUTE
:DEFAULT
-
- Document the test
-
docs/test-interactive.md
-
docs/test-interactive/picolibrary/texas_instruments/tca9548a/driver/scan.md
-