Commit Graph

24 Commits

Author SHA1 Message Date
Lars Kruse 5968b8a856 Update python references to python3
Python2 is end-of-life [1] since the 1st of January 2020.

Some distributions (most notably: Debian and its derivatives) will stop
providing a `python` executable in order to encourage users to specify
the interpreter language of local scripts explicitly.  Users of such
environments will be forced to work around this in one of these ways:

* create a virtual environment or
* manipulate the shebangs of the scripts or
* install the python2 package (as long as it is provided by distributions)

All currently maintained distribution releases provide python3.
In the near future distributions will need to remove python2, since it
is not maintained anymore.

PEP-394 [2] recommends to reference a specific python version
(python2 or python3), if the script is not expected to run in a virtual
environment.

Closes: #1265

[1] https://www.python.org/dev/peps/pep-0373/#update-april-2014
[2] https://www.python.org/dev/peps/pep-0394/#for-python-script-publishers

Amended-by: Karl Palsson <karlp@tweak.net.au>
* moved lpc43xx scripts to explicitly call python2, they have not been
  ported, and are effectively unmaintained, but switching them to
  python3 unconditionally would be unhelpful.
2020-11-28 22:13:25 +00:00
Mike Naberezny 860d10940b Remove unused Python imports 2017-06-23 14:42:59 +00:00
Ben Gamari 580be39e47 lpc43xx: Convert register definitions to YAML 2013-07-07 13:52:14 -07:00
Ben Gamari 4fd218ad4c lpc43xx/gen.py: Take YAML input 2013-07-07 13:52:14 -07:00
Ben Gamari 4d6a5d9606 lpc43xx: Move YAML OrderedDict code to separate module 2013-07-07 13:52:14 -07:00
Ben Gamari 21e4d4600f lpc43xx: Add script to convert CSV files to YAML 2013-07-07 13:52:14 -07:00
Ben Gamari 036cb51676 lpc43xx/gpdma.csv: Fix INTSTAT register name 2013-07-07 13:52:14 -07:00
Jared Boone e9eacc60ac Change header generation script to produce function-like #define macros for single-bit fields, too. 2013-07-07 13:52:10 -07:00
Jared Boone 5359dd245e Fixed typo in SGPIO_MUX_CFGx CLK_SOURCE_SLICE_MODE bit offset and width. 2013-07-07 13:52:10 -07:00
Michael Ossmann 2946de9f5d ritimer.csv 2013-07-07 13:52:10 -07:00
Michael Ossmann 922beb0730 gima.csv 2013-07-07 13:52:09 -07:00
Michael Ossmann e3ad0c6dc8 gpio.csv 2013-07-07 13:52:09 -07:00
Michael Ossmann 6a5deb7282 eventrouter.csv 2013-07-07 13:52:09 -07:00
Michael Ossmann 56361f7123 ccu.csv 2013-07-07 13:52:08 -07:00
Michael Ossmann 7b0cc0c6a3 atimer.csv 2013-07-07 13:52:08 -07:00
Michael Ossmann 299806bc4e csv contributions from GNU Radio Conference 2012 HackFest. Thanks, David! 2013-07-07 13:52:08 -07:00
Michael Ossmann df2ac8bbac scu.csv 2013-07-07 13:52:08 -07:00
Jared Boone b5ba6451af Fixed typo from user manual. 2013-07-07 13:52:08 -07:00
Jared Boone 24d8d81b43 Add generated bit/shift/mask #defines for CGU, CREG, RGU, USB (USB0 only) peripherals.
Added script used to generate #defines above.
Fixed one small change in the #define naming scheme in i2c0_init().
2013-07-07 13:52:08 -07:00
Jared Boone 49b2be5224 Added CGU PLL0USB_CTRL bit 3, DIRECTO to cgu.csv. 2013-07-07 13:52:07 -07:00
Michael Ossmann 77a1f68ea3 gpdma.csv 2013-07-07 13:52:07 -07:00
Michael Ossmann 0f7e6cf54d cgu.csv 2013-07-07 13:52:07 -07:00
Michael Ossmann 07ee98420c sgpio.csv 2013-07-07 13:52:07 -07:00
Michael Ossmann ae9a6ae4af started csv files for generation of register field stuff 2013-07-07 13:52:07 -07:00