This file is indexed.

/usr/include/gpsim/p12f182x.h is in gpsim-dev 0.27.0-6.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#ifndef __P12F182x_H__
#define __P12F182x_H__

#include "14bit-processors.h"
#include "14bit-tmrs.h"
#include "intcon.h"
#include "pir.h"
#include "pie.h"
#include "eeprom.h"
#include "comparator.h"
#include "a2dconverter.h"
#include "pic-ioports.h"

#define FOSC0 (1<<0)
#define FOSC1 (1<<1)
#define FOSC2 (1<<2)
#define IESO (1<<12)


class APFCON : public  sfr_register
{
 public:
  void put(unsigned int new_value);
  void set_pins(unsigned int bit, PinModule *pin0, PinModule *pin1)
  {
	m_bitPin[0][bit] = pin0;
	m_bitPin[1][bit] = pin1;
  }
  void set_usart(USART_MODULE    *_usart) { m_usart = _usart;};
  void set_ssp(SSP1_MODULE    *_ssp) { m_ssp = _ssp;};
  void set_t1gcon(T1GCON    *_t1gcon) { m_t1gcon = _t1gcon;};
  void set_ccpcon(CCPCON    *_ccpcon) { m_ccpcon = _ccpcon;};
  void set_ValidBits(unsigned int _mask){mValidBits = _mask;}

   APFCON(Processor *pCpu, const char *pName, const char *pDesc);
  
  private:

PinModule	*m_bitPin[2][8];
USART_MODULE 	*m_usart;
SSP1_MODULE 	*m_ssp;
T1GCON    	*m_t1gcon;
CCPCON		*m_ccpcon;


};

class P12F1822 : public _14bit_e_processor
{
public:
 ComparatorModule2 comparator;
  PIR_SET_2 pir_set_2_def;
  PIE     pie1;
  PIR    *pir1;
  PIE     pie2;
  PIR    *pir2;
  T2CON	  t2con;
  PR2	  pr2;
  TMR2    tmr2;
  T1CON_G   t1con_g;
  TMRL    tmr1l;
  TMRH    tmr1h;
  CCPCON	ccp1con;
  CCPRL		ccpr1l;
  CCPRH		ccpr1h;
  FVRCON	fvrcon;
  BORCON	borcon;
  ANSEL_P 	ansela;
  ADCON0  	adcon0;
  ADCON1_16F 	adcon1;
  sfr_register  adresh;
  sfr_register  adresl;
  OSCCON_2  	osccon;
  OSCTUNE 	osctune;
  OSCSTAT 	oscstat;
  //OSCCAL  osccal;
  WDTCON  	wdtcon;
  USART_MODULE 	usart;
  SSP1_MODULE 	ssp;
  APFCON	apfcon;
  PWM1CON	pwm1con;
  ECCPAS        ccp1as;
  PSTRCON       pstr1con;
  CPSCON0	cpscon0;
  CPSCON1	cpscon1;
  SR_MODULE	sr_module;
  EEPROM_EXTND *e;


  WPU              *m_wpua;
  IOC              *m_iocap;
  IOC              *m_iocan;
  IOC              *m_iocaf;
  PicPortIOCRegister  *m_porta;
  PicTrisRegister  *m_trisa;
  PicLatchRegister *m_lata;
  DACCON0	   *m_daccon0;
  DACCON1	   *m_daccon1;

  virtual PIR *get_pir2() { return (NULL); }
  virtual PIR *get_pir1() { return (pir1); }
  virtual PIR_SET *get_pir_set() { return (&pir_set_2_def); }

  virtual EEPROM_EXTND *get_eeprom() { return ((EEPROM_EXTND *)eeprom); }

  virtual PROCESSOR_TYPE isa(){return _P12F1822_;};

 P12F1822(const char *_name=0, const char *desc=0);
  ~P12F1822();
  static Processor *construct(const char *name);
  virtual void create_sfr_map();
  virtual void create_symbols();
  virtual void set_out_of_range_pm(unsigned int address, unsigned int value);
  virtual void create_iopin_map();
  virtual void create(int ram_top, int eeprom_size);
  virtual unsigned int register_memory_size () const { return 0x1000; }
  virtual void option_new_bits_6_7(unsigned int bits);
  virtual unsigned int program_memory_size() const { return 2048; }
  virtual void enter_sleep();
  virtual void exit_sleep();
  virtual void oscillator_select(unsigned int mode, bool clkout);
  virtual void program_memory_wp(unsigned int mode);


};

class P16F1823 : public P12F1822
{
public:
  ANSEL_P   anselc;
  virtual PROCESSOR_TYPE isa(){return _P16F1823_;};

 P16F1823(const char *_name=0, const char *desc=0);
  ~P16F1823();
  static Processor *construct(const char *name);
  virtual void create_sfr_map();
  virtual void create_iopin_map();
  virtual void create(int ram_top, int eeprom_size);

  PicPortBRegister  *m_portc;
  PicTrisRegister  *m_trisc;
  PicLatchRegister *m_latc;
  WPU              *m_wpuc;
};
#endif //__P12F182x_H__