-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbsp_gpio.h
More file actions
35 lines (28 loc) · 768 Bytes
/
bsp_gpio.h
File metadata and controls
35 lines (28 loc) · 768 Bytes
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
/* ========================================
*
* Copyright YOUR COMPANY, THE YEAR
* All Rights Reserved
* UNPUBLISHED, LICENSED SOFTWARE.
*
* CONFIDENTIAL AND PROPRIETARY INFORMATION
* WHICH IS THE PROPERTY OF your company.
*
* ========================================
*/
#include <cpu.h>
#include <Pin_1.h>
#include <Pin_2.h>
#include <push_button.h>
#define HIGH 1
#define LOW 0
#define PORT1 (1<<0)
#define PORT2 (1<<1)
#define P1_6 (1<<6)
#define P2_0 (1<<0)
#define P2_1 (1<<1)
#define P2_2 (1<<2)
CPU_VOID init_gpio(CPU_VOID);
CPU_INT08U gpio_high(CPU_INT08U port, CPU_INT08U pin);
CPU_INT08U gpio_low(CPU_INT08U port, CPU_INT08U pin);
CPU_INT08S gpio_read(CPU_INT08U port, CPU_INT08U pin);
/* [] END OF FILE */