Search
Project
General
Profile
Sign in
Register
Home
Projects
Redmine shortcuts
Search
:
MitySOM-A10S Altera Arria 10
All Projects
Mity CPU Platforms
»
MitySOM-A10S Altera Arria 10
Overview
Activity
Wiki
Forums
Download (408 Bytes)
Customizing the On Board Silicon Labs PLLs
» gen_regmap.c
Mike Fiorenza
, 07/10/2023 07:15 PM
#include
<stdio.h>
#include
<stdlib.h>
#define code
#define FILENAME "PLL.bin"
#include
"register_map.h"
int
main
(
int
argc
,
char
*
argv
[])
{
FILE
*
fid
=
fopen
(
FILENAME
,
"w"
);
for
(
int
i
=
0
;
i
<
NUM_REGS_MAX
-
1
;
++
i
)
{
fwrite
(
&
Reg_Store
[
i
].
Reg_Addr
,
1
,
1
,
fid
);
fwrite
(
&
Reg_Store
[
i
].
Reg_Val
,
1
,
1
,
fid
);
fwrite
(
&
Reg_Store
[
i
].
Reg_Mask
,
1
,
1
,
fid
);
}
fclose
(
fid
);
printf
(
"%s : Done
\n
"
,
FILENAME
);
}
« Previous
1
…
11
12
13
14
Next »
(13-13/14)
Go to top
Loading...