From 101297b3a0f4fab7e1aa02082727abd4821f44ed Mon Sep 17 00:00:00 2001 From: Wouter van Gulik Date: Wed, 11 Oct 2023 08:56:24 +0200 Subject: [PATCH] st7565: Make ST7565_WriteByte static aka local to file --- driver/st7565.c | 4 +++- driver/st7565.h | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/driver/st7565.c b/driver/st7565.c index 2aa7cf0..ccdce14 100644 --- a/driver/st7565.c +++ b/driver/st7565.c @@ -32,6 +32,8 @@ uint8_t g_frame_buffer[7][128]; uint8_t contrast = 31; // 0 ~ 63 #endif +static void ST7565_WriteByte(uint8_t Value); + static inline void ST7565_LowLevelWrite(uint8_t Value) { /* Wait for space in the fifo */ @@ -234,7 +236,7 @@ void ST7565_SelectColumnAndLine(const uint8_t Column, const uint8_t Line) SPI_WaitForUndocumentedTxFifoStatusBit(); } -void ST7565_WriteByte(const uint8_t Value) +static void ST7565_WriteByte(uint8_t Value) { GPIO_ClearBit(&GPIOB->DATA, GPIOB_PIN_ST7565_A0); ST7565_LowLevelWrite(Value); diff --git a/driver/st7565.h b/driver/st7565.h index 467bce8..38de4cb 100644 --- a/driver/st7565.h +++ b/driver/st7565.h @@ -33,11 +33,9 @@ void ST7565_FillScreen(const uint8_t Value); void ST7565_Init(const bool full); void ST7565_HardwareReset(void); void ST7565_SelectColumnAndLine(const uint8_t Column, const uint8_t Line); -void ST7565_WriteByte(const uint8_t Value); #ifdef ENABLE_CONTRAST void ST7565_SetContrast(const uint8_t value); uint8_t ST7565_GetContrast(void); #endif - #endif