aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
Commit message (Expand)AuthorAgeFilesLines
* base-files: add a init.d option that will start the syscall tracerJohn Crispin2015-03-261-1/+6
* base-files: create jail folder on bootJohn Crispin2015-03-261-0/+2
* fstools: update to the latest version, makes interrupted first boot more reli...Felix Fietkau2015-03-221-1/+1
* base-files: keep sysupgrade.tgz until /etc/init.d/done has been calledFelix Fietkau2015-03-222-4/+2
* kernel: remove the netfilter optimization that skips the filter table, it has...Felix Fietkau2015-03-171-1/+0
* base-files: firstboot: pass down arguments such as -y to jffs2resetLuka Perkov2015-03-101-1/+1
* uci-defaults: add ucidef_set_led_mmcJohn Crispin2015-02-141-0/+17
* base-files: fix target/subtarget value in /etc/openwrt_releaseJo-Philipp Wich2015-02-111-1/+1
* base-files: default_postinst() fix variable colisionJohn Crispin2015-02-041-15/+15
* include, base-files: align default repository url with changed buildbot struc...Jo-Philipp Wich2015-01-231-2/+1
* base-files: fix led script to skip missing triggersJohn Crispin2015-01-231-1/+5
* base-files: Use 200ms LED timing as before for the new phase preinit_regular.John Crispin2015-01-201-2/+2
* base-files: Add ucidef_set_led_timer to uci-defaults.shJohn Crispin2015-01-171-0/+20
* base-files: Fix switch settings for uci-defaults-new.sh.John Crispin2015-01-081-2/+2
* base-files: update default url template and complete kconfig helpJo-Philipp Wich2015-01-081-1/+6
* build: add version number to filenamesJo-Philipp Wich2015-01-081-0/+8
* add "preinit_regular" diag.sh set_state argumentJohn Crispin2014-12-153-6/+6
* packages: fix typo in OpenWrt nameJohn Crispin2014-12-072-4/+4
* base-files: default_postinst() - create user:group first (resend)John Crispin2014-12-012-3/+5
* fix sysupgrade on overlayfs v23+Imre Kaloz2014-11-241-1/+6
* base-files: supress errors from lddJonas Gorski2014-11-191-1/+1
* base-files: properly fix copying ld*.so with eglibcJonas Gorski2014-11-181-4/+1
* package/*: replace occurences of 'ln -sf' to '$(LN)'Nicolas Thill2014-11-061-3/+3
* license info - revert r43155John Crispin2014-11-031-2/+0
* Add more license tags with SPDX identifiersJohn Crispin2014-11-031-0/+2
* Add a few SPDX tagsSteven Barth2014-11-021-0/+1
* base-files: config_generate did not handle setups with more than 1 switch pro...John Crispin2014-10-271-5/+4
* base-files: add /etc/shadow to list of essential files to keep in sysupgrade ...Felix Fietkau2014-10-251-0/+1
* base-files: fix telnet login on muslFelix Fietkau2014-10-201-2/+2
* failsafe-mode: print short help on commandlineJohn Crispin2014-10-202-0/+14
* base-files: fix ldd definition if /usr/bin/ldd existsFelix Fietkau2014-10-191-1/+1
* build: improve feed handling for opkg.confJo-Philipp Wich2014-10-161-2/+9
* default_postinst() fix wrong call of group_addJohn Crispin2014-10-151-2/+5
* base-files: default_postinst() force clear luci-indexcacheJohn Crispin2014-10-141-0/+1
* base-files: the USERID code path did not check for duplicate groupsJohn Crispin2014-10-141-1/+1
* scripts: fix wrong usage of '==' operatorJohn Crispin2014-10-144-6/+6
* base-files: add network_get_ipaddrs_all()Steven Barth2014-10-091-0/+23
* network: Unbind DHCPv6 from underlying interfacesSteven Barth2014-10-083-6/+2
* base-files: extend USERID:=syntaxJohn Crispin2014-10-081-8/+20
* base-files: make postinst script run inside a subshellJohn Crispin2014-10-061-1/+1
* sysupgrade: preserve symlinks in backupsJohn Crispin2014-10-061-2/+2
* base-files: remove a 'not found' error message during system bootSteven Barth2014-10-031-1/+1
* base-files: add a protocol argument to ucidef_set_interface_rawFlorian Fainelli2014-09-251-1/+2
* postinst trigger: the new postinst trigger broke IBJohn Crispin2014-09-161-3/+6
* base-files: whitespace fixesLuka Perkov2014-09-142-6/+6
* ipkg: add a default postinst/prerm scriptJohn Crispin2014-09-111-1/+76
* package/*: remove useless explicit set of function returncodeJohn Crispin2014-08-251-2/+0
* base-files: properly generate the ulaJohn Crispin2014-08-221-1/+1
* base-files: increase igmp_max_memberships to improve multicast-proxy handlingSteven Barth2014-08-201-0/+1
* base-files: fix inverse logic in board_detect scriptJohn Crispin2014-08-191-1/+1
/span> { select_rows(i); uint8_t row = read_row(i); if (matrix_debouncing[i] != row) { matrix_debouncing[i] = row; if (debouncing) { debug("bounce!: "); debug_hex(debouncing); debug("\n"); } debouncing = DEBOUNCE; } unselect_rows(); } if (debouncing) { if (--debouncing) { _delay_ms(1); } else { for (uint8_t i = 0; i < MATRIX_ROWS; i++) { matrix[i] = matrix_debouncing[i]; } } } matrix_scan_quantum(); return 1; } bool matrix_is_modified(void) { if (debouncing) return false; return true; } inline bool matrix_is_on(uint8_t row, uint8_t col) { return (matrix[row] & ((matrix_row_t)1<<col)); } inline matrix_row_t matrix_get_row(uint8_t row) { return matrix[row]; } void matrix_print(void) { print("\nr/c 01234567\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { phex(row); print(": "); pbin_reverse(matrix_get_row(row)); print("\n"); } } uint8_t matrix_key_count(void) { uint8_t count = 0; for (uint8_t i = 0; i < MATRIX_ROWS; i++) { count += bitpop16(matrix[i]); } return count; } static matrix_row_t read_row(uint8_t row) { _delay_us(30); // without this wait read unstable value. //keypad and program buttons if (row == 12) { return ~(PINC | 0b00111111); } return ~PINB; } static void unselect_rows(void) { // set A,B,C,G to 0 (F4 - F7) PORTF &= 0x0F; } static void select_rows(uint8_t row) { // set A,B,C,G to row value PORTF |= row << 4; } /* Row pin configuration PF0 A PF1 B PF2 C PF3 G 0 = U4, 1 = U5 4y0 4y1 4y2 4y3 4y4 4y5 4y6 4y7 5y0 5y1 5y2 5y3 5y4 5y5 5y6 5y7 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 PB0 21 c1 f6 f8 f7 5 4 3 2 1 =+ PB1 22 c2 f3 f5 f4 t r e w q TAB PB2 23 c3 ESC f2 f1 g f d s a CL PB3 24 c4 f9 f11 f10 b v c x z LS UP DN [{ ]} PB4 25 c5 f12 SL PS RT LT §± `~ 6 7 8 9 0 -_ PB5 26 c6 PB PGM KPD y u i o p \ PB6 27 c7 LC DL BS RC EN SP h j k l ;: '" PB7 28 c8 RA PU PD n m ,< .> /? RS */