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
26
extern
"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 ---------------------------------------------*/
53
void
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 */
62
typedef
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
69
}
note_struct
;
70
/* USER CODE END Private defines */
71
72
#ifdef __cplusplus
73
}
74
#endif
75
76
#endif
/* __MAIN_H */
Error_Handler
void Error_Handler(void)
This function is executed in case of error occurrence.
Definition:
main.cpp:566
stm32f3xx_hal.h
This file contains all the functions prototypes for the HAL module driver.
note_struct
Definition:
main.h:62
note_struct::octave
uint32_t octave
Definition:
main.h:67
note_struct::prev_active_pads
uint32_t prev_active_pads
Definition:
main.h:64
note_struct::active_notes
uint32_t active_notes
Definition:
main.h:66
note_struct::changed_pads
volatile uint32_t changed_pads
Definition:
main.h:65
Core
Inc
main.h
Generated by
1.9.6