-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcallback.h
More file actions
58 lines (41 loc) · 1.5 KB
/
Copy pathcallback.h
File metadata and controls
58 lines (41 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**
******************************************************************************
* @file callback.h
* @brief 定时器回调函数声明
*
* 本文件回调函数的声明和相关类型定义。
*
* @author zzm
* @date
* @version 1.0
*
* @copyright Copyright (c) 2024
*
* @note 此文件为定时器回调函数的头文件,需要在使用定时器中断时包含
******************************************************************************
*/
#ifndef __TIM_CALLBACK_H
#define __TIM_CALLBACK_H
#include <stdint.h>
#include "stm32h7xx_hal.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/* Exported functions prototypes ---------------------------------------------*/
/**
* @brief 分发应用定时器中断,由 main.c 的 USER CODE Callback 1 调用。
* @note HAL Tick 由 CubeMX 生成的 HAL 回调入口维护,此处不重复递增。
*/
void TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim);
void SPI2_Callback(uint8_t *Tx_Buffer, uint8_t *Rx_Buffer, uint16_t Tx_Length, uint16_t Rx_Length);
void OSPI2_Polling_Callback();
void OSPI2_Rx_Callback(uint8_t *Buffer);
void OSPI2_Tx_Callback(uint8_t *Buffer);
#ifdef __cplusplus
}
#endif
#endif /* __TIM_CALLBACK_H */