fix bit width bug
This commit is contained in:
parent
33ec8351d8
commit
1d54b41735
|
@ -80,7 +80,7 @@ int main(int argc, char **argv) {
|
||||||
if (tick == 100000) {
|
if (tick == 100000) {
|
||||||
mod->cmd = CONTROL_LOOP_WRITE_BIT | CONTROL_LOOP_I;
|
mod->cmd = CONTROL_LOOP_WRITE_BIT | CONTROL_LOOP_I;
|
||||||
/* 0.5 */
|
/* 0.5 */
|
||||||
mod->word_into_loop = 1 << (CONSTS_FRAC - 1);
|
mod->word_into_loop = (V)1 << (CONSTS_FRAC - 1);
|
||||||
printf("adjust I\n");
|
printf("adjust I\n");
|
||||||
mod->start_cmd = 1;
|
mod->start_cmd = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue