and setup the Portpins for using I2C.

Signed-off-by: Heiko Schocher <[EMAIL PROTECTED]>
---
 board/muas3001/muas3001.c  |    9 +++++++--
 include/configs/muas3001.h |    2 +-
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/board/muas3001/muas3001.c b/board/muas3001/muas3001.c
index 0ec451f..157c72d 100644
--- a/board/muas3001/muas3001.c
+++ b/board/muas3001/muas3001.c
@@ -163,8 +163,13 @@ const iop_conf_t iop_conf_tab[4][32] = {
        /* PD18 */ { 0,          0,   0,   0,   0,   0 }, /* PD18            */
        /* PD17 */ { 0,          0,   0,   0,   0,   0 }, /* PD17            */
        /* PD16 */ { 0,          0,   0,   0,   0,   0 }, /* PD16            */
-       /* PD15 */ { 1,          1,   1,   0,   0,   0 }, /* I2C SDA         */
-       /* PD14 */ { 1,          1,   1,   0,   0,   0 }, /* I2C SCL         */
+#if defined(CONFIG_HARD_I2C)
+       /* PD15 */ { 1,          1,   1,   0,   1,   0 }, /* I2C SDA         */
+       /* PD14 */ { 1,          1,   1,   0,   1,   0 }, /* I2C SCL         */
+#else
+       /* PD15 */ { 1,          0,   0,   0,   1,   1 }, /* PD15            */
+       /* PD14 */ { 1,          0,   0,   1,   1,   1 }, /* PD14            */
+#endif
        /* PD13 */ { 0,          0,   0,   0,   0,   0 }, /* PD13            */
        /* PD12 */ { 0,          0,   0,  until they return.
>         > - the job is not calculation or memory-intensive on my end,
>         but it
>         > does take 15-20 seconds to get all the responses from
>         Facebook.
>         >
>         > I'm on a fairly small server, so it's important to keep
>         memory use low
>         > (and stability high), while still being able to handle
>         thousands of
>         > simultaneous visitors. Right now I'm using a single worker,
>         and each
>         > visitor generates a new thread in the thread pool. After a
>         little
>         > while tasks only get a few calls in before failing with a
>         "Connection
>         > reset by peer" error. Eventually my worker just disappears
>         > altogether.
>         >
>         > What's going on? What kind of setup should I be running?
>         
>         
>         What version of BDRB? What version of packet gem? Which OS?
>         
>         Are you using mechanize or something for interacting with
>         facebook? or
>         just normal RFacebook or something?
>         
>         
>         
>         
> 
> 

_______________________________________________
Backgroundrb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/backgroundrb-devel

Reply via email to