My Project
Loading...
Searching...
No Matches
main.h
Go to the documentation of this file.
1/* USER CODE BEGIN Header */
19/* USER CODE END Header */
20
21/* Define to prevent recursive inclusion -------------------------------------*/
22#ifndef __MAIN_H
23#define __MAIN_H
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29/* Includes ------------------------------------------------------------------*/
30#include "stm32f3xx_hal.h"
31
32/* Private includes ----------------------------------------------------------*/
33/* USER CODE BEGIN Includes */
34
35/* USER CODE END Includes */
36
37/* Exported types ------------------------------------------------------------*/
38/* USER CODE BEGIN ET */
39
40/* USER CODE END ET */
41
42/* Exported constants --------------------------------------------------------*/
43/* USER CODE BEGIN EC */
44
45/* USER CODE END EC */
46
47/* Exported macro ------------------------------------------------------------*/
48/* USER CODE BEGIN EM */
49
50/* USER CODE END EM */
51
52/* Exported functions prototypes ---------------------------------------------*/
53void Error_Handler(void);
54
55/* USER CODE BEGIN EFP */
56
57/* USER CODE END EFP */
58
59/* Private defines -----------------------------------------------------------*/
60
61/* USER CODE BEGIN Private defines */
62typedef struct note_struct{
63
64 uint32_t prev_active_pads; // the pads that were pressed the last time we checked
65 volatile uint32_t changed_pads; // the pads which have changed since the last time we checked their state
66 uint32_t active_notes; // the midi notes that have not had a 'note off' sent yet
67 uint32_t octave; // current octave of the device
68
70/* USER CODE END Private defines */
71
72#ifdef __cplusplus
73}
74#endif
75
76#endif /* __MAIN_H */
void Error_Handler(void)
This function is executed in case of error occurrence.
Definition: main.cpp:566
This file contains all the functions prototypes for the HAL module driver.
Definition: main.h:62
uint32_t octave
Definition: main.h:67
uint32_t prev_active_pads
Definition: main.h:64
uint32_t active_notes
Definition: main.h:66
volatile uint32_t changed_pads
Definition: main.h:65