summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/lcd.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-09-30 22:26:59 +0100
committerDamien George <damien.p.george@gmail.com>2014-09-30 22:36:47 +0100
commitbfa7b480a7a537fc5496c8d9ffbf560f3a02314d (patch)
tree2b43899291c8b95c69fac45aed09f6fccbcc511f /stmhal/lcd.c
parent8b03d944e2ae64f7987116ff342fbd1cc3b97b71 (diff)
downloadmicropython-bfa7b480a7a537fc5496c8d9ffbf560f3a02314d.tar.gz
micropython-bfa7b480a7a537fc5496c8d9ffbf560f3a02314d.zip
stmhal: For spi_init, add argument to select if NSS pin is enabled.
Most of the time you don't use the NSS pin of the SPI bus, and so it shouldn't be enabled by default (this gave some bugs in the past).
Diffstat (limited to 'stmhal/lcd.c')
-rw-r--r--stmhal/lcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/lcd.c b/stmhal/lcd.c
index ea7699be7d..a47fffcd94 100644
--- a/stmhal/lcd.c
+++ b/stmhal/lcd.c
@@ -263,7 +263,7 @@ STATIC mp_obj_t pyb_lcd_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n
init->CRCPolynomial = 0;
// init the SPI bus
- spi_init(lcd->spi);
+ spi_init(lcd->spi, false);
// set the pins to default values
lcd->pin_cs1->gpio->BSRRL = lcd->pin_cs1->pin_mask;