robert-hh
a1eebc507e
samd/machine_spi: Register SerCom objects as root pointers.
...
Protect SerCom (UART, SPI, I2C) objects from getting freed by the GC when
they go out of scope without being deinitialized. Otherwise the ISR of a
Sercom may access an invalid data structure.
2022-10-25 23:48:37 +11:00
iabdalkader
e275a58ac1
samd: Rename machine I2C type consistently across ports.
...
This renames:
- machine_hw_i2c_type -> machine_i2c_type
2022-10-22 12:57:32 +11:00
robert-hh
d9338aabc5
samd: Change the symbol names for the peripheral clocks.
...
From APB_FREQ to DFLL48M_FREQ, and from apb_freq to peripheral_freq.
2022-10-06 23:10:08 +11:00
robert-hh
3625388d8c
samd/samd_isr: Change the way a Sercom ISR is registered and called.
...
Code size diff: +12 Bytes
BSS diff: -12 Bytes
RAM usage: +16 Bytes
Speed increase: a few clock cycles per call
Style improvement: ++
2022-10-06 22:52:10 +11:00
robert-hh
94d27ae28f
samd/machine_i2c: Add the machine.I2C class.
...
Using the common API. Tested with SAMD21 and SAMD51 boards.
2022-10-06 22:49:06 +11:00