From: Andrey Miroshnikov Date: Sat, 1 Oct 2022 11:25:42 +0000 (+0100) Subject: docs(pinmux): Added a bit on PinGen X-Git-Tag: opf_rfc_ls005_v1~255 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e04b571701eeb4b6b686bf96102ef167f45d49b;p=libreriscv.git docs(pinmux): Added a bit on PinGen --- diff --git a/docs/pinmux.mdwn b/docs/pinmux.mdwn index 9e5a28659..40f4e9097 100644 --- a/docs/pinmux.mdwn +++ b/docs/pinmux.mdwn @@ -492,6 +492,13 @@ dict_items([(0, {0: ('GPIOA_A0', 'A'), 1: ('UART0_TX', 'A'), 2: ('TWI0_SCL', 'A')}), (2, {0: ('GPIOA_A2', 'A')}), (3, {0: ('GPIOA_A3', 'A')})]) +### PinGen + +pinfunctions.py contains the "pinspec" list containing the Python functions +which generate the necessary signals for gpio, uart, i2c, etc. (with IOType +information). PinGen class uses "__call__" and "pinspec" to effectively create a +Lambda function for generating specified peripheral signals. + ## The GPIO block *NOTE !* - Need to change 'bank' terminology for the GPIO block in doc and code!