kopia lustrzana https://github.com/UU5JPP/Wolf-LITE
master
rodzic
44fcd4e58a
commit
0c143b209a
|
@ -18,7 +18,7 @@ bool WM8731_Muting; //Muting flag
|
|||
//Private variables
|
||||
|
||||
//Prototypes
|
||||
//static uint8_t WM8731_SendI2CCommand(uint8_t reg, uint8_t value); // send I2C command to codec
|
||||
static uint8_t WM8731_SendI2CCommand(uint8_t reg, uint8_t value); // send I2C command to codec
|
||||
static HAL_StatusTypeDef HAL_I2S_TXRX_DMA(I2S_HandleTypeDef *hi2s, uint16_t *txData, uint16_t *rxData, uint16_t txSize, uint16_t rxSize); // Full-duplex implementation of I2S startup
|
||||
static void I2SEx_Fix(I2S_HandleTypeDef *hi2s);
|
||||
|
||||
|
@ -44,7 +44,7 @@ void WM8731_CleanBuffer(void)
|
|||
}
|
||||
|
||||
// send I2C command to codec
|
||||
uint8_t WM8731_SendI2CCommand(uint8_t reg, uint8_t value)
|
||||
static uint8_t WM8731_SendI2CCommand(uint8_t reg, uint8_t value)
|
||||
{
|
||||
uint8_t st = 2;
|
||||
uint8_t repeats = 0;
|
||||
|
|
|
@ -18,7 +18,6 @@ extern bool WM8731_Buffer_underrun; //lack of data in the buffer from the audio
|
|||
extern uint32_t WM8731_DMA_samples; //count the number of samples transmitted to the audio codec
|
||||
extern bool WM8731_Beeping; //Beeping flag
|
||||
extern bool WM8731_Muting; //Muting flag
|
||||
extern uint8_t WM8731_SendI2CCommand(uint8_t reg, uint8_t value);
|
||||
|
||||
//Public methods
|
||||
extern void WM8731_Init(void); //I2C audio codec initialization
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
|
||||
/*
|
||||
* Auto generated Run-Time-Environment Configuration File
|
||||
* *** Do not modify ! ***
|
||||
*
|
||||
* Project: 'WOLF-Lite'
|
||||
* Target: 'WOLF-Lite'
|
||||
*/
|
||||
|
||||
#ifndef RTE_COMPONENTS_H
|
||||
#define RTE_COMPONENTS_H
|
||||
|
||||
|
||||
/*
|
||||
* Define the Device Header File:
|
||||
*/
|
||||
#define CMSIS_device_header "stm32f4xx.h"
|
||||
|
||||
|
||||
|
||||
#endif /* RTE_COMPONENTS_H */
|
||||
|
||||
/*
|
||||
* Auto generated Run-Time-Environment Configuration File
|
||||
* *** Do not modify ! ***
|
||||
*
|
||||
* Project: 'WOLF-Lite'
|
||||
* Target: 'WOLF-Lite'
|
||||
*/
|
||||
|
||||
#ifndef RTE_COMPONENTS_H
|
||||
#define RTE_COMPONENTS_H
|
||||
|
||||
|
||||
/*
|
||||
* Define the Device Header File:
|
||||
*/
|
||||
#define CMSIS_device_header "stm32f4xx.h"
|
||||
|
||||
|
||||
|
||||
#endif /* RTE_COMPONENTS_H */
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<TargetName>WOLF-Lite</TargetName>
|
||||
<ToolsetNumber>0x4</ToolsetNumber>
|
||||
<ToolsetName>ARM-ADS</ToolsetName>
|
||||
<pCCUsed>6150000::V6.15::ARMCLANG</pCCUsed>
|
||||
<pCCUsed>6140000::V6.14::ARMCLANG</pCCUsed>
|
||||
<uAC6>1</uAC6>
|
||||
<TargetOption>
|
||||
<TargetCommonOption>
|
||||
|
@ -940,6 +940,11 @@
|
|||
<Layers>
|
||||
<Layer>
|
||||
<LayName><Project Info></LayName>
|
||||
<LayDesc></LayDesc>
|
||||
<LayUrl></LayUrl>
|
||||
<LayKeys></LayKeys>
|
||||
<LayCat></LayCat>
|
||||
<LayLic></LayLic>
|
||||
<LayTarg>0</LayTarg>
|
||||
<LayPrjMark>1</LayPrjMark>
|
||||
</Layer>
|
||||
|
|
Ładowanie…
Reference in New Issue