[riot-notifications] [RIOT-OS/RIOT] TI CC3200 SimpleLink RIOT support (#11866)

Wlad Meixner notifications at github.com
Fri Jul 19 23:40:22 CEST 2019


gosticks commented on this pull request.



> +{
+	spi_transfer_bytes(bus, cs, cont, &out, 0, 1);
+	return SPI_OK;
+}
+
+void spi_transfer_bytes(spi_t bus, spi_cs_t cs, bool cont, const void *out,
+			void *in, size_t len)
+{
+	/* TODO: handle cs and cont for */
+	(void)cont;
+
+	/* disable or enable cs */
+	if (cs == GPIO_UNDEF) {
+		spi(bus)->ch0_conf &= ~MCSPI_CH0CONF_FORCE;
+	} else {
+		spi(bus)->ch0_conf |= MCSPI_CH0CONF_FORCE;

since `MCSPI_CH0CONF_FORCE` has nothing to do with chip select I enable and disable it before every spi transfer independant of cs . I've added the missing cs code so that should be fine now.
Thank you  

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11866#discussion_r305533054
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190719/6431181f/attachment.htm>


More information about the notifications mailing list