PF1550 Driver
API reference
Loading...
Searching...
No Matches
pf1550_profiles.hpp
Go to the documentation of this file.
1
10#pragma once
11
12#include <array>
13#include <cstdint>
14
16
22 uint8_t reg;
23 uint8_t value;
25 uint32_t delay_us;
26};
27
39inline constexpr std::array<RegisterWrite, 14> kPortentaH7Default = {{
40 {0x4F, 0x00, 0}, // LDO2 -> 1.8 V
41 {0x4C, 0x05, 0}, // LDO1 -> 1.0 V
42 {0x4D, 0x0F, 0}, // LDO1 enable
43 {0x52, 0x09, 0}, // LDO3 -> 1.2 V
44 {0x53, 0x0F, 0}, // LDO3 enable
45 {0x58, 0x03, 0}, // PWRCTRL0: STANDBYDLY = 3, STANDBYINV = 0
46 {0x9C, 0x80, 1000}, // charger LED duty (Portenta bootloader)
47 {0x9E, 0x20, 1000}, // disable charger LED
48 {0x42, 0x02, 1000}, // SW3_CTRL1: current limit 1.5 A typical (Table 126)
49 {0x94, 0xA0, 0}, // VBUS input limit 1500 mA
50 {0x3B, 0x01, 0}, // SW2_CTRL: on in RUN only
51 {0x35, 0x01, 0}, // SW1 ctrl
52 {0x41, 0x0F, 0}, // SW3 ctrl
53 {0x50, 0x0F, 0}, // LDO2 commit / final enable (must be last)
54}};
55
57inline constexpr const char* kPortentaH7DefaultName = "portenta_h7_default";
58
73inline constexpr std::array<RegisterWrite, 14> kPortentaH7Carrier = {{
74 {0x35, 0x0F, 5000}, // SW1 enable (delay for +3V1SW before LDOs)
75 {0x4F, 0x00, 0}, // LDO2 -> 1.8 V
76 {0x4C, 0x05, 0}, // LDO1 -> 1.0 V
77 {0x4D, 0x0F, 0}, // LDO1 enable
78 {0x52, 0x09, 0}, // LDO3 -> 1.2 V
79 {0x53, 0x0F, 0}, // LDO3 enable
80 {0x58, 0x03, 0}, // PWRCTRL0: STANDBYDLY = 3, STANDBYINV = 0
81 {0x9C, 0x80, 1000}, // charger LED duty
82 {0x9E, 0x20, 1000}, // disable charger LED (CHGB blips)
83 {0x42, 0x02, 1000}, // SW3_CTRL1: current limit 1.5 A typical (Table 126)
84 {0x94, 0xA0, 0}, // VBUS input limit 1500 mA
85 {0x3B, 0x0F, 0}, // SW2 ctrl — full enable for carrier
86 {0x41, 0x0F, 0}, // SW3 ctrl
87 {0x50, 0x0F, 0}, // LDO2 commit / final enable (must be last)
88}};
89
90inline constexpr const char* kPortentaH7CarrierName = "portenta_h7_carrier";
91
92} // namespace pf1550::profiles
Definition pf1550_profiles.hpp:15
constexpr std::array< RegisterWrite, 14 > kPortentaH7Default
Portenta H7 eval MCU-domain profile (VFR heritage).
Definition pf1550_profiles.hpp:39
constexpr std::array< RegisterWrite, 14 > kPortentaH7Carrier
Portenta H7 + carrier bring-up profile (SW1-first, full SW2 enable).
Definition pf1550_profiles.hpp:73
constexpr const char * kPortentaH7DefaultName
Human-readable profile identifier for logging and HAL binding.
Definition pf1550_profiles.hpp:57
constexpr const char * kPortentaH7CarrierName
Definition pf1550_profiles.hpp:90
Single I2C register write with optional post-write delay.
Definition pf1550_profiles.hpp:21
uint32_t delay_us
Definition pf1550_profiles.hpp:25
uint8_t reg
Definition pf1550_profiles.hpp:22
uint8_t value
Definition pf1550_profiles.hpp:23