Skip to content

Commit 26f2d85

Browse files
committed
add DEVICE_SPI guard to TT targets
1 parent 831722c commit 26f2d85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

targets/TARGET_TT/TARGET_TT_M3HQ/spi_api.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
*******************************************************************************
2929
*/
30+
#if DEVICE_SPI
31+
3032
#include "spi_api.h"
3133
#include "mbed_error.h"
3234
#include "pinmap.h"
@@ -274,3 +276,4 @@ uint8_t spi_get_module(spi_t *obj)
274276
{
275277
return (uint8_t)(obj->module);
276278
}
279+
#endif

0 commit comments

Comments
 (0)