Skip to content

Commit

Permalink
Add LPC1768 updated results, remove old smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
multiplemonomials committed Sep 3, 2024
1 parent 876490c commit 3e66af5
Show file tree
Hide file tree
Showing 6 changed files with 2,163 additions and 1,605 deletions.
8 changes: 0 additions & 8 deletions CI-Shield-Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ project(mbed-ce-ci-shield-tests)

enable_testing()

add_executable(TestEEPROM TestEEPROM.cpp)
target_link_libraries(TestEEPROM mbed-storage-i2cee mbed-os)
mbed_set_post_build(TestEEPROM)

add_executable(TestSDCard TestSDCard.cpp)
target_link_libraries(TestSDCard mbed-storage-sd mbed-os)
mbed_set_post_build(TestSDCard)

# Add tests -------------------------------------------------------
mbed_greentea_add_test(
TEST_NAME testshield-businout
Expand Down
6 changes: 4 additions & 2 deletions CI-Shield-Tests/SPISlaveCommsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,17 +241,18 @@ void test_four_byte_transaction()
size_t txIndex = 0;
uint8_t rxData[sizeof(txData)];
size_t rxIndex = 0;
greentea_send_kv("do_transaction", "0x5 0x6 0x7 0x8 expected_response 0x1 0x2 0x3 0x4");

// Pre-fill the FIFO with data. This is the only way I've found to get even moderately fast
// clock rates (100kHz) to work for multi-byte transfers.
// What sucks is that SPISlave does not provide an API to determine how many bytes can be sent...
// What sucks is that SPISlave does not provide an API to determine how big the hardware FIFO is.
for(size_t dataIndex = 0; dataIndex < sizeof(txData); ++dataIndex)
{
// Preload reply
spi->reply(txData[txIndex++]);
}

greentea_send_kv("do_transaction", "0x5 0x6 0x7 0x8 expected_response 0x1 0x2 0x3 0x4");

Timer transactionTimer;
transactionTimer.start();

Expand All @@ -262,6 +263,7 @@ void test_four_byte_transaction()
{
if(transactionTimer.elapsed_time() > 1s)
{
printf("Only saw %zu bytes.\n", dataIndex);
TEST_FAIL_MESSAGE("No data seen by slave device!");
return;
}
Expand Down
53 changes: 0 additions & 53 deletions CI-Shield-Tests/TestEEPROM.cpp

This file was deleted.

51 changes: 0 additions & 51 deletions CI-Shield-Tests/TestSDCard.cpp

This file was deleted.

Loading

0 comments on commit 3e66af5

Please sign in to comment.