Skip to content

Commit b690a7b

Browse files
Jonathan Pallant (42 Technology)Yatekii
authored andcommitted
Add VBAT pin on Icarus board.
1 parent 2432da0 commit b690a7b

File tree

1 file changed

+5
-0
lines changed
  • boards/actinius-icarus/src

1 file changed

+5
-0
lines changed

boards/actinius-icarus/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ pub struct Board {
4848
/// The SIM select line (low = nano SIM, high/default = eSIM)
4949
pub sim_select: Pin<Output<PushPull>>,
5050

51+
/// The battery voltage analog input
52+
pub vbat: p0::P0_13<Input<Floating>>,
53+
5154
/// Cortex-M33 Core peripheral: Cache and branch predictor maintenance operations
5255
pub CBP: pac::CBP,
5356

@@ -460,6 +463,7 @@ impl Board {
460463
cdc_uart,
461464
pin_uart,
462465
sim_select: pins0.p0_08.into_push_pull_output(Level::High).degrade(),
466+
vbat: pins0.p0_13.into_floating_input(),
463467
pins: Pins {
464468
D0: pins0.p0_00,
465469
D1: pins0.p0_01,
@@ -474,6 +478,7 @@ impl Board {
474478
// Red LED is on P0_10
475479
// Green LED is on P0_11
476480
// Blue LED is on P0_12
481+
// Battery voltage is on A0 / P0_13
477482
A1: pins0.p0_14,
478483
A2: pins0.p0_15,
479484
A3: pins0.p0_16,

0 commit comments

Comments
 (0)