gint/include/gint
lephe 31ade70c42 tmu: export definitions, clean stop, expose address
This commit introduces three timer driver changes:

* Export the definitions of the timer structures to a detailed header at
  <gint/mpu/tmu.h>, and re-use them in the driver.
  This integration is still limited as the driver keeps its own address
  definitions and event codes.

* Clean the timer stop routine that is used in the interrupt handler. Up
  until now the interrupt handler would only stop TSTR, which is not
  enough to cleanly leave the timer (need TCOR=TCNT=-1) and is not even
  sound with respect to gint's semantics as UNIE stays enabled so the
  timer is not made available again.

  The interrupt handler now calls into C code when the timer stop
  condition is met (callback returns non-zero) to keep this clean. This
  unsurprisingly solves problems that occurred in certain situations
  when a timer was used repeatedly.

* Expose timer addresses using a timer_address() function, compensating
  for the lack of address definitions in <gint/mpu/tmu.h>. This
  interface is likely to evolve in the future to better integrate the
  address in the MPU headers and move them out of the driver.
2019-07-16 15:39:38 -04:00
..
defs libc: split standard headers properly 2019-07-16 15:38:18 -04:00
drivers way too much, including bopti/topti, timers, and more. 2019-02-21 21:00:26 +01:00
mpu tmu: export definitions, clean stop, expose address 2019-07-16 15:39:38 -04:00
std libc: split standard headers properly 2019-07-16 15:38:18 -04:00
bfile.h core: add BFile syscalls 2019-07-04 12:15:13 -04:00
clock.h way too much, including bopti/topti, timers, and more. 2019-02-21 21:00:26 +01:00
display-cg.h render: use shorter color names 2019-07-04 12:14:31 -04:00
display-fx.h render: rename dimage_opt() into dsubimage() 2019-07-06 16:49:59 -04:00
display.h display: add a dupdate_noint() for exceptions handlers 2019-07-04 11:46:26 -04:00
dma.h display: add a dupdate_noint() for exceptions handlers 2019-07-04 11:46:26 -04:00
drivers.h bootlog: make a copy for use in gintctl 2019-05-04 12:07:14 +02:00
gint.h bootlog: make a copy for use in gintctl 2019-05-04 12:07:14 +02:00
hardware.h core: provide MPU type on unknown platforms 2019-07-16 15:39:33 -04:00
keyboard.h way too much, including bopti/topti, timers, and more. 2019-02-21 21:00:26 +01:00
keycodes.h way too much, including bopti/topti, timers, and more. 2019-02-21 21:00:26 +01:00
rtc.h way too much, including bopti/topti, timers, and more. 2019-02-21 21:00:26 +01:00
syscalls.h render: refactor to share functions, and basic text on fxcg50 2019-06-15 01:05:31 -04:00
timer.h tmu: export definitions, clean stop, expose address 2019-07-16 15:39:38 -04:00