-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPORT_PROGRAM.c
More file actions
30 lines (26 loc) · 957 Bytes
/
PORT_PROGRAM.c
File metadata and controls
30 lines (26 loc) · 957 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
/***************************************************************/
/***************************************************************/
/************ Author: A. S. Eldesouky ************/
/************ Layer: MCAL ************/
/************ SWC: PORT ************/
/************ Date: 31-8-2020 ************/
/************ Version: 1.00 ************/
/***************************************************************/
/***************************************************************/
#include "STD_TYPE.h"
/* Must Include PORT_CONFIG.h before PORT_PRIVATE.h */
#include "PORT_CONFIG.h"
#include "PORT_INTERFACE.h"
#include "PORT_PRIVATE.h"
#include "PORT_REGISTER.h"
void PORT_VoidInit (void)
{
DDRA = PORTA_DIR ;
DDRB = PORTB_DIR ;
DDRC = PORTC_DIR ;
DDRD = PORTD_DIR ;
PORTA = PORTA_INITIAl_VALUE ;
PORTB = PORTB_INITIAl_VALUE ;
PORTC = PORTC_INITIAl_VALUE ;
PORTD = PORTD_INITIAl_VALUE ;
}