Rev 77 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 77 | Rev 80 | ||
|---|---|---|---|
| Line 31... | Line 31... | ||
| 31 | /* Includes ------------------------------------------------------------------*/ |
31 | /* Includes ------------------------------------------------------------------*/ |
| 32 | #include "stm32l1xx_hal.h" |
32 | #include "stm32l1xx_hal.h" |
| 33 | 33 | ||
| 34 | /* Private includes ----------------------------------------------------------*/ |
34 | /* Private includes ----------------------------------------------------------*/ |
| 35 | /* USER CODE BEGIN Includes */ |
35 | /* USER CODE BEGIN Includes */ |
| - | 36 | #if defined SEMIHOSTING |
|
| - | 37 | #include <stdio.h> |
|
| - | 38 | extern void initialise_monitor_handles(void); |
|
| - | 39 | #endif |
|
| - | 40 | ||
| 36 | #include "display.h" |
41 | #include "display.h" |
| 37 | #include "nvram.h" |
42 | #include "nvram.h" |
| 38 | 43 | ||
| 39 | #include "libPLX/plx.h" |
44 | #include "libPLX/plx.h" |
| 40 | 45 | ||
| Line 72... | Line 77... | ||
| 72 | { |
77 | { |
| 73 | int8_t knobPos; ///< User interface knob position |
78 | int8_t knobPos; ///< User interface knob position |
| 74 | uniqueObs_t OldObservation; ///< Previous item observed |
79 | uniqueObs_t OldObservation; ///< Previous item observed |
| 75 | int16_t dial0; ///< Display needle position 0 |
80 | int16_t dial0; ///< Display needle position 0 |
| 76 | int16_t dial1; ///< Display needle position 1 |
81 | int16_t dial1; ///< Display needle position 1 |
| 77 | uint16_t dial_timer; ///< Time of last NVRAM store |
82 | uint32_t dial_timer; ///< Timestamp for next NVRAM store |
| 78 | } context_t; |
83 | } context_t; |
| 79 | 84 | ||
| 80 | extern uniqueObs_t const nullObs; |
85 | extern uniqueObs_t const nullObs; |
| 81 | 86 | ||
| 82 | extern context_t const nullContext; |
87 | extern context_t const nullContext; |
| Line 106... | Line 111... | ||
| 106 | /* USER CODE BEGIN EM */ |
111 | /* USER CODE BEGIN EM */ |
| 107 | 112 | ||
| 108 | /* USER CODE END EM */ |
113 | /* USER CODE END EM */ |
| 109 | 114 | ||
| 110 | /* Exported functions prototypes ---------------------------------------------*/ |
115 | /* Exported functions prototypes ---------------------------------------------*/ |
| - | 116 | ||
| - | 117 | ||
| - | 118 | ||
| 111 | void Error_Handler(void); |
119 | void Error_Handler(void); |
| 112 | 120 | ||
| 113 | /* USER CODE BEGIN EFP */ |
121 | /* USER CODE BEGIN EFP */ |
| - | 122 | ||
| - | 123 | ||
| 114 | extern context_t context[MAX_DISPLAYS]; |
124 | extern context_t context[MAX_DISPLAYS]; |
| 115 | 125 | ||
| - | 126 | /// @brief Reset the dial timer |
|
| - | 127 | /// @param index |
|
| - | 128 | void resetDialTimer(int index); |
|
| - | 129 | ||
| 116 | extern uint8_t btConnected(); |
130 | extern uint8_t btConnected(); |
| 117 | 131 | ||
| 118 | extern uint8_t isValid(int i); |
132 | extern uint8_t isValid(int i); |
| 119 | /* USER CODE END EFP */ |
133 | /* USER CODE END EFP */ |
| 120 | 134 | ||