Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci: add build projects and GitHub Actions workflows #4

Merged
merged 3 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .ci/Board/Board.clayer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ layer:
- STDERR

packs:
- pack: ARM::Cortex_DFP
- pack: ARM::CMSIS@>=6.0.0
- pack: ARM::CMSIS-Compiler@>=2.1.0

Expand Down
4 changes: 0 additions & 4 deletions .ci/Board/Driver/Driver_ETH_MAC.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,6 @@ static int32_t ARM_ETH_MAC_PHY_Write(uint8_t phy_addr, uint8_t reg_addr, uint16_
return 0;
}

static void ARM_ETH_MAC_SignalEvent(uint32_t event)
{
}

// End ETH MAC Interface

extern \
Expand Down
2 changes: 1 addition & 1 deletion .ci/Board/Driver/Driver_ETH_PHY.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static int32_t ARM_ETH_PHY_SetMode(uint32_t mode)

static ARM_ETH_LINK_STATE ARM_ETH_PHY_GetLinkState(void)
{
ARM_ETH_LINK_STATE link_state = { 0 };
ARM_ETH_LINK_STATE link_state = { ARM_ETH_LINK_DOWN };
return link_state;
}

Expand Down
5 changes: 0 additions & 5 deletions .ci/Board/Driver/Driver_MCI.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,6 @@ static ARM_MCI_STATUS ARM_MCI_GetStatus(void)
return mci_status;
}

static void ARM_MCI_SignalEvent(uint32_t event)
{
// function body
}

// End MCI Interface

extern \
Expand Down
5 changes: 0 additions & 5 deletions .ci/Board/Driver/Driver_USART.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,6 @@ static ARM_USART_MODEM_STATUS ARM_USART_GetModemStatus(void)
return modem_status;
}

static void ARM_USART_SignalEvent(uint32_t event)
{
// function body
}

// End USART Interface

extern \
Expand Down
10 changes: 0 additions & 10 deletions .ci/Board/Driver/Driver_USBD.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,6 @@ static uint16_t ARM_USBD_GetFrameNumber(void)
return 0U;
}

static void ARM_USBD_SignalDeviceEvent(uint32_t event)
{
// function body
}

static void ARM_USBD_SignalEndpointEvent(uint8_t ep_addr, uint32_t ep_event)
{
// function body
}

// End USBD Interface

extern \
Expand Down
12 changes: 1 addition & 11 deletions .ci/Board/Driver/Driver_USBH.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ static ARM_USBH_PIPE_HANDLE ARM_USBH_PipeCreate(uint8_t dev_addr,
uint16_t ep_max_packet_size,
uint8_t ep_interval)
{
return NULL;
return (ARM_USBH_PIPE_HANDLE)NULL;
}

static int32_t ARM_USBH_PipeModify(ARM_USBH_PIPE_HANDLE pipe_hndl,
Expand Down Expand Up @@ -160,16 +160,6 @@ static uint16_t ARM_USBH_GetFrameNumber(void)
return 0U;
}

static void ARM_USBH_SignalPortEvent(uint8_t port, uint32_t event)
{
// function body
}

static void ARM_USBH_SignalPipeEvent(ARM_USBH_PIPE_HANDLE pipe_hndl, uint32_t event)
{
// function body
}

// End USBH Interface

extern \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ project:
- pack: ARM::CMSIS-RTX@>=5.8.0

add-path:
- ../../../Components/USB/Include
- ../../Components/USB/Include

components:
- component: ARM::CMSIS:CORE
Expand Down
27 changes: 0 additions & 27 deletions .ci/FileSystem/FileSystem.csolution.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .ci/FileSystem/vcpkg-configuration.json

This file was deleted.

31 changes: 31 additions & 0 deletions .ci/Library.csolution.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
solution:
description: MDK-Middleware Build Test
created-for: CMSIS-Toolbox@2.4.0

cdefault:

packs:
- pack: ARM::Cortex_DFP

target-types:
- type: CM4
device: ARMCM4

build-types:
- type: Debug
debug: on
optimize: debug
define:
- FS_DEBUG_EVR_ENABLE : 1
- NET_DEBUG_ENABLE : 1
- USBD_DEBUG_EVR : 1
- USBH_DEBUG_EVR : 1
- type: Release
debug: off
optimize: balanced

projects:
- project: FileSystem/FileSystem.cproject.yml
- project: Network/Network.cproject.yml
- project: USB/Device/USB_Device.cproject.yml
- project: USB/Host/USB_Host.cproject.yml
34 changes: 0 additions & 34 deletions .ci/Network/Network.csolution.yml

This file was deleted.

60 changes: 0 additions & 60 deletions .ci/Network/cdefault.yml

This file was deleted.

15 changes: 2 additions & 13 deletions .ci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,9 @@ This directory contains CMSIS Solution projects for build tests.

## Build

- Open MDK-Middleware repository in VS Code
- Open .ci directory in VS Code

- Use Explorer and find required solution file:
- .ci/FileSystem/FileSystem.csolution.yml
- .ci/Network/Network.csolution.yml
- .ci/USB/Device/USB_Device.csolution.yml
- .ci/USB/Host/USB_Host.csolution.yml

- Next to the solution file one can find vcpkg-configuration.json
- Right click on it and select "Activate Environment"

- Right click on solution file and select "Open Solution"

- CMSIS solution window opens
- Open CMSIS Solution view
- Select "Build" to build complete solution
- Select "Active Context" to build required context

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

// <e>USB Host Debug
// <i>Enable USB Host debugging with Event Recorder
#ifndef USBH_DEBUG_EVR
#define USBH_DEBUG_EVR 0
#endif

// <o>Core <0=>Off <1=>Errors <2=>Errors + API <3=>All
// <i>Configure USB Host Core event recording
Expand Down
29 changes: 0 additions & 29 deletions .ci/USB/Device/USB_Device.csolution.yml

This file was deleted.

Loading
Loading