BlinkenArea - GitList
Repositories
Blog
Wiki
mips_sys
Code
Commits
Branches
Tags
Search
Tree:
5e29ab5
Branches
Tags
master
mips_sys
fw
switches.c
implemented switches
Stefan Schuermans
commited
5e29ab5
at 2012-02-12 20:47:12
switches.c
Blame
History
Raw
#include "switches.h" static volatile unsigned int *const switches_ptr = (volatile unsigned int *)0x80000200; /** * @brief get state of switch * @param[in] sw swich identifier * @return switch state */ int switches_get_state(t_switch sw) { return switches_ptr[0] >> sw & 1; }