Renesas M16C/62P Group User Manual

Page 75

Advertising
background image

Rev.1.00 2007.11.1
REC10B0002-0100

73

Functionality

I/O port

Reference

__ReadIOPort

,

__WriteIOPort

,

__SetIOPortRegister

,

__ReadIOPortRegister

,

__WriteIOPortRegister

Remark

If an undefined value is specified in the first argument, operation of the API cannot

be guaranteed.

Program example

#include " rapi_io_port_m16c_62p.h"

void func( void )
{
/* Set up port P03 as input port */
__SetIOPort(RAPI_PORT_0_3| RAPI_PORT_INPUT| RAPI_PULLED_HIGH, 0 );
}

Advertising