This commit is contained in:
Bertrand Songis
2019-07-15 13:59:26 +02:00
parent 6f397041de
commit e9704ec3bb
4 changed files with 10 additions and 2 deletions
@@ -105,6 +105,12 @@ extern "C" void INTMODULE_USART_IRQHandler(void)
}
}
void intmoduleSendByte(uint8_t byte)
{
while (!(INTMODULE_USART->SR & USART_SR_TXE));
USART_SendData(INTMODULE_USART, byte);
}
void intmoduleSendBuffer(const uint8_t * data, uint8_t size)
{
if (size == 0)
+1
View File
@@ -150,6 +150,7 @@ void init_intmodule_heartbeat();
void check_intmodule_heartbeat();
void intmoduleSerialStart(uint32_t baudrate, uint8_t rxEnable);
void intmoduleSendByte(uint8_t byte);
void intmoduleSendBuffer(const uint8_t * data, uint8_t size);
void intmoduleSendNextFrame();
+2 -2
View File
@@ -565,8 +565,8 @@
#define INTMODULE_DMA_FLAG_TC DMA_IT_TCIF7
#define INTMODULE_DMA_CHANNEL DMA_Channel_4
#if defined(PCBX12S)
#define INTMODULE_BOOT_GPIO GPIOI
#define INTMODULE_BOOT_GPIO_PIN GPIO_PIN_9 // PC.02
#define INTMODULE_BOOT_GPIO GPIOC
#define INTMODULE_BOOT_GPIO_PIN GPIO_PIN_2 // PC.02
#elif defined(PCBX10)
#define INTMODULE_BOOT_GPIO GPIOI
#define INTMODULE_BOOT_GPIO_PIN GPIO_PIN_9 // PI.09
+1
View File
@@ -122,6 +122,7 @@ uint32_t isBootloaderStart(const uint8_t * buffer);
#endif
void intmoduleSerialStart(uint32_t baudrate, uint8_t rxEnable);
void intmoduleSendByte(uint8_t byte);
void intmoduleSendBuffer(const uint8_t * data, uint8_t size);
void intmoduleSendNextFrame();