FreeCalypso > hg > fc-magnetite
view cdg3/cdginc-locosto/p_tcpip.val @ 629:3231dd9b38c1
armio.c: make GPIOs 8 & 13 outputs driving 1 on all "classic" targets
Calypso GPIOs 8 & 13 are pinmuxed with MCUEN1 & MCUEN2, respectively,
and on powerup these pins are MCUEN, i.e., outputs driving 1. TI's code
for C-Sample and earlier turns them into GPIOs configured as outputs also
driving 1 - so far, so good - but TI's code for BOARD 41 (which covers
D-Sample, Leonardo and all real world Calypso devices derived from the
latter) switches them from MCUEN to GPIOs, but then leaves them as inputs.
Given that the hardware powerup state of these two pins is outputs driving 1,
every Calypso board design MUST be compatible with such driving; typically
these GPIO signals will be either unused and unconnected or connected as
outputs driving some peripheral. Turning these pins into GPIO inputs will
result in floating inputs on every reasonably-wired board, thus I am
convinced that this configuration is nothing but a bug on the part of
whoever wrote this code at TI.
This floating input bug had already been fixed earlier for GTA modem and
FCDEV3B targets; the present change makes the fix unconditional for all
"classic" targets. The newly affected targets are D-Sample, Leonardo,
Tango and GTM900.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 02 Jan 2020 05:38:26 +0000 |
parents | c15047b3d00d |
children |
line wrap: on
line source
/* +--------------------------------------------------------------------------+ | PROJECT : PROTOCOL STACK | | FILE : p_tcpip.val | | SOURCE : "sap\tcpip.pdf" | | LastModified : "2003-09-05" | | IdAndVersion : "8462.000.03.005" | | SrcFileTime : "Thu Nov 29 09:55:14 2007" | | Generated by CCDGEN_2.5.5A on Thu Sep 25 09:18:53 2014 | | !!DO NOT MODIFY!!DO NOT MODIFY!!DO NOT MODIFY!! | +--------------------------------------------------------------------------+ */ /* PRAGMAS * PREFIX : NONE * COMPATIBILITY_DEFINES : NO (require PREFIX) * ALWAYS_ENUM_IN_VAL_FILE: NO * ENABLE_GROUP: NO * CAPITALIZE_TYPENAME: NO */ #ifndef P_TCPIP_VAL #define P_TCPIP_VAL #define CDG_ENTER__P_TCPIP_VAL #define CDG_ENTER__FILENAME _P_TCPIP_VAL #define CDG_ENTER__P_TCPIP_VAL__FILE_TYPE CDGINC #define CDG_ENTER__P_TCPIP_VAL__LAST_MODIFIED _2003_09_05 #define CDG_ENTER__P_TCPIP_VAL__ID_AND_VERSION _8462_000_03_005 #define CDG_ENTER__P_TCPIP_VAL__SRC_FILE_TIME _Thu_Nov_29_09_55_14_2007 #include "CDG_ENTER.h" #undef CDG_ENTER__P_TCPIP_VAL #undef CDG_ENTER__FILENAME /* * Value constants for VAL_ipproto */ #define TCPIP_IPPROTO_TCP (0x6) /* Value for TCP */ #define TCPIP_IPPROTO_UDP (0x11) /* Value for UDP */ /* * Value constants for VAL_event_type */ #define TCPIP_EVT_CREATE_CNF (0x1) /* Result of TCPIP_CREATE_REQ */ #define TCPIP_EVT_CLOSE_CNF (0x2) /* Result of TCPIP_CLOSE_REQ */ #define TCPIP_EVT_BIND_CNF (0x3) /* Result of TCPIP_BIND_REQ */ #define TCPIP_EVT_LISTEN_CNF (0x4) /* Result of TCPIP_LISTEN_REQ */ #define TCPIP_EVT_CONNECT_CNF (0x5) /* Result of TCPIP_CONNECT_REQ */ #define TCPIP_EVT_SOCKNAME_CNF (0x6) /* Result of TCPIP_SOCKNAME_REQ */ #define TCPIP_EVT_PEERNAME_CNF (0x7) /* Result of TCPIP_PEERNAME_REQ */ #define TCPIP_EVT_HOSTINFO_CNF (0x8) /* Result of TCPIP_HOSTINFO_REQ */ #define TCPIP_EVT_MTU_SIZE_CNF (0x9) /* Result of TCPIP_MTU_SIZE_REQ */ #define TCPIP_EVT_RECV_IND (0xa) /* Indication of incoming data */ #define TCPIP_EVT_CONNECT_IND (0xb) /* Indication of incoming connection */ #define TCPIP_EVT_CONN_CLOSED_IND (0xc) /* Indication of remotely closed connection */ #define TCPIP_EVT_ERROR_IND (0xd) /* Indication of asynchronous error */ #define TCPIP_EVT_FLOW_READY_IND (0xe) /* Flow Control: application can send again (not used by a TCPIP primitive!) */ /* * Value constants for VAL_result */ #define TCPIP_RESULT_OK (0x0) /* Operation was successful. */ #define TCPIP_RESULT_INVALID_PARAMETER (0x1) /* A parameter was invalid. */ #define TCPIP_RESULT_INTERNAL_ERROR (0x2) /* An internal error has happened. */ #define TCPIP_RESULT_ADDR_IN_USE (0x3) /* The address or port is already in use. */ #define TCPIP_RESULT_OUT_OF_MEMORY (0x4) /* There is not enough memory to fulfill the request. */ #define TCPIP_RESULT_NOT_SUPPORTED (0x5) /* The socket is not of a type that can support this operation. */ #define TCPIP_RESULT_UNREACHABLE (0x6) /* The specified host cannot be reached. */ #define TCPIP_RESULT_CONN_REFUSED (0x7) /* The connection to the specified address was refused by the remote host. */ #define TCPIP_RESULT_TIMEOUT (0x8) /* The connection attempt timed out without establishing a connection. */ #define TCPIP_RESULT_IS_CONNECTED (0x9) /* The request could not be fulfilled because the socket is already connected. */ #define TCPIP_RESULT_HOST_NOT_FOUND (0xa) /* The specified host could not be found in the DNS. */ #define TCPIP_RESULT_DNS_TEMP_ERROR (0xb) /* A temporary DNS error has occurred. Retrying the query may be successful. */ #define TCPIP_RESULT_DNS_PERM_ERROR (0xc) /* A permanent DNS error has occurred. */ #define TCPIP_RESULT_NO_IPADDR (0xd) /* The specified name has been found in the DNS, but no IP address is available. */ #define TCPIP_RESULT_NOT_CONNECTED (0xe) /* The socket has not been connected yet. */ #define TCPIP_RESULT_MSG_TOO_BIG (0xf) /* The size of the data buffer is too large for a UDP socket. */ #define TCPIP_RESULT_CONN_RESET (0x10) /* The connection has been reset by the remote peer. */ #define TCPIP_RESULT_CONN_ABORTED (0x11) /* The connection was aborted due to timeout or some other error condition. */ #define TCPIP_RESULT_NO_BUFSPACE (0x12) /* Sending failed temporarily because the space to buffer the message was exhausted. The application should wait for a TCPIP_FLOW_READY_IND event to retry the operation. */ #define TCPIP_RESULT_NETWORK_LOST (0x13) /* The operation failed because TCP/IP's network connection has been disconnected. */ #define TCPIP_RESULT_NOT_READY (0x14) /* The operation failed because the TCP/IP entity was not yet initialised. */ /* * Value constants for VAL_if_up */ #define TCPIP_IFCONFIG_DOWN (0x0) /* Interface going down */ #define TCPIP_IFCONFIG_UP (0x1) /* Interface coming up */ /* * Value constants for VAL_dti_direction */ #define TCPIP_DTI_TO_HIGHER_LAYER (0x0) /* Connect to higher layer, i. e. an application */ #define TCPIP_DTI_TO_LOWER_LAYER (0x1) /* Connect to lower layer, i. e. to protocol stack */ /* * Value constants for VAL_dti_conn */ #define TCPIP_CONNECT_DTI (0x0) /* Connect the DTI link */ #define TCPIP_DISCONNECT_DTI (0x1) /* Disconnect the DTI link */ /* * user defined constants */ #define TCPIP_HNAMELEN (0x100) #define TCPIP_DEFAULT_MTU_SIZE (0x5dc) #define TCPIP_UNSPECIFIED_IPADDR (0x0) #define TCPIP_UNSPECIFIED_PORT (0x0) #include "CDG_LEAVE.h" #endif