[an error occurred while processing this directive]
|
Name Address Range Description
T1CNT 0x0000–7401 GP Timer 1 Counter Register
T1CMPR 0x0000–7402 GP Timer 1 Compare Register
T1PR 0x0000–7403 GP Timer 1 Period Register
T1CON 0x0000–7404 GP Timer 1 Control Register/*-----------------------------------------------------------------------------
* 32-bit Timer
-----------------------------------------------------------------------------*/
typedef struct
{
uint32 Timer; // Timer Counter
uint32 Period; // Timer Period
uint16 Control; // Timer Control
uint16 Rsvd; // Reserved
uint32 Prescale; // Timer Pre-Scale
} C28X_TIMER;
void irq_init(void)
{
volatile C28X_TIMER * Timer0 = (C28X_TIMER *)0x7401;
volatile C28X_TIMER * Timer1 = (C28X_TIMER *)0xc08;
volatile C28X_TIMER * Timer2 = (C28X_TIMER *)0xc10;
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
E-mail: info@telesys.ru