Skip to content

Commit

Permalink
prpare using CI for generate cmsis-pack
Browse files Browse the repository at this point in the history
  • Loading branch information
GorgonMeducer committed Nov 27, 2023
1 parent 239a2ab commit 39741ca
Show file tree
Hide file tree
Showing 4 changed files with 186 additions and 252 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/c-cpp.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/cmake-single-platform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build documentation and pack
on:
workflow_dispatch:
push:
branches: [ developing ]
pull_request:
branches: [ developing ]
release:
types: [published]
jobs:
pack:
name: Generate pack
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Fetch tags
if: ${{ github.event_name == 'release' }}
run: |
git fetch --tags --force
- uses: Open-CMSIS-Pack/gen-pack-action@main
with:
doxygen-version: 1.9.2
packchk-version: 1.3.96
gen-pack-script: ./gen_pack.sh
gen-pack-output: ./output
18 changes: 11 additions & 7 deletions GorgonMeducer.perf_counter.pdsc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>

<package schemaVersion="1.7.7" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="https://github.com/raw/Open-CMSIS-Pack/Open-CMSIS-Pack-Spec/v1.7.7/schema/PACK.xsd">
<package schemaVersion="1.7.28" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="https://github.com/raw/Open-CMSIS-Pack/Open-CMSIS-Pack-Spec/v1.7.28/schema/PACK.xsd">
<vendor>GorgonMeducer</vendor>
<name>perf_counter</name>
<description>A dedicated performance counter for the Cortex-M Systick. It shares the SysTick with users' original SysTick function without interfering with it. This library will bring new functionalities, such as performance counter, APIs for delay, clock() defined in time.h etc.</description>
Expand All @@ -16,6 +16,10 @@
<repository type="git">https://github.com/GorgonMeducer/perf_counter.git</repository>

<releases>
<!--automatically generated content, please do not modify -->
<release version="9.9.9" tag="9.9.9">
Active development ...
</release>
<release date="2023-10-19" version="2.2.4" url="https://github.com/raw/GorgonMeducer/perf_counter/CMSIS-Pack/cmsis-pack/GorgonMeducer.perf_counter.2.2.4.pack">
- Add support for RT-Thread-nano
- Add an API for checking stack overflow
Expand Down Expand Up @@ -256,7 +260,7 @@
<component Cclass="Utilities" Cversion="2.2.3" Cgroup="perf_counter" Csub="Core" Cvariant="Library" condition="CMSIS-CORE">
<description>A dedicated performance counter for Cortex-M systick.</description>
<files>
<file category="header" name="lib/perf_counter.h"/>
<file category="header" name="perf_counter.h"/>
<file category="library" name="lib/perf_counter.lib" condition="Cortex-M Arm Compiler"/>
<file category="library" name="lib/libperf_counter_gcc.a" condition="Cortex-M Arm GCC"/>
</files>
Expand All @@ -274,7 +278,7 @@
<component Cclass="Utilities" Cversion="2.2.3" Cgroup="perf_counter" Csub="Core" Cvariant="Source" isDefaultVariant="true" condition="CMSIS-CORE">
<description>A dedicated performance counter for Cortex-M systick.</description>
<files>
<file category="header" name="lib/perf_counter.h"/>
<file category="header" name="perf_counter.h"/>
<file category="source" name="perf_counter.c" />
<file category="source" name="systick_wrapper_ual.s" condition="Previous Generation Cortex-M Arm Compiler CMSIS-CORE"/>
<file category="source" name="systick_wrapper_gcc.s" condition="Cortex-M Arm GCC CMSIS-CORE"/>
Expand Down Expand Up @@ -317,7 +321,7 @@
<component Cclass="Utilities" Cversion="2.2.3" Cgroup="perf_counter" Csub="RTX5 Patch" condition="RTX5 Patch">
<description>A Patch for RTX5</description>
<files>
<file category="source" name="lib/perf_os_patch_rtx5.c"/>
<file category="source" name="os/perf_os_patch_rtx5.c"/>
</files>
<Pre_Include_Global_h>

Expand All @@ -329,7 +333,7 @@
<component Cclass="Utilities" Cversion="2.2.3" Cgroup="perf_counter" Csub="FreeRTOS Patch" condition="perf_counter">
<description>A Patch for FreeRTOS</description>
<files>
<file category="source" name="lib/perf_os_patch_freertos.c"/>
<file category="source" name="os/perf_os_patch_freertos.c"/>
</files>
<Pre_Include_Global_h>
//! \brief Enable RTOS Patch for perf_counter
Expand All @@ -352,7 +356,7 @@ extern void __freertos_evr_on_task_switched_in(void *ptTCB, unsigned int uxTopPr
<component Cclass="Utilities" Cversion="2.2.3" Cgroup="perf_counter" Csub="RT-Thread Patch" condition="perf_counter">
<description>A Patch for RT-Thread</description>
<files>
<file category="source" name="lib/perf_os_patch_rt_thread.c"/>
<file category="source" name="os/perf_os_patch_rt_thread.c"/>
</files>
<Pre_Include_Global_h>

Expand All @@ -370,7 +374,7 @@ extern void __rt_thread_scheduler_hook(struct rt_thread *from, struct rt_thread
<component Cclass="Utilities" Cversion="2.2.3" Cgroup="perf_counter" Csub="ThreadX Patch" condition="perf_counter">
<description>A Patch for ThreadX</description>
<files>
<file category="source" name="lib/perf_os_patch_threadx.c"/>
<file category="source" name="os/perf_os_patch_threadx.c"/>
</files>
<Pre_Include_Global_h>
//! \brief Enable RTOS Patch for perf_counter
Expand Down
Loading

0 comments on commit 39741ca

Please sign in to comment.