How can drivers and Framework middleware be used while programming in the same project to avoid hardware resource access conflicts?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How can drivers and Framework middleware be used while programming in the same project to avoid hardware resource access conflicts?

759件の閲覧回数
bjemt
Contributor III

Wireless UART(freeRTOS) is a BLE demo application in the SDK_2.2_FRDM-KW41Z, this demo use the FreeRTOS, Framework  middleware and BLE protocol components, these will use KW41Z of hardware resources, such as TPM timer, PIT timer, etc.I need to add the high speed ADC control during normal BLE and serial communication in this demo, and I need to directly operate the PIT and TPM timer in KW41Z through drivers (the timer in TimersManager is too slow).

My question is how do I avoid the PIT and TPM timers used in drivers that don't conflict with the middleware TimersManager and bluetooth protocol?Are there any middleware instructions?How can drivers and Framework middleware be used while programming in the same project to avoid hardware resource access conflicts?

ラベル(2)
0 件の賞賛
2 返答(返信)

568件の閲覧回数
gerardo_rodriguez
NXP Employee
NXP Employee

Hello limin Jia,

As long as you don't use the same timer instance as the framework you should have no problems. For example, the BLE wireless UART uses the TPM1, indicated by gStackTimerInstance_c defined in board.h.

The PIT timer is not used unless the timestamp service is used (gTimestamp_Enabled_d).

Regards,

Gerardo

0 件の賞賛

568件の閲覧回数
bjemt
Contributor III

Although I knew that FreeRTOS and these middleware were designed to be independent of hardware, but the program had to run on a hardware platform.FreeRTOS and these middleware have the user interface for developers, there is also a hardware interface to the hardware. How should I view these hardware interface definitions in SDK_2.2_FRDM-KW41Z?

0 件の賞賛