Skip to content

Commit

Permalink
#45 Fixes to compilation issues in usbc-pdsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert authored and More-Wrong committed Nov 28, 2023
1 parent 4267f9b commit 1511759
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 7 deletions.
34 changes: 34 additions & 0 deletions receivers/native/arm/peripherals/usbc-pd/all/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.zcode</groupId>
<artifactId>zcode-receivers-usbc-pd</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<artifactId>zcode-receivers-usbc-pd-all</artifactId>
<packaging>nar</packaging>
<name>Zcode full peripheral set</name>

<dependencies>
<dependency>
<groupId>org.zcode</groupId>
<artifactId>zcode-receivers-usbc-pd-core</artifactId>
<version>${project.version}</version>
<type>nar</type>
</dependency>
<dependency>
<groupId>org.zcode</groupId>
<artifactId>zcode-receivers-usbc-pd-ll</artifactId>
<version>${project.version}</version>
<type>nar</type>
</dependency>
<dependency>
<groupId>org.zcode</groupId>
<artifactId>zcode-receivers-usbc-pd-ll-stm32g</artifactId>
<version>${project.version}</version>
<type>nar</type>
</dependency>
</dependencies>
</project>
2 changes: 2 additions & 0 deletions receivers/native/arm/peripherals/usbc-pd/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<packaging>pom</packaging>
<name>Zcode USB C Power Delivery</name>
<modules>
<module>all</module>
<module>usbc-pd-core</module>
<module>usbc-pd-ll</module>
<module>usbc-pd-ll-stm32g</module>
</modules>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

#include <llIncludes.hpp>
#include <dma-ll/DmaManager.hpp>
#include "../../../../../../../../clock/src/main/c++/clock-ll/ClockManager.hpp"
#include "../../../../../../../../clock/src/main/c++/clock-ll/SystemMilliClock.hpp"
#include <clock-ll/ClockManager.hpp>
#include <clock-ll/SystemMilliClock.hpp>
#include "UcpdParser.hpp"

enum PowerStatus {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#include <llIncludes.hpp>
#include <dma-ll/DmaManager.hpp>
#include <interrupt-ll/InterruptManager.hpp>
#include "../../../../../../../../clock-ll/src/main/c++/clock-ll/ClockManager.hpp"
#include "../../../../../../../../clock-ll/src/main/c++/clock-ll/SystemMilliClock.hpp"
#include <clock-ll/ClockManager.hpp>
#include <clock-ll/SystemMilliClock.hpp>

enum UcpdTxTerminationStatus {
UcpdTxAborted, UcpdTxMessageDiscarded, UcpdTxDmaFail, UcpdMessageSent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#define SRC_MAIN_CPP_ARM_NO_OS_STM32G4_USBC_PD_MODULE_LOWLEVEL_SPECIFIC_UCPDPARSER_HPP_

#include <llIncludes.hpp>
#include "../../../../../../../../clock-ll/src/main/c++/clock-ll/ClockManager.hpp"
#include "../../../../../../../../clock-ll/src/main/c++/clock-ll/SystemMilliClock.hpp"
#include <clock-ll/ClockManager.hpp>
#include <clock-ll/SystemMilliClock.hpp>
#include "UcpdLowLevel.hpp"
#include "UcpdMessages.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <usbc-pd-ll/UsbcPdLLInterfaceInclude.hpp>

#if defined(USBC_PD_LL_STM32G)
#if defined(USBC_PD_LL_STM32_Ver_ucpd_v1_0)
#include <usbc-pd-ll-stm32g/lowlevel/specific/UcpdInternal.hpp>
#else
#error Please select a supported device family
Expand Down

0 comments on commit 1511759

Please sign in to comment.