39 #define ERROR_LED LED4 40 #define NORMAL_LED LED5
46 #if defined(STM32L476xx) 57 #define ADC1_CHANNEL ADC_CHANNEL_6 58 #define ADC1_GPIO_PORT GPIOA 59 #define ADC1_GPIO_PIN GPIO_PIN_1 60 #define ADC1_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() 62 #define ADC2_CHANNEL ADC_CHANNEL_7 63 #define ADC2_GPIO_PORT GPIOA 64 #define ADC2_GPIO_PIN GPIO_PIN_2 65 #define ADC2_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() 67 #define DIGITAL_IO_PORT GPIOD 68 #define DIGITAL_IO_PIN GPIO_PIN_0 69 #define DIGITAL_IO_CLK_ENABLE() __GPIOD_CLK_ENABLE() 74 #error "Unknown development board: Define STM32L486xx for STM32L476-Discovery" 132 #define DIGITAL_IO_SET() HAL_GPIO_WritePin(DIGITAL_IO_PORT, DIGITAL_IO_PIN, GPIO_PIN_SET) 133 #define DIGITAL_IO_RESET() HAL_GPIO_WritePin(DIGITAL_IO_PORT, DIGITAL_IO_PIN, GPIO_PIN_RESET) 134 #define DIGITAL_IO_TOGGLE() HAL_GPIO_TogglePin(DIGITAL_IO_PORT, DIGITAL_IO_PIN) 230 uint16_t timer_count_value,
264 uint16_t timer_count_value,
Stereo Output: Configure DAC1 and DAC2, dual DMA Transfer.
Mono Input: Only configure ADC1, single DMA Transfer.
Internal MSI RC Oscillator.
Num_Channels_In
Number of input audio channels.
Clock_Reference
Clock Reference Source.
float getsamplingfrequency(void)
Simple function to return the best guess at the actual sampling frequency.
enum Num_Channels_Out Output_Configuration
void initialize(uint16_t timer_count_value, enum Num_Channels_In chanin, enum Num_Channels_Out chanout)
Wrapper function to perform all processor initialization for ECE 486.
void initialize_ece486(uint16_t timer_count_value, enum Num_Channels_In chanin, enum Num_Channels_Out chanout, enum Clock_Reference clkref)
Wrapper function to perform all processor initialization for ECE 486.
enum Num_Channels_In Input_Configuration
Mono Output: Only configure DAC1, single DMA Transfer.
Num_Channels_Out
Number of output audio channels.
Stereo Input: Configure ADC1 and ADC2, dual DMA Transfer.