From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9466 invoked by alias); 6 Jan 2013 05:47:15 -0000 Received: (qmail 9410 invoked by uid 22791); 6 Jan 2013 05:47:14 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 06 Jan 2013 05:47:05 +0000 Received: by mail.ecoscentric.com (Postfix, from userid 48) id 70CFE468000E; Sun, 6 Jan 2013 05:47:04 +0000 (GMT) From: bugzilla-daemon@bugs.ecos.sourceware.org To: unassigned@bugs.ecos.sourceware.org Subject: [Bug 1001397] I2C driver for Kinetic microcontrollers X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Patches and contributions X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: mjones@linear.com X-Bugzilla-Status: NEEDINFO X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sun, 06 Jan 2013 05:47:00 -0000 Message-Id: <20130106054701.B5ED0468000E@mail.ecoscentric.com> Mailing-List: contact ecos-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-bugs-owner@sourceware.org X-SW-Source: 2013/txt/msg00018.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001397 --- Comment #39 from Mike Jones 2013-01-06 05:46:55 GMT --- I am having trouble slowing down the bus speed. This is my code for write byte, but it is clocking at over 1Mhz, and my devices only go up to 400Khz. Is there something else I need to do? void smbus_write_byte(uint8_t address, uint8_t command, uint8_t data) { cyg_uint8 buffer[2]; cyg_i2c_device device = { \ .i2c_bus = &hal_kinetis_i2c0_bus, \ .i2c_address = address, \ .i2c_flags = 0, \ .i2c_delay = 10000 \ }; buffer[0] = command; buffer[1] = data; cyg_i2c_transaction_begin(&device); if(!cyg_i2c_transaction_tx(&device, true, &buffer[0], 2, false)) { diag_printf("Read: fail TX.\n"); } cyg_i2c_transaction_stop(&device); cyg_i2c_transaction_end(&device); } -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.