Skip to content

Commit

Permalink
Merge pull request #4 from stephendpmurphy/dev
Browse files Browse the repository at this point in the history
Initial release of the ICM20948 API
  • Loading branch information
stephendpmurphy authored Sep 30, 2020
2 parents 9e00d04 + f5877a2 commit 26d707e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 53 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/release.yml

This file was deleted.

32 changes: 8 additions & 24 deletions .github/workflows/version_bump.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,16 @@
name: Release
name: Version Bump & Release

on:
push:
branches:
- master

jobs:
build:
release-on-push:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@master
with:
fetch-depth: '0'
- name: Bump version and push tag
id: bump_version
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
RELEASE_BRANCHES: 'master'

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
- uses: rymndhng/release-on-push-action@master
with:
tag_name: ${{ bump_version.outputs.new_tag }}
release_name: Release ${{ bump_version.outputs.new_tag }}
body: |
'new release'
draft: false
prerelease: false
bump_version_scheme: minor
4 changes: 2 additions & 2 deletions inc/icm20948_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
#define ICM20948_MAG_ENABLE (true)
#define ICM20948_MAG_DISABLE (false)

typedef int8_t(*icm20948_read_fptr_t)(uint8_t addr, uint8_t *data, uint32_t len);
typedef int8_t(*icm20948_write_fptr_t)(uint8_t addr, uint8_t *data, uint32_t len);
typedef int8_t(*icm20948_read_fptr_t)(const uint8_t addr, uint8_t *data, const uint32_t len);
typedef int8_t(*icm20948_write_fptr_t)(const uint8_t addr, const uint8_t *data, const uint32_t len);
typedef void(*icm20948_delay_us_fptr_t)(uint32_t period);

typedef enum {
Expand Down

0 comments on commit 26d707e

Please sign in to comment.