Discussion:
[ethersex-devel] Help needed with reembox pinnig file
Nikki Fenton
2014-11-27 13:39:57 UTC
Permalink
Hi I am having problems getting ethersex to make it ends with a error double define on PD2 and PD6 and I also get a warning about no output pin defined for rs485 DMX stuff . This is my pinning file What have I done wrong ?

Thanks Nikki

/* onewire support */
ifdef(`conf_ONEWIRE', `dnl
pin(ONEWIRE, PD6)
')

pin(PCA9685_OE,PC2,OUTPUT)

ifdef(`conf_DMX', `dnl
  /* port config for dmx */
  pin(DMX_RS485EN, PD2, OUTPUT)
  pin(DMX_RS485TX, PD1, OUTPUT)
')

/* port the enc28j60 is attached to */
pin(SPI_CS_NET, SPI_CS_HARDWARE)

/* port the sd-reader CS is attached to */
ifdef(`conf_SD_READER', `
  pin(SPI_CS_SD_READER, PB3, OUTPUT)
')

ifdef(`conf_RFM12', `dnl
  /* port the rfm12 module CS is attached to */
  pin(SPI_CS_RFM12_0, PD5, OUTPUT)
  RFM12_USE_INT(1)
  RFM12_ASK_SENSE_USE_INT(1)
')

ifdef(`conf_IRMP', `dnl
  pin(IRMP_RX, PB0)
  #define IRMP_USE_TIMER0
  #define IRMP_RX_LOW_ACTIVE
  #undef IRMP_RX_LED_LOW_ACTIVE
  pin(IRMP_TX, PD7) dnl OC2
')

ifdef(`conf_STATUSLED_POWER', `dnl
pin(STATUSLED_POWER, PD2, OUTPUT)
')dnl

ifdef(`conf_STATUSLED_BOOTED', `dnl
pin(STATUSLED_BOOTED, PD2, OUTPUT)
')dnl

ifdef(`conf_STATUSLED_NETLINK', `dnl
pin(STATUSLED_NETLINK, PC3, OUTPUT)
')dnl

ifdef(`conf_STATUSLED_TX', `dnl
pin(STATUSLED_TX, PD4, OUTPUT)
')dnl

ifdef(`conf_STATUSLED_RX', `dnl
pin(STATUSLED_RX, PD6, OUTPUT)
')dnl

ifdef(`conf_STATUSLED_HB_ACT', `dnl
pin(STATUSLED_HB_ACT,PD6, OUTPUT)
')dnl
msw
2014-11-28 15:55:25 UTC
Permalink
re,
Post by Nikki Fenton
Hi I am having problems getting ethersex to make it ends
with a error double define on PD2 and PD6
Look at your file: PD2 and PD6 are defined for not only two but three
functions whereas only one definition per pin is valid.
Post by Nikki Fenton
ifdef(`conf_DMX', `dnl
/* port config for dmx */
pin(DMX_RS485EN, PD2, OUTPUT)
pin(DMX_RS485TX, PD1, OUTPUT)
')
ifdef(`conf_STATUSLED_POWER', `dnl
pin(STATUSLED_POWER, PD2, OUTPUT)
')dnl
ifdef(`conf_STATUSLED_BOOTED', `dnl
pin(STATUSLED_BOOTED, PD2, OUTPUT)
')dnl
/* onewire support */
ifdef(`conf_ONEWIRE', `dnl
pin(ONEWIRE, PD6)
')
ifdef(`conf_STATUSLED_RX', `dnl
pin(STATUSLED_RX, PD6, OUTPUT)
')dnl
ifdef(`conf_STATUSLED_HB_ACT', `dnl
pin(STATUSLED_HB_ACT,PD6, OUTPUT)
')dnl
remember: one GPIO per function per time. Do you really have all these
LEDs?
Post by Nikki Fenton
and I also get
a warning about no output pin defined for rs485 DMX stuff .
No, I guess you rather get the warning "no RS485 transmit enable pin for
DMX defined" - this is again because of PD2.


-msw

Loading...