10 years ago.

spi.write() Implementation

Hi! I am having issues programming a LPC1768 to interface with an AD5791. I believe the issue is with spi.write(). Does anyone know where I can look at the source code for spi.write()?

Thank you in advance! Natasha

1 Answer

10 years ago.

Hi Tash Woords,

Here are mbed sources on github (mbed HAL, just go down the tree to get to your target's SPI implementation) https://github.com/mbedmicro/mbed/tree/master/libraries/mbed/targets/hal

You can also do it in the online compiler, add mbed-src "library". Modify, test and see if it works or not.

Regards, 0xc0170

Hi Martin, Thank you for the quick response! I tried looking through the sources on github and did not have much luck. However, I am new to this field - so it is probably there. Do you have any tips on finding it? I thought it would be in this file: https://github.com/mbedmicro/mbed/blob/master/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/spi_api.c

but did not see the actual implementation of spi.write().

Thank you again! Natasha

posted by Tash Woods 30 Apr 2014