From 1793ded89fcfcaa98cdc4c4bcfe7f33cceef5213 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 13 Jul 2023 15:41:49 +0200 Subject: [PATCH] test-sinclair: SS is not used at all --- test-sinclair/README | 2 +- test-sinclair/main.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/test-sinclair/README b/test-sinclair/README index 39eb505..cdb49b8 100644 --- a/test-sinclair/README +++ b/test-sinclair/README @@ -26,5 +26,5 @@ BluePill LED | PC13 GND | | RESET PB15 | MOSI2 - LED driver data input | 3.3 V PB14 | MISO2 - unused | GND PB13 | SCK2 - LED driver clock - | GND PB12 | SS2 - LED driver non-inverted select + | GND PB12 | SS2 - unused +--------------------+ diff --git a/test-sinclair/main.c b/test-sinclair/main.c index aa2441f..07c0d7d 100644 --- a/test-sinclair/main.c +++ b/test-sinclair/main.c @@ -55,10 +55,8 @@ static void gpio_init(void) gpio_set_mode(GPIOC, GPIO_MODE_OUTPUT_50_MHZ, GPIO_CNF_OUTPUT_PUSHPULL, GPIO13); gpio_clear(GPIOC, GPIO13); - // PB12 = SS2 (but used as GP input) // PB13 = SCK2 // PB15 = MOSI2 - gpio_set_mode(GPIOB, GPIO_MODE_INPUT, GPIO_CNF_INPUT_FLOAT, GPIO12); gpio_set_mode(GPIOB, GPIO_MODE_INPUT, GPIO_CNF_INPUT_FLOAT, GPIO13); gpio_set_mode(GPIOB, GPIO_MODE_INPUT, GPIO_CNF_INPUT_FLOAT, GPIO15); } -- 2.39.2