File "vectors.c"
Full Path: /home/analogde/www/68hc11/vectors.c
File size: 1.83 KB
MIME-type: text/x-c
Charset: utf-8
5a0
HTTP/1.1 200 OK
Date: Sat, 18 Jun 2005 20:18:37 GMT
Server: Apache/1.3.26 (Unix) Debian GNU/Linux mod_perl/1.26 mod_ssl/2.8.9 OpenSSL/0.9.6g PHP/4.1.2
Last-Modified: Mon, 11 Sep 2000 15:06:15 GMT
ETag: "11778dd-753-39bcf4e7"
Accept-Ranges: bytes
Content-Length: 1875
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: text/x-csrc
/* This file specifies the interrupt vectors including SWI and reset
* As is, most interrupts except reset jumps to 0xf000, which is most
* likely not going to useful. To replace an entry, declare your function,
* and then change the corresponding entry in the table. For example,
* if you have a SCI handler, add a #pragma before the function, e.g.,
* #pragma interrupt_handler SCIHandler()
* then in this file add:
* extern void SCIHandler();
* before the table.
* In the SCI entry, change:
* DUMMY_ENTRY,
* to
* SCIHandler,
*/
extern void _start(); /* entry point in crt??.s */
extern void TOFhandler();
#define DUMMY_ENTRY (void (*)())0xF000
#ifdef _HC12
#pragma abs_address:0xffce
#else /* HC11 */
#pragma abs_address:0xffd6
#endif
/* change the above address if your vector starts elsewhere */
void (*interrupt_vectors[])() =
{
/* to cast a constant, say 0xb600, use
(void (*)())0xb600
*/
#ifdef _HC12
DUMMY_ENTRY, /* ffce 812 KeyWakeUpH */
DUMMY_ENTRY, /* ffd0 912 BDLC, 812 KeyWakeUpJ */
DUMMY_ENTRY, /* ffd2 ATD */
DUMMY_ENTRY, /* ffd4
1b3
812 SCI1 */
#endif
DUMMY_ENTRY, /* ffd6 SCI, 812 SCI0 */
DUMMY_ENTRY, /* ffd8 SPI */
DUMMY_ENTRY, /* ffda PAIE */
DUMMY_ENTRY, /* ffdc PAO */
TOFhandler, /* ffde TOF */
DUMMY_ENTRY, /* ffe0 TOC5 */ /* HC12 TC7 */
DUMMY_ENTRY, /* ffe2 TOC4 */ /* TC6 */
DUMMY_ENTRY, /* ffe4 TOC3 */ /* TC5 */
DUMMY_ENTRY, /* ffe6 TOC2 */ /* TC4 */
DUMMY_ENTRY, /* ffe8 TOC1 */ /* TC3 */
DUMMY_ENTRY, /* ffea TIC3 */ /* TC2 */
DUMMY_ENTRY
0