-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'electro-smith:master' into dma_region_cfg
- Loading branch information
Showing
25 changed files
with
1,158 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Test Results | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Unit Tests"] | ||
types: | ||
- completed | ||
permissions: {} | ||
|
||
jobs: | ||
test-results: | ||
name: Test Results | ||
runs-on: ubuntu-latest | ||
if: github.event.workflow_run.conclusion != 'skipped' | ||
|
||
permissions: | ||
checks: write | ||
|
||
# needed unless run with comment_mode: off | ||
pull-requests: write | ||
|
||
# required by download step to access artifacts API | ||
actions: read | ||
|
||
steps: | ||
- name: Download and Extract Artifacts | ||
uses: dawidd6/action-download-artifact@e7466d1a7587ed14867642c2ca74b5bcc1e19a2d | ||
with: | ||
run_id: ${{ github.event.workflow_run.id }} | ||
path: artifacts | ||
|
||
- name: Publish Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
with: | ||
commit: ${{ github.event.workflow_run.head_sha }} | ||
event_file: artifacts/Event File/event.json | ||
event_name: ${{ github.event.workflow_run.event }} | ||
files: "artifacts/**/*.xml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
Middlewares/ST/STM32_USB_Host_Library/Class/MIDI/Inc/usbh_midi.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
/** | ||
****************************************************************************** | ||
* @file usbh_midi.h | ||
* @author Greg Burns | ||
* @author MCD Application Team | ||
* @brief This file contains all the prototypes for the usbh_midi.c | ||
****************************************************************************** | ||
* @attention | ||
* | ||
* <h2><center>© Copyright (c) 2015 STMicroelectronics. | ||
* All rights reserved.</center></h2> | ||
* | ||
* This software component is licensed by ST under Ultimate Liberty license | ||
* SLA0044, the "License"; You may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at: | ||
* www.st.com/SLA0044 | ||
* | ||
****************************************************************************** | ||
*/ | ||
|
||
/* Define to prevent recursive ----------------------------------------------*/ | ||
#ifndef __USBH_MIDI_H | ||
#define __USBH_MIDI_H | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/* Includes ------------------------------------------------------------------*/ | ||
#include "usbh_core.h" | ||
|
||
typedef enum { | ||
MIDI_INIT = 0, | ||
MIDI_IDLE, | ||
MIDI_RX, | ||
MIDI_RX_POLL, | ||
MIDI_RX_ERROR, | ||
MIDI_FATAL_ERROR | ||
} MIDI_StateTypeDef; | ||
|
||
typedef enum { | ||
MIDI_OK, | ||
MIDI_BUSY, | ||
MIDI_ERROR | ||
} MIDI_ErrorTypeDef; | ||
|
||
typedef void (*USBH_MIDI_RxCallback)(uint8_t* buff, size_t len, void* pUser); | ||
|
||
#define USBH_MIDI_RX_BUF_SIZE 64 | ||
|
||
/* Structure for MIDI process */ | ||
typedef struct _MIDI_Process { | ||
uint8_t InPipe; | ||
uint8_t InEp; | ||
uint16_t InEpSize; | ||
uint8_t OutPipe; | ||
uint8_t OutEp; | ||
uint16_t OutEpSize; | ||
MIDI_StateTypeDef state; | ||
MIDI_ErrorTypeDef error; | ||
USBH_MIDI_RxCallback callback; | ||
void* pUser; | ||
uint8_t rxBuffer[USBH_MIDI_RX_BUF_SIZE]; | ||
} MIDI_HandleTypeDef; | ||
|
||
/* MIDI Class Codes */ | ||
#define USB_AUDIO_CLASS 0x01U | ||
#define USB_MIDI_STREAMING_SUBCLASS 0x03U | ||
|
||
extern USBH_ClassTypeDef USBH_midi; | ||
#define USBH_MIDI_CLASS &USBH_midi | ||
|
||
uint8_t USBH_MIDI_IsReady(USBH_HandleTypeDef *phost); | ||
|
||
MIDI_ErrorTypeDef USBH_MIDI_Transmit(USBH_HandleTypeDef *phost, | ||
uint8_t* data, size_t len); | ||
|
||
void USBH_MIDI_SetReceiveCallback(USBH_HandleTypeDef *phost, | ||
USBH_MIDI_RxCallback cb, void* pUser); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* __USBH_MIDI_H */ | ||
|
||
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
Oops, something went wrong.