view cdg211/cdginc/p_sn.h @ 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 56abf6cf8a0b
children
line wrap: on
line source

/*
+--------------------------------------------------------------------------+
| PROJECT : PROTOCOL STACK                                                 |
| FILE    : p_sn.h                                                         |
| SOURCE  : "__out__\g23m_dfile\prim\sn.pdf"                               |
| LastModified : "2001-10-08"                                              |
| IdAndVersion : "8441.110.99.006"                                         |
| SrcFileTime  : "Thu Feb 17 14:43:54 2005"                                |
| Generated by CCDGEN_2.5.5 on Fri Jun 08 13:59:16 2007                    |
|           !!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_SN_H
#define P_SN_H


#define CDG_ENTER__P_SN_H

#define CDG_ENTER__FILENAME _P_SN_H
#define CDG_ENTER__P_SN_H__FILE_TYPE CDGINC
#define CDG_ENTER__P_SN_H__LAST_MODIFIED _2001_10_08
#define CDG_ENTER__P_SN_H__ID_AND_VERSION _8441_110_99_006

#define CDG_ENTER__P_SN_H__SRC_FILE_TIME _Thu_Feb_17_14_43_54_2005

#include "CDG_ENTER.h"

#undef CDG_ENTER__P_SN_H

#undef CDG_ENTER__FILENAME


#include "p_sn.val"

#ifndef __T_desc_list2__
#define __T_desc_list2__
/*
 * list of generic data descriptors
 * CCDGEN:WriteStruct_Count==2150
 */
typedef struct
{
  U16                       list_len;                 /*<  0:  2> length in octets of whole data                     */
  U8                        _align0;                  /*<  2:  1> alignment                                          */
  U8                        _align1;                  /*<  3:  1> alignment                                          */
  U32                       first;                    /*<  4:  4> pointer to  generic data descriptors               */
} T_desc_list2;
#endif

#ifndef __T_reserved_data_ind1__
#define __T_reserved_data_ind1__
/*
 * to the segment to be confirmed
 * CCDGEN:WriteStruct_Count==2152
 */
typedef struct
{
  U8                        ref_nsapi;                /*<  0:  1> ref_nsapi                                          */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U16                       ref_npdu_num;             /*<  2:  2> ref_npdu_num                                       */
  U8                        ref_seg_num;              /*<  4:  1> ref_seg_num                                        */
  U8                        _align1;                  /*<  5:  1> alignment                                          */
  U8                        _align2;                  /*<  6:  1> alignment                                          */
  U8                        _align3;                  /*<  7:  1> alignment                                          */
} T_reserved_data_ind1;
#endif

/*
 * to the segment to be confirmed
 * CCDGEN:WriteStruct_Count==2153
 */
#ifndef __T_reserved_unitdata_ind1__
#define __T_reserved_unitdata_ind1__
typedef T_reserved_data_ind1 T_reserved_unitdata_ind1;
#endif
/*
 * to the segment to be confirmed
 * CCDGEN:WriteStruct_Count==2154
 */
#ifndef __T_reserved_data_req2__
#define __T_reserved_data_req2__
typedef T_reserved_data_ind1 T_reserved_data_req2;
#endif
/*
 * to the segment to be confirmed
 * CCDGEN:WriteStruct_Count==2155
 */
#ifndef __T_reserved_unitdata_req2__
#define __T_reserved_unitdata_req2__
typedef T_reserved_data_ind1 T_reserved_unitdata_req2;
#endif

/*
 * End of substructure section, begin of primitive definition section
 */

#ifndef __T_SN_MODIFICATION_IND__
#define __T_SN_MODIFICATION_IND__
/*
 * 
 * CCDGEN:WriteStruct_Count==2156
 */
typedef struct
{
  U8                        ppp_hc;                   /*<  0:  1> header compression of PPP connection               */
  U8                        msid;                     /*<  1:  1> max slot identifier                                */
  U8                        _align0;                  /*<  2:  1> alignment                                          */
  U8                        _align1;                  /*<  3:  1> alignment                                          */
} T_SN_MODIFICATION_IND;
#endif

#ifndef __T_SN_COUNT_REQ__
#define __T_SN_COUNT_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==2157
 */
typedef struct
{
  U8                        nsapi;                    /*<  0:  1> network layer service access point identifier      */
  U8                        reset;                    /*<  1:  1> reset flag                                         */
  U8                        _align0;                  /*<  2:  1> alignment                                          */
  U8                        _align1;                  /*<  3:  1> alignment                                          */
} T_SN_COUNT_REQ;
#endif

#ifndef __T_SN_COUNT_CNF__
#define __T_SN_COUNT_CNF__
/*
 * 
 * CCDGEN:WriteStruct_Count==2158
 */
typedef struct
{
  U8                        nsapi;                    /*<  0:  1> network layer service access point identifier      */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
  U32                       octets_uplink;            /*<  4:  4> octets uplink                                      */
  U32                       octets_downlink;          /*<  8:  4> octets downlink                                    */
  U32                       packets_uplink;           /*< 12:  4> packets uplink                                     */
  U32                       packets_downlink;         /*< 16:  4> packets downlink                                   */
} T_SN_COUNT_CNF;
#endif

#ifndef __T_SN_SWITCH_REQ__
#define __T_SN_SWITCH_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==2159
 */
typedef struct
{
  U8                        nsapi;                    /*<  0:  1> network layer service access point identifier      */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
  U32                       dti_linkid;               /*<  4:  4> DTI link identifier                                */
  U32                       dti_neighbor;             /*<  8:  4> DTI neighbor entity name                           */
  U8                        dti_direction;            /*< 12:  1> direction of DTI connection                        */
  U8                        _align3;                  /*< 13:  1> alignment                                          */
  U8                        _align4;                  /*< 14:  1> alignment                                          */
  U8                        _align5;                  /*< 15:  1> alignment                                          */
} T_SN_SWITCH_REQ;
#endif

#ifndef __T_SN_SWITCH_CNF__
#define __T_SN_SWITCH_CNF__
/*
 * 
 * CCDGEN:WriteStruct_Count==2160
 */
typedef struct
{
  U8                        nsapi;                    /*<  0:  1> network layer service access point identifier      */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
} T_SN_SWITCH_CNF;
#endif


#include "CDG_LEAVE.h"


#endif