wmrsouza opened a new pull request, #20348:
URL: https://github.com/apache/nuttx/pull/20348
## Summary
This PR is a complement to #20155 providing the on-chip peripheral support
to ESP32-C2
## Impact
Impact on user: No.
Impact on hardware: No.
Impact on documentation: Documentation will be provided by an additional PR.
Impact on compatibility: No.
## Testing
### Building
All of the configurations presented below can be tested by running the
following commands
```
make distclean && ./tools/configure.sh esp8684-devkitm:<config_name> && make
flash ESPTOOL_PORT=/dev/ttyUSB0 && picocom -b 115200 /dev/ttyUSB0
```
### Running
adc
```
nsh> adc -n 1
adc_main: g_adcstate.count: 1
adc_main: Hardware initialized. Opening the ADC device: /dev/adc0
Sample:
1: channel: 0 value: 2900
2: channel: 1 value: 2900
3: channel: 2 value: 0
4: channel: 3 value: 0
```
buttons
```
nsh> buttons
buttons_main: Starting the button_daemon
buttons_main: button_daemon started
button_daemon: Running
button_daemon: Opening /dev/buttons
button_daemon: Supported BUTTONs 0x01
nsh> Sample = 1
Sample = 0
```
crypto
```
nsh> hmac
...
hmac sha1 success
hmac sha1 success
hmac sha1 success
hmac sha256 success
hmac sha256 success
hmac sha256 success
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]