Mobil_surveillance_system 1
Functions
Ports.c File Reference

Ports source file. More...

#include "Ports.h"

Go to the source code of this file.

Functions

void Ports_setPort2Pin (unsigned char ucPin)

Detailed Description

Ports source file.

Definition in file Ports.c.


Function Documentation

void Ports_setPort2Pin ( unsigned char  ucPin)
Parameters:
ucPin,:Number of the ports's pin.

Definition at line 11 of file Ports.c.

{
    // set pin to output 
    SET_BIT(P2DIR, ucPin);
    // set output to high
    SET_BIT(P2OUT, ucPin);
}
 All Data Structures Files Functions Variables Typedefs Enumerations Defines