Search found 4 matches

by twompark
Wed Oct 02, 2024 4:10 pm
Forum: ESP-IDF
Topic: KSZ8863 driver sharing I2C with other chips
Replies: 8
Views: 666

Re: KSZ8863 driver sharing I2C with other chips

It seems the KSZ8863 driver uses the older I2C routines that don't have the built-in locking. So maybe my solution is to update the KSZ drivers to the latest I2C functions.
by twompark
Wed Oct 02, 2024 2:31 pm
Forum: ESP-IDF
Topic: KSZ8863 driver sharing I2C with other chips
Replies: 8
Views: 666

Re: KSZ8863 driver sharing I2C with other chips

The KSZ8863 driver has the following code snipits for internal access of the I2C control port: static inline bool bus_lock(uint32_t lock_timeout_ms) { return xSemaphoreTake(s_ksz8863_ctrl_intf->bus_lock, pdMS_TO_TICKS(lock_timeout_ms)) == pdTRUE; } static inline bool bus_unlock(void) { return xSemap...
by twompark
Tue Oct 01, 2024 10:02 pm
Forum: ESP-IDF
Topic: KSZ8863 driver sharing I2C with other chips
Replies: 8
Views: 666

KSZ8863 driver sharing I2C with other chips

I have a circuit using KSZ8863 designed many years ago, before the Espressif KSZ8863 driver was available, and put together my own driver, but would now like to switch to the supported driver. However, my circuit shares the I2C port with the KSZ8863 and another unrelated chip. I need to read the sta...
by twompark
Mon Feb 11, 2019 6:57 pm
Forum: ESP-IDF
Topic: git clone not getting everything
Replies: 1
Views: 2787

git clone not getting everything

Am a bit new to this.. Followed install instructions to clone the IDF: $ git clone -b v3.1.2 --recursive https://github.com/espressif/esp-idf.git It ran without errors, however, many directories are missing, for example when I look: $ ls ../esp-idf/examples/protocols/ aws_iot coap_server http_reques...