forked from TeamTofuShop/segatools
mai2: update all LED boards to use two boards
This commit is contained in:
@ -27,7 +27,8 @@ void led15070_config_load(struct led15070_config *cfg, const wchar_t *filename)
|
||||
wchar_t tmpstr[16];
|
||||
|
||||
cfg->enable = GetPrivateProfileIntW(L"led15070", L"enable", 1, filename);
|
||||
cfg->port_no = GetPrivateProfileIntW(L"led15070", L"portNo", 0, filename);
|
||||
cfg->port_no[0] = GetPrivateProfileIntW(L"led15070", L"portNo1", 0, filename);
|
||||
cfg->port_no[1] = GetPrivateProfileIntW(L"led15070", L"portNo2", 0, filename);
|
||||
cfg->fw_ver = GetPrivateProfileIntW(L"led15070", L"fwVer", 0x90, filename);
|
||||
/* TODO: Unknown, no firmware file available */
|
||||
cfg->fw_sum = GetPrivateProfileIntW(L"led15070", L"fwSum", 0x0000, filename);
|
||||
|
@ -128,8 +128,9 @@ static DWORD CALLBACK idz_pre_startup(void)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
unsigned int led_port_no[2] = {11, 0};
|
||||
hr = led15070_hook_init(&idz_hook_cfg.led15070, idz_dll.led_init,
|
||||
idz_dll.led_set_fet_output, NULL, idz_dll.led_gs_update, 11, 1);
|
||||
idz_dll.led_set_fet_output, NULL, idz_dll.led_gs_update, led_port_no);
|
||||
|
||||
if (FAILED(hr)) {
|
||||
goto fail;
|
||||
|
@ -12,9 +12,9 @@ struct idz_dll {
|
||||
void (*jvs_read_shifter)(uint8_t *gear);
|
||||
void (*jvs_read_coin_counter)(uint16_t *total);
|
||||
HRESULT (*led_init)(void);
|
||||
void (*led_set_fet_output)(const uint8_t *rgb);
|
||||
void (*led_gs_update)(const uint8_t *rgb);
|
||||
void (*led_set_leds)(const uint8_t *rgb);
|
||||
void (*led_set_fet_output)(uint8_t board, const uint8_t *rgb);
|
||||
void (*led_gs_update)(uint8_t board, const uint8_t *rgb);
|
||||
void (*led_set_leds)(uint8_t board, const uint8_t *rgb);
|
||||
HRESULT (*ffb_init)(void);
|
||||
void (*ffb_toggle)(bool active);
|
||||
void (*ffb_constant_force)(uint8_t direction, uint8_t force);
|
||||
|
@ -192,5 +192,5 @@ static void idz_jvs_write_gpio(void *ctx, uint32_t state)
|
||||
state & IDZ_IO_LED_LEFT ? 0xFF : 0x00,
|
||||
};
|
||||
|
||||
idz_dll.led_set_leds(rgb_out);
|
||||
idz_dll.led_set_leds(0, rgb_out);
|
||||
}
|
||||
|
Reference in New Issue
Block a user