Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions TESTS/mbed_hal_fpga_ci_test_shield/pwm/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,11 @@ Case cases[] = {

utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
{
#ifdef FPGA_FORCE_ALL_PORTS
GREENTEA_SETUP(300, "default_auto");
#else
GREENTEA_SETUP(120, "default_auto");
#endif
return greentea_test_setup_handler(number_of_cases);
}

Expand Down
5 changes: 5 additions & 0 deletions components/testing/COMPONENT_FPGA_CI_TEST_SHIELD/test_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,10 @@ void all_peripherals()
template<typename PortType, typename FormFactorType, typename PortType::TestFunctionType f>
void one_peripheral()
{
#ifdef FPGA_FORCE_ALL_PORTS
utest_printf("*** FPGA_FORCE_ALL_PORTS ***\n");
all_ports<PortType, FormFactorType, f>();
#else
std::list<PortType> matched_ports, not_matched_ports;
find_ports<PortType, FormFactorType>(matched_ports, not_matched_ports);

Expand All @@ -300,6 +304,7 @@ void one_peripheral()
} else {
test_peripheral<PortType, typename PortType::TestFunctionType, f>(matched_ports.front());
}
#endif
}

template <uint32_t N, typename PinMapType, typename FormFactorType, typename TestFunctionType>
Expand Down