configs/stm32f344-disco: Clean up some debug output strings.
This commit is contained in:
parent
4cf3a06ef6
commit
5000e31c4f
@ -371,13 +371,13 @@ static int smps_setup(FAR struct smps_dev_s *dev)
|
|||||||
hrtim = lower->hrtim;
|
hrtim = lower->hrtim;
|
||||||
if (hrtim == NULL)
|
if (hrtim == NULL)
|
||||||
{
|
{
|
||||||
pwrerr("ERROR: failed to get hrtim ");
|
pwrerr("ERROR: Failed to get hrtim ");
|
||||||
}
|
}
|
||||||
|
|
||||||
adc = lower->adc;
|
adc = lower->adc;
|
||||||
if (adc == NULL)
|
if (adc == NULL)
|
||||||
{
|
{
|
||||||
pwrerr("ERROR: failed to get ADC lower level interface");
|
pwrerr("ERROR: Failed to get ADC lower level interface");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: create current limit table */
|
/* TODO: create current limit table */
|
||||||
@ -412,7 +412,7 @@ static int smps_start(FAR struct smps_dev_s *dev)
|
|||||||
per = fclk/TIMA_PWM_FREQ;
|
per = fclk/TIMA_PWM_FREQ;
|
||||||
if (per > HRTIM_PER_MAX)
|
if (per > HRTIM_PER_MAX)
|
||||||
{
|
{
|
||||||
pwrerr("ERROR: can not achieve tima pwm freq=%u if fclk=%llu\n",
|
pwrerr("ERROR: Can not achieve tima pwm freq=%u if fclk=%llu\n",
|
||||||
(uint32_t)TIMA_PWM_FREQ, (uint64_t)fclk);
|
(uint32_t)TIMA_PWM_FREQ, (uint64_t)fclk);
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto errout;
|
goto errout;
|
||||||
@ -428,7 +428,7 @@ static int smps_start(FAR struct smps_dev_s *dev)
|
|||||||
per = fclk/TIMB_PWM_FREQ;
|
per = fclk/TIMB_PWM_FREQ;
|
||||||
if (per > HRTIM_PER_MAX)
|
if (per > HRTIM_PER_MAX)
|
||||||
{
|
{
|
||||||
pwrerr("ERROR: can not achieve timb pwm freq=%u if fclk=%llu\n",
|
pwrerr("ERROR: Can not achieve timb pwm freq=%u if fclk=%llu\n",
|
||||||
(uint32_t)TIMB_PWM_FREQ, (uint64_t)fclk);
|
(uint32_t)TIMB_PWM_FREQ, (uint64_t)fclk);
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto errout;
|
goto errout;
|
||||||
@ -539,7 +539,7 @@ static int smps_mode_set(FAR struct smps_dev_s *dev, uint8_t mode)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pwrerr("ERROR: unsupported SMPS mode %d!\n", mode);
|
pwrerr("ERROR: Unsupported SMPS mode %d!\n", mode);
|
||||||
ret = ERROR;
|
ret = ERROR;
|
||||||
goto errout;
|
goto errout;
|
||||||
}
|
}
|
||||||
@ -792,7 +792,7 @@ static void smps_duty_set(struct smps_priv_s *priv, struct smps_lower_dev_s *low
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
pwrerr("ERROR: unknown converter mode %d!\n", mode);
|
pwrerr("ERROR: Unknown converter mode %d!\n", mode);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -884,7 +884,7 @@ static void smps_conv_mode_set(struct smps_priv_s *priv, struct smps_lower_dev_s
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
pwrerr("ERROR: unknown converter mode %d!\n", mode);
|
pwrerr("ERROR: Unknown converter mode %d!\n", mode);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1052,8 +1052,7 @@ int stm32_smps_setup(void)
|
|||||||
ret = up_ramvec_attach(STM32_IRQ_ADC12, adc12_handler);
|
ret = up_ramvec_attach(STM32_IRQ_ADC12, adc12_handler);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
pwrerr("ERROR: highpri_main: ERROR: up_ramvec_attach failed: %d\n",
|
pwrerr("ERROR: up_ramvec_attach failed: %d\n", ret);
|
||||||
ret);
|
|
||||||
ret = EXIT_FAILURE;
|
ret = EXIT_FAILURE;
|
||||||
goto errout;
|
goto errout;
|
||||||
}
|
}
|
||||||
@ -1063,9 +1062,7 @@ int stm32_smps_setup(void)
|
|||||||
ret = up_prioritize_irq(STM32_IRQ_ADC12, NVIC_SYSH_HIGH_PRIORITY);
|
ret = up_prioritize_irq(STM32_IRQ_ADC12, NVIC_SYSH_HIGH_PRIORITY);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
pwrerr("ERROR: "
|
pwrerr("ERROR: up_prioritize_irq failed: %d\n", ret);
|
||||||
"highpri_main: ERROR: up_prioritize_irq failed: %d\n",
|
|
||||||
ret);
|
|
||||||
ret = EXIT_FAILURE;
|
ret = EXIT_FAILURE;
|
||||||
goto errout;
|
goto errout;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user