← index #2509PR #9137
Related · high · value 0.694
QUERY · ISSUE

machine.SPI(): add CS/NSS pin

openby dmartauzopened 2016-10-12updated 2018-11-20

It would be nice if CS/NSS pin for SPI could be driven by machine.SPI() itself. Manual toggling in user application slows it down.

CANDIDATE · PULL REQUEST

mimxrt: Five small service type changes.

closedby robert-hhopened 2022-08-29updated 2022-09-13
port-mimxrt
  1. Remove a few commented code lines from machine_uart.c
  2. Change the header of the load image to match the new teensy loader, which does not erase the file system any more, given that the header version is 4.3 and the final binary size is properly set in the header. The new Teensy loader will be installed at the device is any sketch is loaded to the Teensy device using the up-to-date teensyduino package. This change would not be needed to keep the file system if #8229 was merged, which is the better solution as being uniform for all boards.
  3. Alllow the keyword option cs=-1 for the machine SPI class. In that case, the hardware CS pin will not be controlled by the SPI controller, but has to be set by the application. That allows for arbitrary pins being used for cs.
  4. Set the uart ioctl write poll flag properly. It now will be set when the send buffer is empty. Before, it always returned that writing is possible.
  5. Fix a regression bug in uart.write() causing data to be sent incomplete.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied