Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Rename ST7565_Configure_GPIO_B11 to ST7565_HardwareReset. (#59)
Browse files Browse the repository at this point in the history
Co-authored-by: Wouter van Gulik <[email protected]>
  • Loading branch information
wutje and Wouter van Gulik authored Oct 6, 2023
1 parent 8e1cf5e commit c79781a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ void APP_TimeSlice500ms(void)
AUDIO_PlaySingleVoice(true);
gReducedService = true;
FUNCTION_Select(FUNCTION_POWER_SAVE);
ST7565_Configure_GPIO_B11();
ST7565_HardwareReset();
GPIO_ClearBit(&GPIOB->DATA, GPIOB_PIN_BACKLIGHT);
} else {
AUDIO_PlaySingleVoice(false);
Expand Down
4 changes: 2 additions & 2 deletions driver/st7565.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void ST7565_FillScreen(uint8_t Value)
void ST7565_Init(void)
{
SPI0_Init();
ST7565_Configure_GPIO_B11();
ST7565_HardwareReset();
SPI_ToggleMasterMode(&SPI0->CR, false);
ST7565_WriteByte(0xE2);
SYSTEM_DelayMs(0x78);
Expand Down Expand Up @@ -142,7 +142,7 @@ void ST7565_Init(void)
ST7565_FillScreen(0x00);
}

void ST7565_Configure_GPIO_B11(void)
void ST7565_HardwareReset(void)
{
GPIO_SetBit(&GPIOB->DATA, GPIOB_PIN_ST7565_RES);
SYSTEM_DelayMs(1);
Expand Down
2 changes: 1 addition & 1 deletion driver/st7565.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void ST7565_BlitFullScreen(void);
void ST7565_BlitStatusLine(void);
void ST7565_FillScreen(uint8_t Value);
void ST7565_Init(void);
void ST7565_Configure_GPIO_B11(void);
void ST7565_HardwareReset(void);
void ST7565_SelectColumnAndLine(uint8_t Column, uint8_t Line);
void ST7565_WriteByte(uint8_t Value);

Expand Down

0 comments on commit c79781a

Please sign in to comment.