Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
matt
MegaGRRL
Commits
6c26139f
Commit
6c26139f
authored
Mar 20, 2021
by
natalie
💜
Browse files
Force OPN2 test registers to first bank
parent
c4b09ab8
Changes
1
Show whitespace changes
Inline
Side-by-side
firmware/main/driver.c
View file @
6c26139f
...
@@ -545,6 +545,7 @@ void Driver_FmOut(uint8_t Port, uint8_t Register, uint8_t Value) {
...
@@ -545,6 +545,7 @@ void Driver_FmOut(uint8_t Port, uint8_t Register, uint8_t Value) {
//these regs can be written to either bank. for dedup purposes, force them all to the first bank.
//these regs can be written to either bank. for dedup purposes, force them all to the first bank.
if
(
Port
)
{
if
(
Port
)
{
switch
(
Register
)
{
switch
(
Register
)
{
case
0x21
:
case
0x22
:
case
0x22
:
case
0x24
:
case
0x24
:
case
0x25
:
case
0x25
:
...
@@ -553,6 +554,7 @@ void Driver_FmOut(uint8_t Port, uint8_t Register, uint8_t Value) {
...
@@ -553,6 +554,7 @@ void Driver_FmOut(uint8_t Port, uint8_t Register, uint8_t Value) {
case
0x28
:
case
0x28
:
case
0x2a
:
case
0x2a
:
case
0x2b
:
case
0x2b
:
case
0x2c
:
Port
=
0
;
Port
=
0
;
break
;
break
;
default:
default:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment