2017-07-23 | Paul Boddie | raw annotate files changeset graph | Made keypad detection function by fixing page table entries and pin definitions. |
1 #ifndef __PAGING_H__ 2 #define __PAGING_H__ 3 4 #define USER_ADDRESS_MASK 0x7fffffff 5 6 #ifndef __ASSEMBLER__ 7 8 #include <stdint.h> 9 10 uint32_t user_address(uint32_t addr); 11 uint32_t previous_page(uint32_t addr, uint32_t pagesize); 12 uint32_t next_page(uint32_t addr, uint32_t pagesize); 13 uint32_t page_size(uint32_t size); 14 15 #endif /* __ASSEMBLER__ */ 16 17 #endif /* __PAGING_H__ */