Merge pull request #2664 from piotrva/hf-mf-ultimatecard-script-max-rw-blocks
[RRG-proxmark3.git] / armsrc / buzzer_disabled.c
blobccd4717fe6a803b218b3f0d80c195bf17a98807e
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
17 #include "buzzer_disabled.h"
19 void Ring_BEE_ONCE(uint16_t music_note) {
20 BEE_ON();
21 SpinDelayUs(music_note);
22 BEE_OFF();
23 SpinDelayUs(music_note);
26 void ring_2_7khz(uint16_t count) {
27 Ring_BEE_TIME(n_2_7khz, count);
30 void Ring_BEE_TIME(uint16_t music_note, uint16_t count) {
31 for (uint16_t i = 0 ; i < count; i++)
32 Ring_BEE_ONCE(music_note);
33 SpinDelay(9);
36 void Ring_ALL(uint16_t count) {
37 Ring_BEE_TIME(note_1, count);
38 Ring_BEE_TIME(note_2, count);
39 Ring_BEE_TIME(note_3, count);
40 Ring_BEE_TIME(note_4, count);
41 Ring_BEE_TIME(note_5, count);
42 Ring_BEE_TIME(note_6, count);
43 Ring_BEE_TIME(note_7, count);
44 SpinDelay(10);
47 void Ring_Little_Star(uint16_t count) {
48 Ring_BEE_TIME(note_1, count);
49 Ring_BEE_TIME(note_1, count);
50 Ring_BEE_TIME(note_5, count);
51 Ring_BEE_TIME(note_5, count);
52 Ring_BEE_TIME(note_6, count);
53 Ring_BEE_TIME(note_6, count);
54 Ring_BEE_TIME(note_5, 2 * count);
55 LED_A_ON();
57 Ring_BEE_TIME(note_4,count);
58 Ring_BEE_TIME(note_4,count);
59 Ring_BEE_TIME(note_3,count);
60 Ring_BEE_TIME(note_3,count);
61 Ring_BEE_TIME(note_2,count);
62 Ring_BEE_TIME(note_2,count);
63 Ring_BEE_TIME(note_1,2*count);
64 LED_A_OFF();
66 Ring_BEE_TIME(note_5,count);
67 Ring_BEE_TIME(note_5,count);
68 Ring_BEE_TIME(note_4,count);
69 Ring_BEE_TIME(note_4,count);
70 Ring_BEE_TIME(note_3,count);
71 Ring_BEE_TIME(note_3,count);
72 Ring_BEE_TIME(note_2,2*count);
73 LED_A_ON();
75 Ring_BEE_TIME(note_5,count);
76 Ring_BEE_TIME(note_5,count);
77 Ring_BEE_TIME(note_4,count);
78 Ring_BEE_TIME(note_4,count);
79 Ring_BEE_TIME(note_3,count);
80 Ring_BEE_TIME(note_3,count);
81 Ring_BEE_TIME(note_2,2*count);
82 LED_A_OFF();
84 Ring_BEE_TIME(note_1,count);
85 Ring_BEE_TIME(note_1,count);
86 Ring_BEE_TIME(note_5,count);
87 Ring_BEE_TIME(note_5,count);
88 Ring_BEE_TIME(note_6,count);
89 Ring_BEE_TIME(note_6,count);
90 Ring_BEE_TIME(note_5,2*count);
91 LED_A_ON();
93 Ring_BEE_TIME(note_4,count);
94 Ring_BEE_TIME(note_4,count);
95 Ring_BEE_TIME(note_3,count);
96 Ring_BEE_TIME(note_3,count);
97 Ring_BEE_TIME(note_2,count);
98 Ring_BEE_TIME(note_2,count);
99 Ring_BEE_TIME(note_1,2*count);
100 LED_B_ON();