17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

perform_activity();<br />

}<br />

Some of the <strong>PCB</strong> chips are share the WDT prescalar bits with timer0 so the WDT prescalar<br />

constants can be used with setup_counters or setup_timer0 or setup_wdt functions.<br />

interrupt_enabled()<br />

This function checks the interrupt enabled flag for the specified interrupt and returns<br />

TRUE if set.<br />

Syntax<br />

Parameters<br />

Returns<br />

Function<br />

Availability<br />

Requires<br />

Examples<br />

Example Files<br />

Also see<br />

interrupt_enabled(interrupt);<br />

interrupt- constant specifying the interrupt<br />

Boolean value<br />

The function checks the interrupt enable flag of the specified<br />

interrupt and returns TRUE when set.<br />

Devices with interrupts<br />

Interrupt constants defined in the device's .h file.<br />

if(interrupt_enabled(INT_RDA))<br />

disable_interrupt(INT_RDA);<br />

None<br />

DISABLE_INTERRUPTS(), , Interrupts Overview,<br />

CLEAR_INTERRUPT(),<br />

ENABLE_INTERRUPTS(),,INTERRUPT_ACTIVE()<br />

Stream I/O<br />

Syntax:<br />

#include is required to use any of the ios identifiers.<br />

Output:<br />

output:<br />

stream

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!