Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Shepherd-Chibby
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dorababu A
Shepherd-Chibby
Commits
33d7479a
Commit
33d7479a
authored
1 year ago
by
Dorababu A
Browse files
Options
Downloads
Patches
Plain Diff
Print esp32 basic info
parent
d143bf2b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
platformio.ini
+12
-6
12 additions, 6 deletions
platformio.ini
shepherd/shepherd_sniff.c
+32
-0
32 additions, 0 deletions
shepherd/shepherd_sniff.c
shepherd/shepherd_sniff.h
+0
-0
0 additions, 0 deletions
shepherd/shepherd_sniff.h
with
44 additions
and
6 deletions
platformio.ini
+
12
−
6
View file @
33d7479a
[env:esp32]
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:esp32]
platform
=
espressif32
framework
=
espidf
framework
=
espidf
board
=
esp32dev
monitor_speed
=
115200
;lib_deps =
; shepherd/
lib_deps
=
shepherd/
This diff is collapsed.
Click to expand it.
s
rc
/shepherd_sniff.c
→
s
hepherd
/shepherd_sniff.c
+
32
−
0
View file @
33d7479a
...
...
@@ -5,18 +5,22 @@
#include
"freertos/FreeRTOS.h"
#include
"freertos/task.h"
#include
"sdkconfig.h"
#include
"spi_flash_mmap.h"
#include
"esp_log.h"
// Shepehrd task to print metrics
static
void
shepherd_task
(
void
*
args
)
{
while
(
1
)
{
printf
(
"---------Shepherd Chibby-----------
\n
"
);
printf
(
"
\n
---------Shepherd Chibby-----------
\n
"
);
// get chip info
esp_chip_info_t
esp_info
;
esp_chip_info
(
&
esp_info
);
printf
(
"Number of CPU cores : %d
\n
"
,
esp_info
.
cores
);
printf
(
"Chip model : %d
\n
"
,
esp_info
.
model
);
vTaskDelay
(
10000
/
portTICK_PERIOD_MS
);
esp_chip_info_t
chip_info
;
esp_chip_info
(
&
chip_info
);
printf
(
"ESP32, %d CPU cores, WiFi%s%s, "
,
chip_info
.
cores
,
(
chip_info
.
features
&
CHIP_FEATURE_BT
)
?
"/BT"
:
""
,
(
chip_info
.
features
&
CHIP_FEATURE_BLE
)
?
"/BLE"
:
""
);
printf
(
"silicon revision %d, "
,
chip_info
.
revision
);
vTaskDelay
(
15000
/
portTICK_PERIOD_MS
);
}
vTaskDelete
(
NULL
);
}
...
...
This diff is collapsed.
Click to expand it.
s
rc
/shepherd_sniff.h
→
s
hepherd
/shepherd_sniff.h
+
0
−
0
View file @
33d7479a
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment