|
@@ -1,10 +1,15 @@
|
1
|
1
|
# PD Buddy Sink Firmware
|
2
|
2
|
|
3
|
|
-This is the firmware for the PD Buddy project. Currently, this specifically
|
4
|
|
-means the [PD Buddy Sink][]. The firmware is considered stable, and supports
|
5
|
|
-the most common use cases for the device.
|
|
3
|
+This is the firmware for the [PD Buddy Sink][], a smart power jack for USB
|
|
4
|
+Power Delivery.
|
|
5
|
+
|
|
6
|
+The firmware is written using [ChibiOS][] RT and HAL, and is comprised of a
|
|
7
|
+[library][] for USB Power Delivery and an application using that library to
|
|
8
|
+request a configured voltage and current.
|
6
|
9
|
|
7
|
10
|
[PD Buddy Sink]: https://git.clayhobbs.com/pd-buddy/pd-buddy-sink
|
|
11
|
+[ChibiOS]: http://www.chibios.org/
|
|
12
|
+[library]: lib/README.md
|
8
|
13
|
|
9
|
14
|
## Features
|
10
|
15
|
|
|
@@ -26,15 +31,18 @@ the most common use cases for the device.
|
26
|
31
|
* The amount of current the device requests can be set as a power or a
|
27
|
32
|
resistance, as well as a current. These values are taken as constant over
|
28
|
33
|
the configured voltage range.
|
29
|
|
-* Setup mode implements a USB CDC-ACM command-line interface allowing
|
30
|
|
- configuration to be loaded from and stored in flash.
|
|
34
|
+* Setup mode implements a USB CDC-ACM command-line interface, compatible with
|
|
35
|
+ Linux, Mac OS X, and Windows 10, allowing configuration to be loaded from and
|
|
36
|
+ stored in flash.
|
31
|
37
|
* Setup mode allows real-time renegotiation of voltage and current, complete
|
32
|
38
|
with the ability to control whether the output is enabled or disabled.
|
33
|
|
-* User can easily read a power supply's advertised capabilities while in Setup
|
34
|
|
- mode.
|
35
|
|
-* Firmware upgrades are easily possible via Setup mode and the
|
|
39
|
+* Users can easily read a power supply's advertised capabilities while in Setup
|
|
40
|
+ mode using a [PD Buddy Wye][].
|
|
41
|
+* Firmware upgrades are easily possible via Setup mode in conjunction with the
|
36
|
42
|
microcontroller's built-in DfuSe bootloader.
|
37
|
43
|
|
|
44
|
+[PD Buddy Wye]: https://git.clayhobbs.com/pd-buddy/pd-buddy-wye
|
|
45
|
+
|
38
|
46
|
## Prerequisites
|
39
|
47
|
|
40
|
48
|
To compile the firmware, you must first install the [GNU ARM Embedded
|