Rev 76 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 76 | Rev 77 | ||
---|---|---|---|
Line 44... | Line 44... | ||
44 | /* USER CODE BEGIN ET */ |
44 | /* USER CODE BEGIN ET */ |
45 | 45 | ||
46 | #define TX_USART_BUFF_SIZ 512 |
46 | #define TX_USART_BUFF_SIZ 512 |
47 | #define RX_USART_BUFF_SIZ 512 |
47 | #define RX_USART_BUFF_SIZ 512 |
48 | 48 | ||
49 | #define MAXRDG 64 // can be quite large, this processor has a lot of RAM |
49 | enum { INFO_SIZE = PLX_MAX_OBS * PLX_MAX_INST_LIMIT}; // number of information storage elements |
50 | 50 | ||
51 | extern const int DialTimeout; |
51 | extern const int DialTimeout; |
52 | 52 | ||
53 | typedef struct |
53 | typedef struct |
54 | { |
54 | { |
55 | enum PLX_Observations Obs; ///< Observation type |
55 | enum PLX_Observations Obs; ///< Observation type |
56 | int8_t Instance; ///< Observation instance |
56 | int8_t Instance; ///< Observation instance |
57 | } uniqueObs_t; |
57 | } uniqueObs_t; |
58 | 58 | ||
59 | typedef struct |
59 | typedef struct |
60 | { |
60 | { |
61 | int Max; |
61 | int Max; |
Line 76... | Line 76... | ||
76 | int16_t dial1; ///< Display needle position 1 |
76 | int16_t dial1; ///< Display needle position 1 |
77 | uint16_t dial_timer; ///< Time of last NVRAM store |
77 | uint16_t dial_timer; ///< Time of last NVRAM store |
78 | } context_t; |
78 | } context_t; |
79 | 79 | ||
80 | extern uniqueObs_t const nullObs; |
80 | extern uniqueObs_t const nullObs; |
81 | - | ||
82 | extern context_t const nullContext; |
- | |
83 | 81 | ||
- | 82 | extern context_t const nullContext; |
|
- | 83 | ||
84 | extern info_t Info[MAXRDG]; |
84 | extern info_t Info[INFO_SIZE]; |
85 | 85 | ||
86 | extern context_t contexts[MAX_DISPLAYS]; |
86 | extern context_t contexts[MAX_DISPLAYS]; |
87 | 87 | ||
88 | // declarations need to be visible elsewhere |
88 | // declarations need to be visible elsewhere |
89 | extern SPI_HandleTypeDef hspi1; |
89 | extern SPI_HandleTypeDef hspi1; |
Line 157... | Line 157... | ||
157 | #define PLX_RX_GPIO_Port GPIOA |
157 | #define PLX_RX_GPIO_Port GPIOA |
158 | #define BT_RESET_Pin GPIO_PIN_11 |
158 | #define BT_RESET_Pin GPIO_PIN_11 |
159 | #define BT_RESET_GPIO_Port GPIOA |
159 | #define BT_RESET_GPIO_Port GPIOA |
160 | #define USB_PWR_Pin GPIO_PIN_12 |
160 | #define USB_PWR_Pin GPIO_PIN_12 |
161 | #define USB_PWR_GPIO_Port GPIOC |
161 | #define USB_PWR_GPIO_Port GPIOC |
- | 162 | ||
162 | /* USER CODE BEGIN Private defines */ |
163 | /* USER CODE BEGIN Private defines */ |
163 | 164 | ||
164 | /* USER CODE END Private defines */ |
165 | /* USER CODE END Private defines */ |
165 | 166 | ||
166 | #ifdef __cplusplus |
167 | #ifdef __cplusplus |