Skip to content

Commit

Permalink
fixed simulator build
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Mar 12, 2021
1 parent 412f801 commit 4505315
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/eez/firmware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ void boot() {
#ifdef __EMSCRIPTEN__
g_mcuRevision = MCU_REVISION_R3B3;
#else

#if defined(EEZ_PLATFORM_STM32)
GPIO_InitTypeDef GPIO_InitStruct = {0};

HAL_GPIO_WritePin(LCD_BRIGHTNESS_GPIO_Port, LCD_BRIGHTNESS_Pin, GPIO_PIN_SET);
Expand All @@ -165,6 +167,7 @@ void boot() {
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(R2B4_LCD_BRIGHTNESS_GPIO_Port, &GPIO_InitStruct);
#endif

g_mcuRevision = psu::gui::askMcuRevision();
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/eez/modules/bp3c/io_exp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ HAL_StatusTypeDef read(uint8_t reg, uint8_t *pValue) {
}
#endif

#if defined(EEZ_PLATFORM_STM32)
bool doTest() {
#if EEZ_BP3C_REVISION_R1B1
// all 4 pins are output (bit 0, 1, 2 and 3 should be set to 0)
Expand All @@ -119,6 +120,7 @@ bool doTest() {

return false;
}
#endif

void init() {
#if defined(EEZ_PLATFORM_STM32)
Expand Down

0 comments on commit 4505315

Please sign in to comment.