Hello I am using SDK_2_6_2JN5189DK6 and wish to configure a tick timer, I am aware of the functions to configure tick timer but cannot find where timers interrupt source is so don't know how to define it. For example on the JN5169 processor using JN-AN-1174-516x-802.15.4-Application-Template, the interrupt sources are in AppHardwareApi_JN516x.h has;
/* Device types, used to identify interrupt source */
typedef enum
{
E_AHI_DEVICE_TIMER1 = 0, /* Timer 1 */
E_AHI_DEVICE_TIMER2 = 1, /* Timer 2 */
E_AHI_DEVICE_SYSCTRL = 2, /* System controller */
E_AHI_DEVICE_BBC = 3, /* Baseband controller */
E_AHI_DEVICE_AES = 4, /* Encryption engine */
E_AHI_DEVICE_PHYCTRL = 5, /* Phy controller */
E_AHI_DEVICE_UART0 = 6, /* UART 0 */
E_AHI_DEVICE_UART1 = 7, /* UART 1 */
E_AHI_DEVICE_TIMER0 = 8, /* Timer 0 */
E_AHI_DEVICE_SI = 10, /* Serial Interface (2 wire) */
E_AHI_DEVICE_SPIM = 11, /* SPI master */
E_AHI_DEVICE_SPIS = 12, /* SPI slave */
E_AHI_DEVICE_ANALOGUE = 13, /* Analogue peripherals */
E_AHI_DEVICE_TIMER3 = 14, /* Timer 3 */
E_AHI_DEVICE_TICK_TIMER = 15, /* Tick timer */
E_AHI_DEVICE_TIMER4 = 16, /* Timer 4 */
E_AHI_DEVICE_FEC = 17, /* Flash and EEPROM Controller */
E_AHI_DEVICE_INFRARED = 19 /* Infrared */
} teAHI_Device;
So my question is where the interrupt source for the JN5189 processor and what are they called David Lloyd.
Hi David,
Hope you are doing well. If you want to configure a timer, I would recommend to check the ctimer_match_interrupt SDK example. This project is to demonstrate usage of the SDK CTimer driver with interrupt callback functions.
Also, I would recommend that you use the latest SDK version. You can download it from here: MCUXpresso SDK Builder.
Hope this helps.
Regards,
Ricardo