[TM4C123] SPI instances, machine_hard_spi and root pointers
Posted: Sun Apr 21, 2019 3:56 pm
Hey,
in the spi implementation for the pyboard, the program always references already existing instances, that are defined somewhere in the STM HAL I guess.
I have no such predefined spi instances, should I create some or should I rather create them when necessary as in the UART?
Because I'm really running out of flash at this point, so a dynamic approach would be better I think?
Another question: Whats the machine_hard_spi thing?
And can pyb_spi and machine_hard_spi control the same peripheral or only exclusive?
I'll need to create an array in the mpconfigport.h MICROPY_PORT_ROOT_POINTERS for the pyb_spi_obj and the machine_hard_spi_obj and a third one for the actual SPI instance?
A lot of questions, I'm sorry!
-ExXec
in the spi implementation for the pyboard, the program always references already existing instances, that are defined somewhere in the STM HAL I guess.
I have no such predefined spi instances, should I create some or should I rather create them when necessary as in the UART?
Because I'm really running out of flash at this point, so a dynamic approach would be better I think?
Another question: Whats the machine_hard_spi thing?
And can pyb_spi and machine_hard_spi control the same peripheral or only exclusive?
I'll need to create an array in the mpconfigport.h MICROPY_PORT_ROOT_POINTERS for the pyb_spi_obj and the machine_hard_spi_obj and a third one for the actual SPI instance?
A lot of questions, I'm sorry!
-ExXec