HomeAut
Main Page
Data Structures
Files
File List
Globals
IO.h
1
/*******************************************************************************
2
* Purpose:
3
******************************************************************************/
4
5
#ifndef IO_H_
6
#define IO_H_
7
8
9
/*------------------------------------------------------------------------------
10
* Includes
11
*----------------------------------------------------------------------------*/
12
#include "include.h"
13
14
15
/*------------------------------------------------------------------------------
16
* Macros & definitions
17
*----------------------------------------------------------------------------*/
18
19
20
#define RELAY_1_OFF() HAL_GPIO_WritePin(RELAY_1_GPIO_PORT,RELAY_1_GPIO_PIN,GPIO_PIN_RESET)
21
#define RELAY_1_ON() HAL_GPIO_WritePin(RELAY_1_GPIO_PORT,RELAY_1_GPIO_PIN,GPIO_PIN_SET)
22
#define RELAY_1_TOGGLE() HAL_GPIO_TogglePin(RELAY_1_GPIO_PORT,RELAY_1_GPIO_PIN)
23
24
25
#define RELAY_2_OFF() HAL_GPIO_WritePin(RELAY_2_GPIO_PORT,RELAY_2_GPIO_PIN,GPIO_PIN_RESET)
26
#define RELAY_2_ON() HAL_GPIO_WritePin(RELAY_2_GPIO_PORT,RELAY_2_GPIO_PIN,GPIO_PIN_SET)
27
28
29
/*------------------------------------------------------------------------------
30
* Type definitions
31
*----------------------------------------------------------------------------*/
32
33
34
/*------------------------------------------------------------------------------
35
* Global variables
36
*----------------------------------------------------------------------------*/
37
extern
uint8_t GLOBAL_IO_Sensor_Motion_Move;
38
extern
uint8_t GLOBAL_IO_Sensor_Sound_Impact_Sound;
39
40
41
42
/*------------------------------------------------------------------------------
43
* Local variables
44
*----------------------------------------------------------------------------*/
45
46
47
/*------------------------------------------------------------------------------
48
* Local function declarations
49
*----------------------------------------------------------------------------*/
50
51
52
/*------------------------------------------------------------------------------
53
* Global function declarations
54
*----------------------------------------------------------------------------*/
55
#ifdef CONFIG_MODULE_IO_ENABLE
56
void
IO_Init (
void
);
57
#endif
58
59
60
61
#endif
/* IO_H_ */
Inc
IO.h
Generated by
1.8.11