Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Matthias Marcus Nowak
Firmware
Commits
f068c98e
Commit
f068c98e
authored
3 years ago
by
Carlo Guarnieri Calo' Carducci
Browse files
Options
Downloads
Patches
Plain Diff
repo: add kconfig build configuration
parent
06f27298
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main/Kconfig.projbuild
+209
-0
209 additions, 0 deletions
main/Kconfig.projbuild
with
209 additions
and
0 deletions
main/Kconfig.projbuild
0 → 100644
+
209
−
0
View file @
f068c98e
menu "LEGOS"
choice
prompt "Target"
default TEST
comment "Distribution grid"
config BRANCH
bool "Branch"
if BRANCH
config ENTITY
string
default "branch"
endif
config SUBSTATION
bool "Substation"
if SUBSTATION
config ENTITY
string
default "substation"
endif
comment "Consumers"
config DATACENTER
bool "Data center"
if DATACENTER
config ENTITY
string
default "data_center"
endif
config ECSTATION
bool "EC station"
if ECSTATION
config ENTITY
string
default "ec_station"
endif
config FACTORY
bool "Factory"
if FACTORY
config ENTITY
string
default "factory"
endif
config HOSPITAL
bool "Hospital"
if HOSPITAL
config ENTITY
string
default "hospital"
endif
config SKYSCRAPER
bool "Skyscraper"
if SKYSCRAPER
config ENTITY
string
default "skyscraper"
endif
config STADIUM
bool "Stadium"
if STADIUM
config ENTITY
string
default "stadium"
endif
comment "Prosumers"
config HOUSE
bool "House"
if HOUSE
config ENTITY
string
default "house"
endif
config SUPERMARKET
bool "Supermarket"
if SUPERMARKET
config ENTITY
string
default "supermarket"
endif
comment "Producers"
config POWERPLANT
bool "Power plant"
if POWERPLANT
config ENTITY
string
default "power_plant"
endif
config SOLARFARM
bool "Solar farm"
if SOLARFARM
config ENTITY
string
default "solar_farm"
endif
config WINDFARM
bool "Wind farm"
if WINDFARM
config ENTITY
string
default "wind_farm"
endif
config TEST
bool "Test"
if TEST
config ENTITY
string
default "test"
endif
endchoice
menu "WiFi"
config WIFI_STA_SSID
string "WiFi SSID"
default "FRITZ!Box 7530 TW"
help
SSID (network name) for LEGOS entity to connect to.
config WIFI_STA_PASS
string "WiFi PASS"
default "31361912602018850594"
help
Password for WiFi network.
endmenu
menu "MQTT"
config MQTT_USER
string "Username"
default "roger"
help
Broker username.
config MQTT_PASS
string "Password"
default "password"
help
Broker password.
config MQTT_HOST
string "Host name or IP address"
default "192.168.1.1"
help
Broker address.
config MQTT_PORT
int "Port"
default 1883
help
Broker port.
config MQTT_RATE
int "Reporting rate"
default 1
help
Reporting rate (Hz).
choice
prompt "QoS level"
default MQTT_QOS_LEVEL_0
config MQTT_QOS_LEVEL_0
bool "At most once (0)"
if MQTT_QOS_LEVEL_0
config MQTT_QOS_LEVEL
int
default 0
endif
config MQTT_QOS_LEVEL_1
bool "At least once (1)"
if MQTT_QOS_LEVEL_1
config MQTT_QOS_LEVEL
int
default 1
endif
config MQTT_QOS_LEVEL_2
bool "Exactly once (2)"
if MQTT_QOS_LEVEL_2
config MQTT_QOS_LEVEL
int
default 2
endif
endchoice
choice
prompt "Transport"
default MQTT_TRANSPORT_OVER_TCP
config MQTT_TRANSPORT_OVER_TCP
bool "TCP"
if MQTT_TRANSPORT_OVER_TCP
config MQTT_TRANSPORT
int
default 1
endif
config MQTT_TRANSPORT_OVER_SSL
bool "SSL"
if MQTT_TRANSPORT_OVER_SSL
config MQTT_TRANSPORT
int
default 2
endif
endchoice
endmenu
endmenu
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