mirror of
https://github.com/V2RetroComputing/analog-firmware.git
synced 2024-06-11 13:29:32 +00:00
Jumper reading for Analog GS
This commit is contained in:
parent
0185620ff5
commit
d8ef103650
|
@ -11,6 +11,8 @@ volatile uint32_t busactive = 0;
|
||||||
volatile uint8_t __attribute__((section (".appledata."))) apple_memory[64*1024];
|
volatile uint8_t __attribute__((section (".appledata."))) apple_memory[64*1024];
|
||||||
volatile uint8_t __attribute__((section (".appledata."))) private_memory[64*1024];
|
volatile uint8_t __attribute__((section (".appledata."))) private_memory[64*1024];
|
||||||
|
|
||||||
|
volatile uint8_t jumpers = 0;
|
||||||
|
|
||||||
#ifdef FUNCTION_VGA
|
#ifdef FUNCTION_VGA
|
||||||
volatile uint8_t *text_p1 = apple_memory + 0x0400;
|
volatile uint8_t *text_p1 = apple_memory + 0x0400;
|
||||||
volatile uint8_t *text_p2 = apple_memory + 0x0800;
|
volatile uint8_t *text_p2 = apple_memory + 0x0800;
|
||||||
|
|
|
@ -16,6 +16,8 @@ extern volatile uint8_t cfbuf[4096];
|
||||||
#define config_cmdbuf ((uint8_t*)(apple_memory+0xC0F0+(cardslot<<8)))
|
#define config_cmdbuf ((uint8_t*)(apple_memory+0xC0F0+(cardslot<<8)))
|
||||||
#define config_rpybuf ((uint8_t*)(apple_memory+0xC0F8+(cardslot<<8)))
|
#define config_rpybuf ((uint8_t*)(apple_memory+0xC0F8+(cardslot<<8)))
|
||||||
|
|
||||||
|
extern volatile uint8_t jumpers;
|
||||||
|
|
||||||
#ifdef FUNCTION_VGA
|
#ifdef FUNCTION_VGA
|
||||||
extern volatile uint8_t *text_p1;
|
extern volatile uint8_t *text_p1;
|
||||||
extern volatile uint8_t *text_p2;
|
extern volatile uint8_t *text_p2;
|
||||||
|
|
|
@ -808,6 +808,12 @@ void DELAYED_COPY_CODE(config_handler)() {
|
||||||
config_rpybuf[rs++] = HWREV; // '1'
|
config_rpybuf[rs++] = HWREV; // '1'
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'j':
|
||||||
|
// Read jumpers
|
||||||
|
retval = REPLY_OK;
|
||||||
|
config_rpybuf[rs++] = jumpers;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'd':
|
case 'd':
|
||||||
// Identify Date Request
|
// Identify Date Request
|
||||||
retval = REPLY_OK;
|
retval = REPLY_OK;
|
||||||
|
|
|
@ -35,6 +35,9 @@ static void __noinline __time_critical_func(core1_loop)() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ANALOG_GS
|
||||||
|
jumpers = (value >> 26) & 0x3f;
|
||||||
|
#endif
|
||||||
busactive = 1;
|
busactive = 1;
|
||||||
|
|
||||||
if(CARD_SELECT) {
|
if(CARD_SELECT) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user