]> git.donarmstrong.com Git - qmk_firmware.git/commit
Tidy up atomicity in timer.c and ring_buffer.h
authorWez Furlong <wez@fb.com>
Mon, 28 Nov 2016 06:41:22 +0000 (22:41 -0800)
committerWez Furlong <wez@fb.com>
Mon, 28 Nov 2016 06:58:34 +0000 (22:58 -0800)
commitbe4e75423a232d9d328bb23835e0fa5152292c95
tree256d1b98c3f71a4150524184d2d880caad2aeb5a
parent1585fc4b616cb28b8d4a418cd31c8ce0dd64f731
Tidy up atomicity in timer.c and ring_buffer.h

Adopt the macros for saving/restoring the interrupt state
that are provided by the avr gcc environment.

Removing intialization of the timer value; this shaves off
a few bytes because globals are default initialized to zero.
tmk_core/common/avr/timer.c
tmk_core/ring_buffer.h