mirror of
https://github.com/micropython/micropython.git
synced 2026-01-10 05:57:16 +01:00
renesas-ra/pin: Reduce footprint of pin structures.
This commit performs a few minor changes to the structures used to store
board pin information, in order to reduce the impact on the .rodata
section of the firmware of instances of those structures.
The pin objects structure ("machine_pin_obj_t") instead has its QSTR
variable holder changed from "qstr" to "qstr_short_t", and some elements
of that structure have been rearranged to remove enough padding bytes
inside structure elements to let the linker allocate less data for
instances of that structure.
Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
This commit is contained in:
committed by
Damien George
parent
8bda61a3af
commit
fb8ecaecf5
@@ -41,9 +41,9 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
mp_obj_base_t base;
|
||||
qstr name;
|
||||
uint8_t pin;
|
||||
const machine_pin_adc_obj_t *ad;
|
||||
qstr_short_t name;
|
||||
uint8_t pin;
|
||||
} machine_pin_obj_t;
|
||||
|
||||
// Include all of the individual pin objects
|
||||
|
||||
Reference in New Issue
Block a user