Happened when I occasionally compare the NRF_TWIM_Type struct in nrf52.h with the TWI registers (table 127) in nRF52832 Product Specification v1.4, there are many differences..
Seems some code missed basic check before release, let alone test.
Happened when I occasionally compare the NRF_TWIM_Type struct in nrf52.h with the TWI registers (table 127) in nRF52832 Product Specification v1.4, there are many differences..
Seems some code missed basic check before release, let alone test.
there are many differences
such as?
Such as EVENTS_RXDREADY, see if you can find it in the struct.
EVENTS_RXDREADY is for TWI without EasyDMA. TWIM uses easyDMA, EVENTS_RXDREADY does not exist in this case but EVENTS_LASTRX is.
What you showed is NRF_TWI_Type, which is said to be deprecated in nRF52832 Product Specification v1.4
What I pointed out is NRF_TWIM_Type, which have many differences and is apparently a mistake.
What you showed is NRF_TWI_Type, which is said to be deprecated in nRF52832 Product Specification v1.4
What I pointed out is NRF_TWIM_Type, which have many differences and is apparently a mistake.