OSDN Git Service
(root)
/
hos
/
hos-v4a.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(none)
[hos/hos-v4a.git]
/
sample
/
h8
/
h83069
/
sample.c
diff --git
a/sample/h8/h83069/sample.c
b/sample/h8/h83069/sample.c
index
dc27a47
..
c717a08
100755
(executable)
--- a/
sample/h8/h83069/sample.c
+++ b/
sample/h8/h83069/sample.c
@@
-63,7
+63,13
@@
void Sample_Initialize(VP_INT exinf)
/** %jp{適当な時間待つ} */
void rand_wait(void)
{
/** %jp{適当な時間待つ} */
void rand_wait(void)
{
- dly_tsk(rand() % 1000 + 1);
+ int r;
+
+ wai_sem(SEMID_RAND);
+ r = rand();
+ sig_sem(SEMID_RAND);
+
+ dly_tsk((r % 1000) + 10);
}
}