projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
USB: coding style fixes (structure naming)
[bertos.git]
/
bertos
/
drv
/
pwm_hwtest.c
diff --git
a/bertos/drv/pwm_hwtest.c
b/bertos/drv/pwm_hwtest.c
index f66fe660e558cb4f9958d91553709e31870bb655..d7410f94bf5b25e9c2cef6034143ba9bef41d444 100644
(file)
--- a/
bertos/drv/pwm_hwtest.c
+++ b/
bertos/drv/pwm_hwtest.c
@@
-54,7
+54,6
@@
* Note: To be simple and target independently we not use a timer module,
* and so the delay is do with a for cycle.
*
* Note: To be simple and target independently we not use a timer module,
* and so the delay is do with a for cycle.
*
- * \version $Id$
* \author Daniele Basile <asterix@develer.com>
*/
* \author Daniele Basile <asterix@develer.com>
*/
@@
-118,7
+117,7
@@
static PwmTest pwm_test_cfg[PWM_CNT] =
* Setup all needed to test PWM on AT91
*
*/
* Setup all needed to test PWM on AT91
*
*/
-int pwm_testSet
U
p(void)
+int pwm_testSet
u
p(void)
{
LOG_INFO("Init pwm..");
pwm_init();
{
LOG_INFO("Init pwm..");
pwm_init();
@@
-132,12
+131,12
@@
int pwm_testSetUp(void)
* Test suit for genation of pwm waveform.
*
*/
* Test suit for genation of pwm waveform.
*
*/
-
int
pwm_testRun(void)
+
void NORETURN
pwm_testRun(void)
{
pwm_duty_t duty = 0;
int delay = 0;
{
pwm_duty_t duty = 0;
int delay = 0;
- pwm_testSet
U
p();
+ pwm_testSet
u
p();
LOG_INFO("\n\n===== BeRTOS PWM test =====\n\n");
LOG_INFO("\n\n===== BeRTOS PWM test =====\n\n");
@@
-203,8
+202,6
@@
int pwm_testRun(void)
}
delay++;
}
}
delay++;
}
-
- return 0;
}
/**
}
/**
@@
-226,14
+223,14
@@
int pwm_testTearDown(void)
#if 0
int main(void)
{
#if 0
int main(void)
{
-
IRQ_ENABLE;
+ IRQ_ENABLE;
kdbg_init();
pwm_testRun();
kdbg_init();
pwm_testRun();
-
for(;;)
-
{
-
}
+ for(;;)
+ {
+ }
}
#endif
}
#endif