1 /****************************************************
2 * LED1 ---- PF6 LED2 ---- PF7 *
3 * LED3 ---- PF8 LED4 ---- PF9 *
4 * LED5 ---- PF10 LED6 ---- PF11 *
5 ****************************************************/
7 #include <linux/linkage.h>
8 #include <asm/blackfin.h>
10 /* All functions in this file save the registers they uses.
11 So there is no need to save any registers before calling them. */
15 /* Initialize LEDs. */
23 R1 = PF6|PF7|PF8|PF9|PF10|PF11 (Z);
34 P0.H = hi(PORTFIO_DIR);
35 P0.L = lo(PORTFIO_DIR);
42 P0.H = hi(PORTFIO_INEN);
43 P0.L = lo(PORTFIO_INEN);
56 .size _led_init, .-_led_init
58 /* Set one LED on. Leave other LEDs unchanged.
59 It expects the LED number passed through R0. */
80 .size _led_on, .-_led_on
82 /* Set one LED off. Leave other LEDs unchanged. */
104 .size _led_off, .-_led_off
106 /* Toggle one LED. Leave other LEDs unchanged. */
127 .size _led_toggle, .-_led_toggle
129 /* Display the number using LEDs in binary format. */
156 .size _led_disp_num, .-_led_disp_num
158 /* Toggle the number using LEDs in binary format. */
160 ENTRY(_led_toggle_num)
182 .size _led_toggle_num, .-_led_toggle_num