Skip to content

Commit

Permalink
Add SPI_32BIT_WORDS label, start on fixing SPI docs
Browse files Browse the repository at this point in the history
  • Loading branch information
multiplemonomials committed Jun 26, 2023
1 parent 64c7f54 commit 5f2c675
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions hal/include/hal/spi_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ int spi_master_write(spi_t *obj, int value);
* tx_length and rx_length. The bytes written will be padded with the
* value 0xff.
*
* Note: Even if the word size / bits per frame is not 8, \c rx_length and \c tx_length
* still give lengths in bytes of input data, not numbers of words.
*
* @param[in] obj The SPI peripheral to use for sending
* @param[in] tx_buffer Pointer to the byte-array of data to write to the device
* @param[in] tx_length Number of bytes to write, may be zero
Expand Down
2 changes: 1 addition & 1 deletion targets/TARGET_STM/stm_dma_ip_v3.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#ifndef MBED_OS_STM_DMA_IP_V3_H
#define MBED_OS_STM_DMA_IP_V3_H

// Devices with DMA IP v2 have at most 7 channels per controller.
// Devices with DMA IP v3 have at most 16 channels per controller.
#define MAX_DMA_CHANNELS_PER_CONTROLLER 16

#define NUM_DMA_CONTROLLERS 1
Expand Down
6 changes: 4 additions & 2 deletions targets/targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -3224,7 +3224,8 @@
"CRC",
"TRNG",
"FLASH",
"MPU"
"MPU",
"SPI_32BIT_WORDS"
]
},
"MCU_STM32H723xG": {
Expand Down Expand Up @@ -4849,7 +4850,8 @@
"FLASH",
"MPU",
"TRNG",
"SERIAL_ASYNCH"
"SERIAL_ASYNCH",
"SPI_32BIT_WORDS"
]
},
"MCU_STM32U575xI": {
Expand Down
7 changes: 6 additions & 1 deletion tools/cmake/mbed_greentea.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ set(MBED_GREENTEA_SERIAL_PORT "" CACHE STRING "Serial port name to talk to the M
# TEST_INCLUDE_DIRS - Test suite include directories for the test
# TEST_SOURCES - Test suite sources
# TEST_REQUIRED_LIBS - Test suite required libraries
# HOST_TESTS_DIR - Path to the "host_tests" directory
# HOST_TESTS_DIR - Path to the "host_tests" directory. If a relative path is provided, it will be
# interpreted relative to the source directory.
# TEST_SKIPPED - Reason if suite is skipped
#
# calling the macro:
Expand Down Expand Up @@ -112,6 +113,10 @@ function(mbed_greentea_add_test)
endif()

if(DEFINED MBED_GREENTEA_HOST_TESTS_DIR)

# Convert relative path into absolute if given
get_filename_component(MBED_GREENTEA_HOST_TESTS_DIR ${MBED_GREENTEA_HOST_TESTS_DIR} ABSOLUTE BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR})

list(APPEND MBED_HTRUN_ARGUMENTS "-e;${MBED_GREENTEA_HOST_TESTS_DIR}")
endif()

Expand Down

0 comments on commit 5f2c675

Please sign in to comment.