File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
17
17
#define __OFS_MDE __attribute__((section(".ofs_mde")))
18
+ #define __OFS0 __attribute__((section(".ofs0")))
19
+ #define __OFS1 __attribute__((section(".ofs1")))
18
20
19
21
/* Endian Select Register (MDE) at 0xFE7F5D00
20
22
*
@@ -41,9 +43,23 @@ struct st_ofs0 {
41
43
unsigned long res2 : 16 ;
42
44
};
43
45
44
- const unsigned long __OFS_MDE __OFS0reg = 0xffffffff ;
46
+ /* Option Function Select Register 0 (OFS0) */
47
+ const struct st_ofs0 __OFS0 __OFS0reg = {
48
+ .res0 = 1 ,
49
+ .IWDTSTRT = CONFIG_IWDT_RENESAS_RX_IWDTSTRT ,
50
+ #ifdef CONFIG_IWDT_RENESAS_RX_AUTO_START_MODE
51
+ .IWDTTOPS = CONFIG_IWDT_RENESAS_RX_OFS0_IWDTTOPS ,
52
+ .IWDTCKS = CONFIG_IWDT_RENESAS_RX_OFS0_IWDTCKS ,
53
+ .IWDTRPES = CONFIG_IWDT_RENESAS_RX_OFS0_IWDTRPES ,
54
+ .IWDTRPSS = CONFIG_IWDT_RENESAS_RX_OFS0_IWDTRPSS ,
55
+ .IWDTRSTIRQS = CONFIG_IWDT_RENESAS_RX_OFS0_IWDTRSTIRQS ,
56
+ .res1 = 1 ,
57
+ .IWDTSLCSTP = CONFIG_IWDT_RENESAS_RX_OFS0_IWDTSLCSTP ,
58
+ #endif
59
+ .res2 = 0xFFFF
60
+ };
45
61
46
62
/* Option Function Select Register 1 (OFS1) at 0xFE7F5D08 (Voltage detection and
47
63
* HOCO)
48
64
*/
49
- const unsigned long __OFS_MDE __OFS1reg = 0xffffffff ;
65
+ const unsigned long __OFS1 __OFS1reg = 0xffffffff ;
You can’t perform that action at this time.
0 commit comments