From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9059 invoked by alias); 6 Jan 2013 05:47:10 -0000 Received: (qmail 9039 invoked by uid 22791); 6 Jan 2013 05:47:09 -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 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:04 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 17DCB4680013 for ; Sun, 6 Jan 2013 05:47:03 +0000 (GMT) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zXg6GQYl3jUx; Sun, 6 Jan 2013 05:47:01 +0000 (GMT) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-patches@ecos.sourceware.org Subject: [Bug 1001397] I2C driver for Kinetic microcontrollers X-Bugzilla-Reason: CC 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.28BBC4680001@mail.ecoscentric.com> Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2013-01/txt/msg00011.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 on the CC list for the bug.