Commit f126b6fe authored by Johny Mattsson's avatar Johny Mattsson Committed by J Mattsson
Browse files

Initial migration to IDFv5.0

Plenty of dependency adjustments, printf format specificier updates,
FreeRTOS type and macro name modernisation, not to mention API changes.

Still plenty of legacy/deprecated drivers in use which will need updating.

The following features have been removed due to no longer being available
from the IDF:
  - ADC hall effect sensor reading
  - Configuration of SD SPI host via sdmmc module (now must be done first
    via the spimaster module)
  - FAT partition selection on external SD cards; only the first FAT
    partition is supported by the IDF now

On the other hand, the eth module now supports the following new chipsets:
  - KSZ8001
  - KSZ8021
  - KSZ8031
  - KSZ8051
  - KSZ8061
  - KSZ8091
  - Possibly additional models in the LAN87xx series (the IDF docs aren't
    clear on precisely which models are handled)

Further, the sdmmc module is now available on the ESP32-S3 as well.
parent 2b8e3271
......@@ -60,22 +60,3 @@ the sampled value (number)
```lua
val = adc.read(adc.ADC1, 0)
```
## adc.read_hall_sensor()
Read Hall sensor (GPIO36, GPIO39). We recommend using 12-bits width on ADC1.
#### Syntax
`adc.read_hall_sensor()`
#### Parameters
none
#### Returns
the sampled value (number)
#### Example
```lua
val = adc.read_hall_sensor()
```
......@@ -8,8 +8,10 @@ The eth module provides access to the ethernet PHY chip configuration.
Your board must contain one of the PHY chips that are supported by ESP-IDF:
- IP101
- LAN8720
- TLK110
- RTL8201
- LAN8720 (possibly others in the LAN87xx family)
- DP83848
- KSZ8001 / KSZ8021 / KSZ8031 / KSZ8041 / KSZ8051 / KSZ8061 / KSZ8081 / KSZ8091
## eth.get_mac()
Get MAC address.
......@@ -67,9 +69,11 @@ eth.init(cfg)
- `phy` PHY chip model, one of
- `PHY_DP83848`
- `PHY_IP101`
- `PHY_KSZ8041`
- `PHY_KSZ8081`
- `PHY_LAN8720`
- `PHY_KSZ80XX`
- `PHY_KSZ8041` (deprecated, use `PHY_KSZ80XX` instead)
- `PHY_KSZ8081` (deprecated, use `PHY_KSZ80XX` instead)
- `PHY_LAN87XX`
- `PHY_LAN8720` (deprecated, use `PHY_LAN87XX` instead)
- `PHY_RTL8201`
- `power` power enable pin, optional
......
......@@ -77,7 +77,7 @@ Initialize the SDMMC and probe the attached SD card.
- `sdmmc.W8BIT`, not supported yet
#### Parameters SD SPI Mode
- `slot` SD SPI slot, one of `sdmmc.HSPI` or `sdmmc.VSPI`
- `slot` SD SPI slot, one of `sdmmc.SPI2` or `sdmmc.SPI3` (on ESP32 the names`sdmmc.HSPI` or `sdmmc.VSPI` are still available, but deprecated)
- `cfg` mandatory table containing slot configuration:
- `sck_pin` SPI SCK pin, mandatory
- `mosi_pin`, SPI MOSI pin, mandatory
......@@ -128,12 +128,10 @@ Table containing the card's OCR, CID, CSD, SCR, and RCA with elements:
Mount filesystem on SD card.
#### Syntax
`card:mount(ldrv[, partition])`
`card:mount(ldrv)`
#### Parameters
- `ldrv` name of logical drive, "/SD0", "/SD1", etc.
- `partition` the partition number, default is 0, meaning the first available
FAT partition.
#### Returns
`true` if successful, `false` otherwise
......
Subproject commit 357290093430e41e7e3338227a61ef5162f2deed
Subproject commit 5181de8ac5ec5e18f04f634da8ce173b7ef5ab73
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment