Mercurial > public > ostc4
comparison Discovery/Inc/ostc.h @ 1032:33b91584d827 Puls_Integration
New CV Pulse:
The basic infrastructure for external puls measurement via Bluetooth has been added. Precondition is an OSTC with an activated central role. The OSTC will then search for a BLE device with puls measurement service. Reading data and visualization is not implemented yet.
| author | Ideenmodellierer |
|---|---|
| date | Mon, 28 Jul 2025 18:34:45 +0200 |
| parents | 8d3f3a635397 |
| children | 5f66e44d69f0 |
comparison
equal
deleted
inserted
replaced
| 1031:cd4561c33758 | 1032:33b91584d827 |
|---|---|
| 58 #define SDRAM_MODEREG_WRITEBURST_MODE_SINGLE ((uint16_t)0x0200) | 58 #define SDRAM_MODEREG_WRITEBURST_MODE_SINGLE ((uint16_t)0x0200) |
| 59 | 59 |
| 60 #define DISPLAY_VERSION_LCD (0u) | 60 #define DISPLAY_VERSION_LCD (0u) |
| 61 #define DISPLAY_VERSION_NEW (1u) | 61 #define DISPLAY_VERSION_NEW (1u) |
| 62 | 62 |
| 63 #define CHUNK_SIZE (150u) /* the DMA will handle chunk size transfers */ | |
| 64 #define CHUNKS_PER_BUFFER (3u) | |
| 65 | |
| 66 | |
| 63 /* Exported variables --------------------------------------------------------*/ | 67 /* Exported variables --------------------------------------------------------*/ |
| 64 | 68 |
| 65 extern SPI_HandleTypeDef hspiDisplay; | 69 extern SPI_HandleTypeDef hspiDisplay; |
| 66 extern SPI_HandleTypeDef cpu2DmaSpi; | 70 extern SPI_HandleTypeDef cpu2DmaSpi; |
| 67 | 71 |
| 80 /* Exported functions --------------------------------------------------------*/ | 84 /* Exported functions --------------------------------------------------------*/ |
| 81 | 85 |
| 82 void MX_SPI_Init(void); | 86 void MX_SPI_Init(void); |
| 83 void MX_GPIO_Init(void); | 87 void MX_GPIO_Init(void); |
| 84 void MX_UART_Init(void); | 88 void MX_UART_Init(void); |
| 89 void MX_UART_BT_Init_DMA(); | |
| 85 uint8_t MX_UART_ButtonAdjust(uint8_t *array); | 90 uint8_t MX_UART_ButtonAdjust(uint8_t *array); |
| 86 | 91 |
| 87 void MX_SmallCPU_Reset_To_Boot(void); | 92 void MX_SmallCPU_Reset_To_Boot(void); |
| 88 void MX_SmallCPU_Reset_To_Standard(void); | 93 void MX_SmallCPU_Reset_To_Standard(void); |
| 89 void MX_SmallCPU_NO_Reset_Helper(void); | 94 void MX_SmallCPU_NO_Reset_Helper(void); |
| 102 void MX_TestPin_Low(void); | 107 void MX_TestPin_Low(void); |
| 103 | 108 |
| 104 void SetDisplayVersion(uint8_t version); | 109 void SetDisplayVersion(uint8_t version); |
| 105 uint8_t isNewDisplay(void); | 110 uint8_t isNewDisplay(void); |
| 106 | 111 |
| 112 uint8_t UART_getChar(); | |
| 113 void UART_StartDMARx(); | |
| 114 | |
| 107 | 115 |
| 108 #endif // OSTC_H | 116 #endif // OSTC_H |
