Uno custom pins_arduino.h?

Hi all,

I've been messing around with port manipulation and thought I'd make my own pins_arduino file.
Since port D includes the serial pins (which I dont want to mess with) I thought I'd place them in their own port group thing, I changed the "uno.build.variant" thing in boards.txt, but im not entirely sure if that's the way to do this.
I've looked around online for any info on custom ports but cant find anything useful.

the error messages:

In file included from D:\Arduino\hardware\arduino\avr\cores\arduino\Arduino.h:258:0,
                 from D:\Arduino\hardware\arduino\avr\cores\arduino\wiring_private.h:31,
                 from D:\Arduino\hardware\arduino\avr\cores\arduino\wiring_digital.c:26:
D:\Arduino\hardware\arduino\avr\variants\custom_test1/pins_arduino.h:136:14: error: 'DDRE' undeclared here (not in a function); did you mean 'DDRB'?
  (uint16_t) &DDRE,
              ^~~~
              DDRB
D:\Arduino\hardware\arduino\avr\variants\custom_test1/pins_arduino.h:146:14: error: 'PORTE' undeclared here (not in a function); did you mean 'PORT0'?
  (uint16_t) &PORTE,
              ^~~~~
              PORT0
D:\Arduino\hardware\arduino\avr\variants\custom_test1/pins_arduino.h:146:2: error: initializer element is not constant
  (uint16_t) &PORTE,
  ^
D:\Arduino\hardware\arduino\avr\variants\custom_test1/pins_arduino.h:146:2: note: (near initialization for 'port_to_output_PGM[5]')
D:\Arduino\hardware\arduino\avr\variants\custom_test1/pins_arduino.h:156:14: error: 'PINE' undeclared here (not in a function); did you mean 'PIN0'?
  (uint16_t) &PINE,
              ^~~~
              PIN0
D:\Arduino\hardware\arduino\avr\variants\custom_test1/pins_arduino.h:156:2: error: initializer element is not constant
  (uint16_t) &PINE,
  ^
D:\Arduino\hardware\arduino\avr\variants\custom_test1/pins_arduino.h:156:2: note: (near initialization for 'port_to_input_PGM[5]')
exit status 1
Error compiling for board Arduino Uno.

I'm new to the forums so sorry if I did something wrong

Is this for a '328P chip? It doesn't have a PORT E, only B, C, D so that's the first part of the problem.

oh so its not possible to add my own custom ports? that sucks. thanks for the reply tho!

Erik_Baas:
Is there no PORT A?

Correct. There is no PORTA.

Try a different chip. '1284P for example, or 2561.

0xsenna:
oh so its not possible to add my own custom ports? that sucks.

How do you imagine it would be possible to add more ports to the hardware by changing the contents of a file on your computer?