Changeset 41552913 in mainline
- Timestamp:
- 2012-03-15T20:54:48Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b1c43bd
- Parents:
- b56481c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/include/drivers/amdm37x_gpt/amdm37x_gpt.h
rb56481c r41552913 209 209 timer->regs = (void*) km_map(ioregs, iosize, PAGE_NOT_CACHEABLE); 210 210 211 212 211 /* Set autoreload */ 213 212 timer->regs->tclr = AMDM37x_GPT_TCLR_AR_FLAG; … … 218 217 (ioregs == AMDM37x_GPT10_BASE_ADDRESS)); 219 218 timer->regs->tldr = 0xffffffff - (32768 / hz) + 1; 219 timer->regs->tccr = 0xffffffff - (32768 / hz) + 1; 220 220 if (timer->special_available) { 221 221 /* Set values for according to formula (manual p. 2733) */ … … 241 241 } 242 242 243 static inline void amdm37x_gpt_irq_ack(amdm37x_gpt_t* timer) 244 { 245 ASSERT(timer); 246 ASSERT(timer->regs); 247 /* Clear all pending interrupts */ 248 timer->regs->tisr = timer->regs->tisr; 249 } 250 243 251 #endif 244 252
Note:
See TracChangeset
for help on using the changeset viewer.