ProSoft Technology MVI69-ADM User Manual

Page 186

Advertising
background image

Application Development Function Library - ADM API

MVI-ADM ♦ 'C' Programmable

Developer's Guide

'C' Programmable Application Development Module

Page 186 of 342

ProSoft Technology, Inc.

February 20, 2013

ADM_SetConsolePort

Syntax

void ADM_SetConsolePort(int Port);

Parameters

Port

Com port to use as the console (COM1=0, COM2=1, COM3=2)

Description
ADM_SetConsolePort sets the specified communication port as the console. This
allows the console to be disabled in the BIOS setup and the application can still
configure the console for use.

MVI46 Note: The MVI46 should have the console disabled in the BIOS setup in order for the

module to avoid faulting the processor on power-on boot. The console can still be used if the

application uses ADM_SetConsolePort to enable console services and ADM_SetConsoleSpeed to
set the baud rate.

Return Value
None

Example

/* enable console on COM1 */
ADM_SetConsolePort(COM1);

See Also
ADM_SetConsoleSpeed (page 187)

Advertising