Merge branch 'develop' of github.com:qmk/qmk_firmware into develop
This commit is contained in:
		
						commit
						328a8322f4
					
				
					 2 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
					@ -64,7 +64,7 @@ __attribute__((weak)) usbpd_allowance_t usbpd_get_allowance(void) {
 | 
				
			||||||
        switch (vstate_max) {
 | 
					        switch (vstate_max) {
 | 
				
			||||||
            case 0:
 | 
					            case 0:
 | 
				
			||||||
            case 1:
 | 
					            case 1:
 | 
				
			||||||
                return USBPD_500MA; // Note that this is 500mA (i.e. max USB 2.0), not 900mA, as we're not using USB 3.1 as a sink device.
 | 
					                return USBPD_500MA;  // Note that this is 500mA (i.e. max USB 2.0), not 900mA, as we're not using USB 3.1 as a sink device.
 | 
				
			||||||
            case 2:
 | 
					            case 2:
 | 
				
			||||||
                return USBPD_1500MA;
 | 
					                return USBPD_1500MA;
 | 
				
			||||||
            case 3:
 | 
					            case 3:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -74,9 +74,9 @@ GPTConfig gpt7cfg1 = {.frequency = AUDIO_DAC_SAMPLE_RATE,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void gpt_audio_state_cb(GPTDriver *gptp);
 | 
					static void gpt_audio_state_cb(GPTDriver *gptp);
 | 
				
			||||||
GPTConfig   gptStateUpdateCfg = {.frequency = 10,
 | 
					GPTConfig   gptStateUpdateCfg = {.frequency = 10,
 | 
				
			||||||
                      .callback  = gpt_audio_state_cb,
 | 
					                               .callback  = gpt_audio_state_cb,
 | 
				
			||||||
                      .cr2       = TIM_CR2_MMS_1, /* MMS = 010 = TRGO on Update Event.    */
 | 
					                               .cr2       = TIM_CR2_MMS_1, /* MMS = 010 = TRGO on Update Event.    */
 | 
				
			||||||
                      .dier      = 0U};
 | 
					                               .dier      = 0U};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const DACConfig dac_conf_ch1 = {.init = AUDIO_DAC_OFF_VALUE, .datamode = DAC_DHRM_12BIT_RIGHT};
 | 
					static const DACConfig dac_conf_ch1 = {.init = AUDIO_DAC_OFF_VALUE, .datamode = DAC_DHRM_12BIT_RIGHT};
 | 
				
			||||||
static const DACConfig dac_conf_ch2 = {.init = AUDIO_DAC_OFF_VALUE, .datamode = DAC_DHRM_12BIT_RIGHT};
 | 
					static const DACConfig dac_conf_ch2 = {.init = AUDIO_DAC_OFF_VALUE, .datamode = DAC_DHRM_12BIT_RIGHT};
 | 
				
			||||||
| 
						 | 
					@ -131,7 +131,7 @@ void channel_2_start(void) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void channel_2_stop(void) {
 | 
					void channel_2_stop(void) {
 | 
				
			||||||
    gptStopTimer(&GPTD7);
 | 
					    gptStopTimer(&GPTD7);
 | 
				
			||||||
    palSetPadMode(GPIOA, 5, PAL_MODE_OUTPUT_PUSHPULL); \
 | 
					    palSetPadMode(GPIOA, 5, PAL_MODE_OUTPUT_PUSHPULL);
 | 
				
			||||||
    palSetPad(GPIOA, 5);
 | 
					    palSetPad(GPIOA, 5);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue