@@ -67,39 +67,39 @@ pub const devices = struct {
6767
6868 pub const peripherals = struct {
6969 /// Fuses
70- pub const FUSE = @intToPtr (* volatile types .peripherals .FUSE , 0x0 );
70+ pub const FUSE = @as (* volatile types .peripherals .FUSE , @ptrFromInt ( 0x0 ) );
7171 /// Lockbits
72- pub const LOCKBIT = @intToPtr (* volatile types .peripherals .LOCKBIT , 0x0 );
72+ pub const LOCKBIT = @as (* volatile types .peripherals .LOCKBIT , @ptrFromInt ( 0x0 ) );
7373 /// I/O Port
74- pub const PORTB = @intToPtr (* volatile types .peripherals .PORT .PORTB , 0x23 );
74+ pub const PORTB = @as (* volatile types .peripherals .PORT .PORTB , @ptrFromInt ( 0x23 ) );
7575 /// I/O Port
76- pub const PORTC = @intToPtr (* volatile types .peripherals .PORT .PORTC , 0x26 );
76+ pub const PORTC = @as (* volatile types .peripherals .PORT .PORTC , @ptrFromInt ( 0x26 ) );
7777 /// I/O Port
78- pub const PORTD = @intToPtr (* volatile types .peripherals .PORT .PORTD , 0x29 );
78+ pub const PORTD = @as (* volatile types .peripherals .PORT .PORTD , @ptrFromInt ( 0x29 ) );
7979 /// Timer/Counter, 8-bit
80- pub const TC0 = @intToPtr (* volatile types .peripherals .TC8 .TC0 , 0x35 );
80+ pub const TC0 = @as (* volatile types .peripherals .TC8 .TC0 , @ptrFromInt ( 0x35 ) );
8181 /// Timer/Counter, 16-bit
82- pub const TC1 = @intToPtr (* volatile types .peripherals .TC16 .TC1 , 0x36 );
82+ pub const TC1 = @as (* volatile types .peripherals .TC16 .TC1 , @ptrFromInt ( 0x36 ) );
8383 /// Timer/Counter, 8-bit Async
84- pub const TC2 = @intToPtr (* volatile types .peripherals .TC8_ASYNC .TC2 , 0x37 );
84+ pub const TC2 = @as (* volatile types .peripherals .TC8_ASYNC .TC2 , @ptrFromInt ( 0x37 ) );
8585 /// External Interrupts
86- pub const EXINT = @intToPtr (* volatile types .peripherals .EXINT , 0x3b );
86+ pub const EXINT = @as (* volatile types .peripherals .EXINT , @ptrFromInt ( 0x3b ) );
8787 /// CPU Registers
88- pub const CPU = @intToPtr (* volatile types .peripherals .CPU , 0x3e );
88+ pub const CPU = @as (* volatile types .peripherals .CPU , @ptrFromInt ( 0x3e ) );
8989 /// EEPROM
90- pub const EEPROM = @intToPtr (* volatile types .peripherals .EEPROM , 0x3f );
90+ pub const EEPROM = @as (* volatile types .peripherals .EEPROM , @ptrFromInt ( 0x3f ) );
9191 /// Serial Peripheral Interface
92- pub const SPI = @intToPtr (* volatile types .peripherals .SPI , 0x4c );
92+ pub const SPI = @as (* volatile types .peripherals .SPI , @ptrFromInt ( 0x4c ) );
9393 /// Analog Comparator
94- pub const AC = @intToPtr (* volatile types .peripherals .AC , 0x50 );
94+ pub const AC = @as (* volatile types .peripherals .AC , @ptrFromInt ( 0x50 ) );
9595 /// Watchdog Timer
96- pub const WDT = @intToPtr (* volatile types .peripherals .WDT , 0x60 );
96+ pub const WDT = @as (* volatile types .peripherals .WDT , @ptrFromInt ( 0x60 ) );
9797 /// Analog-to-Digital Converter
98- pub const ADC = @intToPtr (* volatile types .peripherals .ADC , 0x78 );
98+ pub const ADC = @as (* volatile types .peripherals .ADC , @ptrFromInt ( 0x78 ) );
9999 /// Two Wire Serial Interface
100- pub const TWI = @intToPtr (* volatile types .peripherals .TWI , 0xb8 );
100+ pub const TWI = @as (* volatile types .peripherals .TWI , @ptrFromInt ( 0xb8 ) );
101101 /// USART
102- pub const USART0 = @intToPtr (* volatile types .peripherals .USART .USART0 , 0xc0 );
102+ pub const USART0 = @as (* volatile types .peripherals .USART .USART0 , @ptrFromInt ( 0xc0 ) );
103103 };
104104 };
105105};
0 commit comments