view src/cs/layer1/hmacs/macs_def.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 945cf7f506b2
children
line wrap: on
line source

/************* Revision Control System Header *************
 *                  GSM Layer 1 software
 * MACS_DEF.H
 *
 *        Filename macs_def.h
 *  Copyright 2003 (C) Texas Instruments  
 *
 ************* Revision Control System Header *************/

 /*********************************************************/
 /* Type definition for MAC-S static variables            */
 /*********************************************************/

/*---------------------------------------------------*/
/* MAC-S static parameters                           */
/*---------------------------------------------------*/

typedef struct {

/* General TBF parameters processed by MAC-S */
/*********************************************/
    UWORD8                old_synchro_ts;        // Synchro timeslot when data was received on the slots indicated in last_rx_allocation

// Dynamic allocation mode parameters
    UWORD8                first_monitored_ts;    // First Tx slot allocated by the network
    UWORD8                last_monitored_ts;     // Last Tx slot allocated by the network

// Fixed allocation mode parameters
    UWORD8                dl_ctrl_ts_mask;       // Mask used to verify if conditions are met to map the downlink control timeslot
    UWORD32               sti_block_id;          // Block ID of the starting time

/* Ressources allocated by MAC-S             */
/*********************************************/
    UWORD8                rx_allocation;         // Slots allocated for downlink blocks reception
    UWORD8                tx_allocation;         // Slots allocated for uplink blocks transmission
    UWORD8                tx_data;               // Slots allocated for uplink data block transfer only
    UWORD8                tx_prach_allocation;   // Slots allocated for poll response in PRACH burst format
    UWORD8                pwr_allocation;        // Slots allocated for power measurements
    UWORD8                last_rx_alloc;         // Downlink resources allocated during the last block period

/* MAC-S global parameters */
/***************************/
    UWORD32               rx_blk_period;         // Set to BLOCK_ID if DL blocks were received, FFFFFFFF if no DL blocks
    UWORD8                rlc_blocks_sent;       // Last sent uplink RLC/MAC block ID
    UWORD8                rx_no;                 // Number of received blocks to report to RLC
    UWORD8                last_poll_response;    // Status of the poll responses requested by RLC the block period before
    UWORD8                ul_buffer_index[8];    // UL buffer index table loaded after RLC UL allocation check   

// Dynamic allocation mode parameters     
    UWORD8                usf_vote_enable;       // This bitmap is used to set on which timeslot the DSP USF vote must be enabled
    UWORD8                usf_good;              // Bit set to 1 corresponds to invalid or valid and good USF values
    UWORD32               next_usf_mon_block[2]; // For each uplink block, memorize the next block_id when the USF will be monitored
                                                 // Note: for type 1 MS, max. 2 Tx can be done !!!

// Fixed allocation mode parameters
    UWORD8                tra_gap;               // Number of free Tx slots at the end of the frame
    BOOL                  fix_alloc_exhaust;     // Set to 1 if the fixed allocation bitmap has exhausted

  #if MACS_STATUS
    BOOL                  bcch_monitoring;       // When MAC-S calls RLC, set to TRUE if BCCH monitoring was done during the frame before
  #endif

} T_MACS_STATIC;

/*---------------------------------------------------*/
/* MS Class parameters                               */
/*---------------------------------------------------*/

typedef struct {
    UWORD8 rx;
    UWORD8 tx;
    UWORD8 sum;
    UWORD8 tta;
    UWORD8 ttb;
    UWORD8 tra;
    UWORD8 trb;
} T_MSCLASS_PARAMETERS;