aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/linux/modules/leds.mk
diff options
context:
space:
mode:
authorKerma Gérald <gandalf@gk2.net>2022-04-29 00:08:09 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2022-05-01 00:42:30 +0200
commit1aac1b36d3cf44c8bfa8d4a6d8df6e815fc06529 (patch)
tree6bc3ad2a678df03b766ac277a4b9f9cabe292991 /package/kernel/linux/modules/leds.mk
parent4f51f1fc9b3597d24de442cfff253fddce478d17 (diff)
downloadupstream-1aac1b36d3cf44c8bfa8d4a6d8df6e815fc06529.tar.gz
upstream-1aac1b36d3cf44c8bfa8d4a6d8df6e815fc06529.tar.bz2
upstream-1aac1b36d3cf44c8bfa8d4a6d8df6e815fc06529.zip
f2fs-tools: fix resize.f2fs (#9800)
resolve issue - https://github.com/openwrt/openwrt/issues/9800 add the upstream patch: - f2fs-tools.git/patch/?id=f056fbeff08d30a6d9acdb9e06704461ceee3500 Signed-off-by: Kerma Gérald <gandalf@gk2.net>
Diffstat (limited to 'package/kernel/linux/modules/leds.mk')
0 files changed, 0 insertions, 0 deletions
or: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#include "melody96.h"

void led_set_user(uint8_t usb_led) {

	if (usb_led & (1 << USB_LED_NUM_LOCK)) {
		DDRC |= (1 << 6); PORTC &= ~(1 << 6);
	} else {
		DDRC &= ~(1 << 6); PORTC &= ~(1 << 6);
	}

	if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
		DDRC |= (1 << 7); PORTC &= ~(1 << 7);
	} else {
		DDRC &= ~(1 << 7); PORTC &= ~(1 << 7);
	}

	if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
		DDRB |= (1 << 5); PORTB &= ~(1 << 5);
	} else {
		DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
	}
}