Ignore:
Timestamp:
Oct 1, 2018, 6:59:14 AM (13 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
0614743
Parents:
fca9132
git-author:
Sebastian Huber <sebastian.huber@…> (10/01/18 06:59:14)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/01/18 07:01:29)
Message:

bsp/atsam: Use binary semaphore for I2C

Remove superfluous sleep before each I2C transfer. Reset I2C module
after transfer timeouts.

Update #3534.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/atsam/include/bsp/atsam-i2c.h

    rfca9132 r5cb23f4b  
    2020
    2121#include <bsp.h>
     22#include <rtems/thread.h>
    2223#include <dev/i2c/i2c.h>
    2324
     
    5556        uint32_t current_msg_todo;
    5657        uint8_t *current_msg_byte;
    57         uint32_t input_clock;
     58        uint32_t output_clock;
    5859        bool read;
    59         rtems_id task_id;
     60        rtems_binary_semaphore sem;
    6061        rtems_vector_number irq;
    6162} atsam_i2c_bus;
Note: See TracChangeset for help on using the changeset viewer.