From: smckown Date: Wed, 25 Nov 2009 04:12:19 +0000 (+0000) Subject: Clean up bit definitions in port configuration. X-Git-Tag: debian/0.11.2-5.2tmi~12 X-Git-Url: https://oss.titaniummirror.com/gitweb?p=cp210x.git;a=commitdiff_plain;h=bdfee90201705e58d5980f48a0db0c7c5c3452ce Clean up bit definitions in port configuration. --- diff --git a/src/examples/cpfactory.c b/src/examples/cpfactory.c index be9594b..a3fc0b4 100644 --- a/src/examples/cpfactory.c +++ b/src/examples/cpfactory.c @@ -89,10 +89,10 @@ int main(int argc, char* argv[]) /* Mode and latch bit to pin assignments. See AN223 from SiLabs: * https://www.silabs.com/Support Documents/TechnicalDocs/an223.pdf * - * 15 - /SUSPEND - * 14 - SUSPEND (maybe) - * 13 - unused (or SUSPEND) - * 12 - unused (or SUSPEND) + * 15 - /SUSPEND Can't configure latch + * 14 - SUSPEND Can't configure latch + * 13 - unused + * 12 - unused * 11 - GPIO_3 * 10 - GPIO_2 * 9 - GPIO_1 @@ -122,14 +122,14 @@ int main(int argc, char* argv[]) * driver sinks current to ground. * * Enhanced function bits: - * 7 - maybe dynamic suspend for UART or GPIO - * 6 - maybe dynamic suspend for UART or GPIO - * 5 - maybe dynamic suspend for UART or GPIO + * 7 - GPIO dynamic suspend, for 4 GPIO signals + * 6 - Serial dynamic suspend, for 8 UART/Modem signals + * 5 - unused, leave zero * 4 - Enable weak pull-ups - * 3 - unused + * 3 - unused, leave zero * 2 - /RS485_TX on GPIO_2 - * 1 - /RXACT on GPIO_1 - * 0 - /TXACT on GPIO_0 + * 1 - /RXLED on GPIO_1 + * 0 - /TXLED on GPIO_0 */ config.reset.mode = 0xf054; config.suspend.mode = 0xf054;