intce.h

#include <intce.h>

This header includes defines and prototypes for working with user interrupts.

Warning

As of hardware revision I, user interrupt vectors are no longer supported. Some functions will no longer work on the newer hardware, and are labeled as such. Feel free to send TI a strongly worded email about this limitation.

API Documentation

Interrupt configuring and setting.

This file provides routines for setting custom interrupt vectors for your program. Note that TI broke interrupt support in hardware revisions >= I, and they will not work. Use at your own risk.

Author

Matt “MateoConLechuga” Waltz

Author

Jacob “jacobly” Young

Defines

int_Enable()

Enable global interrupts.

int_Disable()

Diasble global interrupts.

int_Wait()

Blocking wait for an interrupt to trigger.

ON_IVECT

[on] key interrupt source

TIMER1_IVECT

Timer 1 interrupt source

TIMER2_IVECT

Timer 2 interrupt source

TIMER3_IVECT

Timer 3 interrupt source

TIMEROS_IVECT

Timer OS interrupt source

KEYBOARD_IVECT

Keyboard interrupt source

LCD_IVECT

LCD interrupt source

RTC_IVECT

Real Time Clock interrupt source.

USB_IVECT

USB interrupt source

INT_ON

[on] key interrupt source mask

INT_TIMER1

Timer 1 interrupt source mask

INT_TIMER2

Timer 2 interrupt source mask

INT_TIMER3

Timer 3 interrupt source mask

INT_TIMEROS

Timer OS interrupt source mask

INT_KEYBOARD

Keyboard interrupt source mask

INT_LCD

LCD interrupt source mask

INT_RTC

Real Time Clock interrupt source mask.

INT_USB

USB interrupt source mask

int_RawStatus

State of interrupt signals

int_MaskedStatus

Masked state of interrupt signals.

int_EnableConfig

Enabled interrupt signals

int_LatchConfig

Latchable interrupt signals

int_InvertConfig

Invertable interrupt signals

int_Acknowledge

Acknowledge interrupt signals

Functions

void int_Initialize(void)

Initizalize to use custom interrupts.

Note

Saves status of current interrupt state.

Warning

TI broke interrupt support on CE models with hardware revision >= I.

void int_Reset(void)

Resets interrupts back to the OS expected values.

Warning

Must have called int_Initialize before using.

Warning

TI broke interrupt support on CE models with hardware revision >= I.

void int_SetVector(uint8_t ivect, void (*handler)(void))

Sets up an interrupt vector given an ISR.

Warning

TI broke interrupt support on CE models with hardware revision >= I.

Parameters
  • ivect – Interrupt vector to set.

  • handler – Handler to interrupt service routine.