diff --git a/src/simpgmspace.cpp b/src/simpgmspace.cpp index a73858303..f0914bc24 100644 --- a/src/simpgmspace.cpp +++ b/src/simpgmspace.cpp @@ -67,7 +67,6 @@ char* eeprom_buffer_data; volatile int32_t eeprom_buffer_size; bool eeprom_read_operation; #define EESIZE (128*4096) -void configure_pins( uint32_t pins, uint16_t config ) { } #else extern uint16_t eeprom_pointer; extern const char* eeprom_buffer_data; @@ -646,4 +645,14 @@ FlagStatus USART_GetFlagStatus(USART_TypeDef* USARTx, uint16_t USART_FLAG) { ret void GPIO_PinAFConfig(GPIO_TypeDef* GPIOx, uint16_t GPIO_PinSource, uint8_t GPIO_AF) { } void USART_Init(USART_TypeDef* USARTx, USART_InitTypeDef* USART_InitStruct) { } void USART_Cmd(USART_TypeDef* USARTx, FunctionalState NewState) { } +void RCC_PLLI2SConfig(uint32_t PLLI2SN, uint32_t PLLI2SR) { } +void RCC_PLLI2SCmd(FunctionalState NewState) { } +void RCC_I2SCLKConfig(uint32_t RCC_I2SCLKSource) { } +void SPI_I2S_DeInit(SPI_TypeDef* SPIx) { } +void I2S_Init(SPI_TypeDef* SPIx, I2S_InitTypeDef* I2S_InitStruct) { } +void I2S_Cmd(SPI_TypeDef* SPIx, FunctionalState NewState) { } +void SPI_I2S_ITConfig(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT, FunctionalState NewState) { } +void RCC_LSEConfig(uint8_t RCC_LSE) { } +FlagStatus RCC_GetFlagStatus(uint8_t RCC_FLAG) { return RESET; } +ErrorStatus RTC_WaitForSynchro(void) { return ERROR; } #endif diff --git a/src/simpgmspace.h b/src/simpgmspace.h index a36e14c91..dc45b7963 100644 --- a/src/simpgmspace.h +++ b/src/simpgmspace.h @@ -359,4 +359,6 @@ inline void GPIO_Init(GPIO_TypeDef* GPIOx, GPIO_InitTypeDef* GPIO_InitStruct) { #define GPIO_ReadInputDataBit(...) true #endif +#define configure_pins(...) + #endif diff --git a/src/x9d/board_x9d.cpp b/src/x9d/board_x9d.cpp index 204ac1292..137649268 100644 --- a/src/x9d/board_x9d.cpp +++ b/src/x9d/board_x9d.cpp @@ -55,6 +55,7 @@ volatile uint32_t Tenms ; // TODO to remove everywhere / use a #define #define PIN_PORT_MASK 0x0700 #define PIN_SPEED_MASK 0x6000 +#if !defined(SIMU) void configure_pins( uint32_t pins, uint16_t config ) { uint32_t address ; @@ -98,6 +99,7 @@ void configure_pins( uint32_t pins, uint16_t config ) } } } +#endif uint8_t getTemperature() {