cortexelf-v1: Make bit flipping array constant
[fw/altos] / src / cortexelf-v1 / ao_1802.h
1 /*
2  * Copyright © 2017 Keith Packard <keithp@keithp.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  */
14
15 #ifndef _AO_1802_H_
16 #define _AO_1802_H_
17
18 /* Signals muxed between 1802 and STM */
19 extern uint8_t          MRD, TPB, TPA, MWR;
20
21 /* Decoded address driven by TPA/TPB signals */
22 extern uint16_t         ADDRESS;
23
24 /* Decoded data, driven by TPB signal */
25 extern uint8_t          DATA;
26
27 extern uint8_t          SC;
28
29 #define SC_FETCH        0
30 #define SC_EXECUTE      1
31 #define SC_DMA          2
32 #define SC_INTERRUPT    3
33
34 #endif /* _AO_1802_H_ */