Skip to content

Commit

Permalink
The naming of the HAL in the platformio.ini is now consistent.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueAndi committed Nov 2, 2023
1 parent f7d4d76 commit b38d8fe
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion doc/configuration/uml/configuration.plantuml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ package "platformio.ini" {
component "app:<APPLICATION-NAME>" <<pio>> as pioAppApp
component "hal_app:<APPLICATION-NAME>Sim" <<pio>> as pioHalAppSim

component "hal:Zumo" <<pio>> as pioHalTarget
component "hal:Target" <<pio>> as pioHalTarget
component "hal:Sim" <<pio>> as pioHalSim
}
}
Expand Down
76 changes: 38 additions & 38 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ check_skip_packages = yes
; *****************************************************************************
; Target environment for Zumo32U4.
; *****************************************************************************
[target:Zumo32U4]
[hal:Target]
platform = atmelavr @ ~4.1.0
board = a-star32U4
framework = arduino
Expand Down Expand Up @@ -85,7 +85,7 @@ test_port = com9
; It is assumed that the environment variable WEBOTS_HOME is set to the
; Webots directory, e.g. WEBOTS_HOME=C:\Users\<user>\AppData\Local\Programs\Webots
; *****************************************************************************
[target:Sim]
[hal:Sim]
platform = native @ ~1.2.1
build_flags =
-std=c++11
Expand All @@ -111,7 +111,7 @@ extra_scripts =
; *****************************************************************************
; PC target environment for tests
; *****************************************************************************
[target:Test]
[hal:Test]
platform = native @ ~1.2.1
build_flags =
-std=c++11
Expand Down Expand Up @@ -172,115 +172,115 @@ lib_ignore =
; Convoy leader application on target
; *****************************************************************************
[env:ConvoyLeaderTarget]
extends = target:Zumo32U4, app:ConvoyLeader, static_check_configuration
extends = hal:Target, app:ConvoyLeader, static_check_configuration
build_flags =
${target:Zumo32U4.build_flags}
${hal:Target.build_flags}
${app:ConvoyLeader.build_flags}
lib_deps =
${target:Zumo32U4.lib_deps}
${hal:Target.lib_deps}
${app:ConvoyLeader.lib_deps}
lib_ignore =
${target:Zumo32U4.lib_ignore}
${hal:Target.lib_ignore}
${app:ConvoyLeader.lib_ignore}
extra_scripts =
${target:Zumo32U4.extra_scripts}
${hal:Target.extra_scripts}

; *****************************************************************************
; Convoy leader application on simulation
; *****************************************************************************
[env:ConvoyLeaderSim]
extends = target:Sim, app:ConvoyLeader, static_check_configuration
extends = hal:Sim, app:ConvoyLeader, static_check_configuration
build_flags =
${target:Sim.build_flags}
${hal:Sim.build_flags}
${app:ConvoyLeader.build_flags}
lib_deps =
${target:Sim.lib_deps}
${hal:Sim.lib_deps}
${app:ConvoyLeader.lib_deps}
lib_ignore =
${target:Sim.lib_ignore}
${hal:Sim.lib_ignore}
${app:ConvoyLeader.lib_ignore}
extra_scripts =
${target:Sim.extra_scripts}
${hal:Sim.extra_scripts}

; *****************************************************************************
; Line follower application on target
; *****************************************************************************
[env:LineFollowerTarget]
extends = target:Zumo32U4, app:LineFollower, static_check_configuration
extends = hal:Target, app:LineFollower, static_check_configuration
build_flags =
${target:Zumo32U4.build_flags}
${hal:Target.build_flags}
${app:LineFollower.build_flags}
lib_deps =
${target:Zumo32U4.lib_deps}
${hal:Target.lib_deps}
${app:LineFollower.lib_deps}
lib_ignore =
${target:Zumo32U4.lib_ignore}
${hal:Target.lib_ignore}
${app:LineFollower.lib_ignore}
extra_scripts =
${target:Zumo32U4.extra_scripts}
${hal:Target.extra_scripts}

; *****************************************************************************
; Line follower application on simulation
; *****************************************************************************
[env:LineFollowerSim]
extends = target:Sim, app:LineFollower, static_check_configuration
extends = hal:Sim, app:LineFollower, static_check_configuration
build_flags =
${target:Sim.build_flags}
${hal:Sim.build_flags}
${app:LineFollower.build_flags}
lib_deps =
${target:Sim.lib_deps}
${hal:Sim.lib_deps}
${app:LineFollower.lib_deps}
lib_ignore =
${target:Sim.lib_ignore}
${hal:Sim.lib_ignore}
${app:LineFollower.lib_ignore}
extra_scripts =
${target:Sim.extra_scripts}
${hal:Sim.extra_scripts}

; *****************************************************************************
; Remote control application on target
; *****************************************************************************
[env:RemoteControlTarget]
extends = target:Zumo32U4, app:RemoteControl, static_check_configuration
extends = hal:Target, app:RemoteControl, static_check_configuration
build_flags =
${target:Zumo32U4.build_flags}
${hal:Target.build_flags}
${app:RemoteControl.build_flags}
lib_deps =
${target:Zumo32U4.lib_deps}
${hal:Target.lib_deps}
${app:RemoteControl.lib_deps}
lib_ignore =
${target:Zumo32U4.lib_ignore}
${hal:Target.lib_ignore}
${app:RemoteControl.lib_ignore}
extra_scripts =
${target:Zumo32U4.extra_scripts}
${hal:Target.extra_scripts}

; *****************************************************************************
; Remote control application on simulation
; *****************************************************************************
[env:RemoteControlSim]
extends = target:Sim, app:RemoteControl, static_check_configuration
extends = hal:Sim, app:RemoteControl, static_check_configuration
build_flags =
${target:Sim.build_flags}
${hal:Sim.build_flags}
${app:RemoteControl.build_flags}
lib_deps =
${target:Sim.lib_deps}
${hal:Sim.lib_deps}
${app:RemoteControl.lib_deps}
lib_ignore =
${target:Sim.lib_ignore}
${hal:Sim.lib_ignore}
${app:RemoteControl.lib_ignore}
extra_scripts =
${target:Sim.extra_scripts}
${hal:Sim.extra_scripts}

; *****************************************************************************
; PC target environment for tests
; *****************************************************************************
[env:Test]
extends = target:Test, static_check_configuration
extends = hal:Test, static_check_configuration
build_flags =
${target:Test.build_flags}
${hal:Test.build_flags}
${common.build_flags}
lib_deps =
${target:Test.lib_deps}
${hal:Test.lib_deps}
lib_ignore =
${target:Test.lib_ignore}
${hal:Test.lib_ignore}
extra_scripts =
${target:Test.extra_scripts}
${hal:Test.extra_scripts}

0 comments on commit b38d8fe

Please sign in to comment.