Skip to content

Commit

Permalink
ignore spellings
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Oct 18, 2023
1 parent 859b525 commit 927725e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .pylint_dict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@
# limitations under the License.

# Our abbreviations/names
bmp
cpu
iobuf
scp
Spalloc
bmpc
ybug
txrx
xys

# Our special words
keepalive
Expand All @@ -29,7 +34,15 @@ BMPConnectionData
BufferedIOBase
CoreSubset
CPUInfo
CPUInfos
CPUState
DiagnosticFilter
DiagnosticFilterDestination
DiagnosticFilterDefaultRoutingStatus
DiagnosticFilterEmergencyRoutingStatus
DiagnosticFilterPacketType
DiagnosticFilterSource
ExecutableType
HeapElement
IOBuffer
RawIOBase
Expand Down
7 changes: 4 additions & 3 deletions spinnman/messages/scp/impl/write_fpga_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
_ONE_WORD = struct.Struct("<I")


# pylint: disable=wrong-spelling-in-docstring
class WriteFPGARegister(BMPRequest):
"""
A request for writing a word to a FPGA (SPI) register.
Expand All @@ -36,17 +37,17 @@ class WriteFPGARegister(BMPRequest):
"""
__slots__ = []

def __init__(self, fpga_num, addr, value, board):
def __init__(self, fpga_num, address, value, board):
"""
:param int fpga_num: FPGA number (0, 1 or 2) to communicate with.
:param int addr: Register address to read or write to (will be rounded
:param int address: Register address to read or write to (will be rounded
down to the nearest 32-bit word boundary).
:param int value: A 32-bit int value to write to the register
"""
super().__init__(
board,
SCPRequestHeader(command=SCPCommand.CMD_LINK_WRITE),
argument_1=addr & (~0x3), argument_2=4, argument_3=fpga_num,
argument_1=address & (~0x3), argument_2=4, argument_3=fpga_num,
data=_ONE_WORD.pack(value))

@overrides(AbstractSCPRequest.get_scp_response)
Expand Down

0 comments on commit 927725e

Please sign in to comment.