Skip to content

Commit 4505315

Browse files
committed
fixed simulator build
1 parent 412f801 commit 4505315

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/eez/firmware.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ void boot() {
150150
#ifdef __EMSCRIPTEN__
151151
g_mcuRevision = MCU_REVISION_R3B3;
152152
#else
153+
154+
#if defined(EEZ_PLATFORM_STM32)
153155
GPIO_InitTypeDef GPIO_InitStruct = {0};
154156

155157
HAL_GPIO_WritePin(LCD_BRIGHTNESS_GPIO_Port, LCD_BRIGHTNESS_Pin, GPIO_PIN_SET);
@@ -165,6 +167,7 @@ void boot() {
165167
GPIO_InitStruct.Pull = GPIO_NOPULL;
166168
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
167169
HAL_GPIO_Init(R2B4_LCD_BRIGHTNESS_GPIO_Port, &GPIO_InitStruct);
170+
#endif
168171

169172
g_mcuRevision = psu::gui::askMcuRevision();
170173
#endif

src/eez/modules/bp3c/io_exp.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ HAL_StatusTypeDef read(uint8_t reg, uint8_t *pValue) {
9595
}
9696
#endif
9797

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

120121
return false;
121122
}
123+
#endif
122124

123125
void init() {
124126
#if defined(EEZ_PLATFORM_STM32)

0 commit comments

Comments
 (0)