invert uart rx/tx generation to match wiredefs and interfacedef
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 21 Mar 2018 14:11:33 +0000 (14:11 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 21 Mar 2018 14:11:33 +0000 (14:11 +0000)
src/interface_decl.py

index 92d0b9aa2d994f9f903027d0c9c0c0e1aa8868e4..122de2d1d1da469011491babdeb7f9b4d808d5a6 100644 (file)
@@ -153,8 +153,8 @@ io_interface = IOInterface([{'name': 'io_outputval_{0}', 'enabled': False},
 # Outputs from the peripherals will be inputs to the pinmux
 # module. Hence the change in direction for most pins
 
-uartinterface_decl = Interface([{'name': 'tx_{0}', 'action': True},
-                                {'name': 'rx_{0}'},
+uartinterface_decl = Interface([{'name': 'rx_{0}'},
+                                {'name': 'tx_{0}', 'action': True},
                                 ])
 
 spiinterface_decl = Interface([{'name': 'sclk_{0}', 'action': True},