Changeset 63e27ef in mainline for kernel/genarch/include/genarch/drivers/amdm37x/gpt.h
- Timestamp:
- 2017-06-19T21:47:42Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- deacc58d
- Parents:
- 7354b5e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/include/genarch/drivers/amdm37x/gpt.h
r7354b5e r63e27ef 37 37 #define KERN_AMDM37x_GPT_H_ 38 38 39 #include <assert.h> 39 40 #include <typedefs.h> 40 41 #include <mm/km.h> … … 211 212 km_unmap((uintptr_t)clksel, 4); 212 213 213 ASSERT(timer);214 assert(timer); 214 215 /* Map control register */ 215 216 timer->regs = (void*) km_map(ioregs, iosize, PAGE_NOT_CACHEABLE); … … 247 248 static inline void amdm37x_gpt_timer_ticks_start(amdm37x_gpt_t* timer) 248 249 { 249 ASSERT(timer);250 ASSERT(timer->regs);250 assert(timer); 251 assert(timer->regs); 251 252 /* Enable overflow interrupt */ 252 253 timer->regs->tier |= AMDM37x_GPT_TIER_OVF_IRQ_FLAG; … … 257 258 static inline bool amdm37x_gpt_irq_ack(amdm37x_gpt_t* timer) 258 259 { 259 ASSERT(timer);260 ASSERT(timer->regs);260 assert(timer); 261 assert(timer->regs); 261 262 /* Clear all pending interrupts */ 262 263 const uint32_t tisr = timer->regs->tisr;
Note:
See TracChangeset
for help on using the changeset viewer.