Home
last modified time | relevance | path

Searched refs:F_CPU (Results 1 – 25 of 233) sorted by relevance

12345678910

/dports/devel/avr-libc/avr-libc-2.0.0/include/util/
H A Dsetbaud.h112 #ifndef F_CPU
120 #if !(F_CPU)
195 #define UBRR_VALUE (((F_CPU) + 8 * (BAUD)) / (16 * (BAUD)) -1)
197 #define UBRR_VALUE (((F_CPU) + 8UL * (BAUD)) / (16UL * (BAUD)) -1UL)
200 #if 100 * (F_CPU) > \
203 #elif 100 * (F_CPU) < \
215 #define UBRR_VALUE (((F_CPU) + 4 * (BAUD)) / (8 * (BAUD)) -1)
217 #define UBRR_VALUE (((F_CPU) + 4UL * (BAUD)) / (8UL * (BAUD)) -1UL)
220 #if 100 * (F_CPU) > \
225 #if 100 * (F_CPU) < \
H A Ddelay.h.in51 #define F_CPU 1000000UL // 1 MHz
52 //#define F_CPU 14.7456E6
68 frequency passed by the macro F_CPU.
90 #ifndef F_CPU
94 \def F_CPU
108 # define F_CPU 1000000UL macro
174 __tmp = ((F_CPU) / 1e3) * __ms;
191 __tmp = ((F_CPU) / 4e3) * __ms;
263 __tmp = ((F_CPU) / 1e6) * __us;
281 __tmp = ((F_CPU) / 3e6) * __us;
[all …]
/dports/lang/micropython/micropython-1.17/ports/teensy/core/
H A Dmk20dx128.c366 #if F_CPU <= 2000000 in ResetHandler()
415 #if F_CPU <= 2000000 in ResetHandler()
453 #if F_CPU <= 16000000 in ResetHandler()
487 #if F_CPU == 168000000 in ResetHandler()
499 #elif F_CPU == 96000000 in ResetHandler()
503 #elif F_CPU == 72000000 in ResetHandler()
518 #elif F_CPU == 8000000 in ResetHandler()
521 #elif F_CPU == 4000000 in ResetHandler()
528 #elif F_CPU == 2000000 in ResetHandler()
538 #if F_CPU > 16000000 in ResetHandler()
[all …]
H A Dusb_serial.c150 #if F_CPU == 168000000
152 #elif F_CPU == 144000000
154 #elif F_CPU == 120000000
156 #elif F_CPU == 96000000
158 #elif F_CPU == 72000000
160 #elif F_CPU == 48000000
162 #elif F_CPU == 24000000
H A Dpins_teensy.c714 #if F_CPU == 168000000
716 #elif F_CPU == 144000000
718 #elif F_CPU == 120000000
720 #elif F_CPU == 96000000
722 #elif F_CPU == 72000000
724 #elif F_CPU == 48000000
726 #elif F_CPU == 24000000
728 #elif F_CPU == 16000000
730 #elif F_CPU == 8000000
732 #elif F_CPU == 4000000
[all …]
H A Dcore_pins.h773 #if F_CPU == 168000000 in delayMicroseconds()
775 #elif F_CPU == 144000000 in delayMicroseconds()
779 #elif F_CPU == 96000000 in delayMicroseconds()
781 #elif F_CPU == 72000000 in delayMicroseconds()
783 #elif F_CPU == 48000000 in delayMicroseconds()
785 #elif F_CPU == 24000000 in delayMicroseconds()
787 #elif F_CPU == 16000000 in delayMicroseconds()
789 #elif F_CPU == 8000000 in delayMicroseconds()
791 #elif F_CPU == 4000000 in delayMicroseconds()
793 #elif F_CPU == 2000000 in delayMicroseconds()
[all …]
/dports/devel/arduino-core/Arduino-b439a77/hardware/arduino/avr/cores/arduino/
H A Dwiring.c127 #if F_CPU >= 24000000L in delayMicroseconds()
143 #elif F_CPU >= 20000000L in delayMicroseconds()
165 #elif F_CPU >= 16000000L in delayMicroseconds()
182 #elif F_CPU >= 12000000L in delayMicroseconds()
199 #elif F_CPU >= 8000000L in delayMicroseconds()
294 #if F_CPU >= 8000000L in init()
299 #if F_CPU >= 8000000L in init()
359 #elif F_CPU >= 8000000 // 8 MHz / 64 = 125 KHz in init()
363 #elif F_CPU >= 4000000 // 4 MHz / 32 = 125 KHz in init()
367 #elif F_CPU >= 2000000 // 2 MHz / 16 = 125 KHz in init()
[all …]
H A DTone.cpp260 ocr = F_CPU / frequency / 2 - 1; in tone()
264 ocr = F_CPU / frequency / 2 / 8 - 1; in tone()
269 ocr = F_CPU / frequency / 2 / 32 - 1; in tone()
275 ocr = F_CPU / frequency / 2 / 64 - 1; in tone()
280 ocr = F_CPU / frequency / 2 / 128 - 1; in tone()
286 ocr = F_CPU / frequency / 2 / 256 - 1; in tone()
291 ocr = F_CPU / frequency / 2 / 1024 - 1; in tone()
318 ocr = F_CPU / frequency / 2 - 1; in tone()
323 ocr = F_CPU / frequency / 2 / 64 - 1; in tone()
H A DHardwareSerial.cpp106 uint16_t baud_setting = (F_CPU / 4 / baud - 1) / 2; in begin()
114 if (((F_CPU == 16000000UL) && (baud == 57600)) || (baud_setting >4095)) in begin()
117 baud_setting = (F_CPU / 8 / baud - 1) / 2; in begin()
/dports/devel/avr-libc/avr-libc-2.0.0/doc/examples/asmdemo/
H A Dasmdemo.c62 # define F_CPU 1200000ul in ioinit() macro
64 # define MIN_PWM_VAL ((920ul * F_CPU) / 1000000ul) in ioinit()
66 # define MAX_PWM_VAL ((2120ul * F_CPU) / 1000000ul) in ioinit()
72 # define F_CPU 1000000ul in ioinit() macro
78 # define MIN_PWM_VAL ((920ul * F_CPU) / 16 / 1000000ul) in ioinit()
80 # define MAX_PWM_VAL ((2120ul * F_CPU) / 16 / 1000000ul) in ioinit()
/dports/devel/arduino-irremote/Arduino-IRremote-3.5.2/src/private/
H A DIRTimer.hpp295 # if (((F_CPU / 2000) / 38) < 256) in timerConfigForSend()
323 OCR1A = F_CPU * MICROS_PER_TICK / MICROS_IN_ONE_SECOND; in timerConfigForReceive()
364 # if (((F_CPU / 2000) / 38) < 256) in timerConfigForSend()
431 #if defined(SEND_PWM_BY_TIMER) && F_CPU > 16000000 in timerConfigForSend()
445 OCR3A = F_CPU * MICROS_PER_TICK / MICROS_IN_ONE_SECOND; in timerConfigForReceive()
473 #if defined(SEND_PWM_BY_TIMER) && F_CPU > 16000000 in timerConfigForSend()
522 #if defined(SEND_PWM_BY_TIMER) && F_CPU > 16000000 in timerConfigForSend()
573 #if defined(SEND_PWM_BY_TIMER) && F_CPU > 16000000 in timerConfigForSend()
608 #if defined(SEND_PWM_BY_TIMER) && F_CPU > 16000000 in timerConfigForSend()
651 # if (((F_CPU / 1000) / 38) < 256) in timerConfigForSend()
[all …]
/dports/devel/arduino-core/Arduino-b439a77/hardware/arduino/avr/bootloaders/bt/
H A DATmegaBOOT_168.c89 #define F_CPU 16000000L macro
96 #define MAX_TIME_COUNT (F_CPU>>1)
325 UBRR0L = (uint8_t)(F_CPU/(BAUD_RATE*16L)-1); in main()
326 UBRR0H = (F_CPU/(BAUD_RATE*16L)-1) >> 8; in main()
332 UBRR1L = (uint8_t)(F_CPU/(BAUD_RATE*16L)-1); in main()
333 UBRR1H = (F_CPU/(BAUD_RATE*16L)-1) >> 8; in main()
340 UBRRHI = (F_CPU/(BAUD_RATE*16L)-1) >> 8; in main()
356 UBRRL = (((F_CPU/BAUD_RATE)/16)-1); in main()
362 UBRRH = (F_CPU/(BAUD_RATE*16L)-1) >> 8; in main()
1036 for(l = 0; l < (2 * F_CPU); ++l); in flash_led()
[all …]
/dports/devel/arduino-core/Arduino-b439a77/hardware/arduino/avr/bootloaders/lilypad/src/
H A DATmegaBOOT.c308 UBRR0L = (uint8_t)(F_CPU/(BAUD_RATE*16L)-1); in main()
309 UBRR0H = (F_CPU/(BAUD_RATE*16L)-1) >> 8; in main()
315 UBRR1L = (uint8_t)(F_CPU/(BAUD_RATE*16L)-1); in main()
316 UBRR1H = (F_CPU/(BAUD_RATE*16L)-1) >> 8; in main()
322 UBRR = (uint8_t)(F_CPU/(BAUD_RATE*16L)-1); in main()
323 UBRRHI = (F_CPU/(BAUD_RATE*16L)-1) >> 8; in main()
328 UBRR0H = (F_CPU/(BAUD_RATE*16L)-1) >> 8; in main()
340 UBRRL = (((F_CPU/BAUD_RATE)/16)-1); in main()
346 UBRRH = (F_CPU/(BAUD_RATE*16L)-1) >> 8; in main()
970 for(l = 0; l < (F_CPU / 1000); ++l); in flash_led()
[all …]
/dports/devel/arduino-core/Arduino-b439a77/hardware/arduino/avr/bootloaders/atmega/
H A DATmegaBOOT_168.c358 UBRR0H = (F_CPU/(BAUD_RATE*16L)-1) >> 8; in main()
365 UBRR1H = (F_CPU/(BAUD_RATE*16L)-1) >> 8; in main()
371 UBRR = (uint8_t)(F_CPU/(BAUD_RATE*16L)-1); in main()
372 UBRRHI = (F_CPU/(BAUD_RATE*16L)-1) >> 8; in main()
379 UBRR0L = (uint8_t)(F_CPU/(BAUD_RATE*8L)-1); in main()
380 UBRR0H = (F_CPU/(BAUD_RATE*8L)-1) >> 8; in main()
382 UBRR0L = (uint8_t)(F_CPU/(BAUD_RATE*16L)-1); in main()
383 UBRR0H = (F_CPU/(BAUD_RATE*16L)-1) >> 8; in main()
397 UBRRL = (((F_CPU/BAUD_RATE)/16)-1); in main()
402 UBRRL = (uint8_t)(F_CPU/(BAUD_RATE*16L)-1); in main()
[all …]
/dports/devel/arduino-core/Arduino-b439a77/hardware/arduino/avr/libraries/SPI/src/
H A DSPI.h114 if (clock >= F_CPU / 2) { in init_AlwaysInline()
116 } else if (clock >= F_CPU / 4) { in init_AlwaysInline()
118 } else if (clock >= F_CPU / 8) { in init_AlwaysInline()
120 } else if (clock >= F_CPU / 16) { in init_AlwaysInline()
122 } else if (clock >= F_CPU / 32) { in init_AlwaysInline()
124 } else if (clock >= F_CPU / 64) { in init_AlwaysInline()
130 uint32_t clockSetting = F_CPU / 2; in init_AlwaysInline()
/dports/devel/arduino-core/Arduino-b439a77/hardware/arduino/avr/bootloaders/optiboot/
H A Doptiboot.c180 #if F_CPU >= 8000000L
182 #elsif F_CPU >= 1000000L
184 #elsif F_CPU >= 128000L
192 #if (F_CPU/BAUD_RATE) > 280 // > 57600 for 16MHz
301 UBRRL = (uint8_t)( (F_CPU + BAUD_RATE * 4L) / (BAUD_RATE * 8L) - 1 ); in main()
306 UBRR0L = (uint8_t)( (F_CPU + BAUD_RATE * 4L) / (BAUD_RATE * 8L) - 1 ); in main()
600 #define UART_B_VALUE (((F_CPU/BAUD_RATE)-20)/6)
633 TCNT1 = -(F_CPU/(1024*16)); in flash_led()
/dports/devel/arduino-core/Arduino-b439a77/hardware/arduino/avr/bootloaders/stk500v2/
H A DMakefile108 CDEFS = -DF_CPU=$(F_CPU)UL
244 DEBUG_MFREQ = $(F_CPU)
328 mega1280: F_CPU = 16000000 macro
338 mega2560: F_CPU = 16000000 macro
355 amber128: F_CPU = 14745600 macro
364 m2561: F_CPU = 8000000 macro
380 cerebot: F_CPU = 8000000 macro
390 penguino: F_CPU = 16000000 macro
/dports/devel/avr-libc/avr-libc-2.0.0/doc/examples/twitest/
H A Dtwitest.c35 #define F_CPU 14745600UL /* Note [2] */ macro
115 #if F_CPU <= 1000000UL in ioinit()
121 UBRR = (F_CPU / (8 * 9600UL)) - 1; /* 9600 Bd */ in ioinit()
123 UBRR = (F_CPU / (16 * 9600UL)) - 1; /* 9600 Bd */ in ioinit()
133 #if F_CPU < 3600000UL in ioinit()
136 TWBR = (F_CPU / 100000UL - 16) / 2; in ioinit()
/dports/devel/avr-libc/avr-libc-2.0.0/doc/examples/stdiodemo/
H A Duart.c29 #if F_CPU < 2000000UL && defined(U2X) in uart_init()
31 UBRRL = (F_CPU / (8UL * UART_BAUD)) - 1; in uart_init()
33 UBRRL = (F_CPU / (16UL * UART_BAUD)) - 1; in uart_init()
/dports/devel/arduino-irremote/Arduino-IRremote-3.5.2/src/
H A DIRremoteInt.h54 #define F_CPU 16000000 // definition for a board for which F_CPU is not defined macro
56 #define F_CPU 133000000 macro
58 #define F_CPU 64000000 macro
60 #if defined(F_CPU)
61 #define CLOCKS_PER_MICRO (F_CPU / MICROS_IN_ONE_SECOND)
63 #error F_CPU not defined, please define it for your board in IRremoteInt.h
70 #undef F_CPU
71 #define F_CPU SYSCLOCK // Clock frequency to be used for timing. macro
/dports/devel/libpololu-avr/libpololu-avr-151002/src/OrangutanBuzzer/
H A DOrangutanBuzzer.cpp32 #ifndef F_CPU
33 #define F_CPU 20000000UL // Orangutans run at 20 MHz macro
91 OCR1A = (F_CPU/2) / 1000; // set TOP for freq = 1 kHz in ISR()
199 OCR1A = (F_CPU/2) / 1000; // set TOP for freq = 1 kHz in init2()
523 OCR1A = (F_CPU/2) / 1000; // set TOP for freq = 1 kHz in stopPlaying()
/dports/audio/lenticular-lv2/lenticular_lv2-0.5.0-14-g14d8075/eurorack/yarns/drivers/
H A Dsystem.cc46 timer_init.TIM_Period = F_CPU / (48000 * 4) - 1; in Init()
68 SysTick_Config(F_CPU / 8000); in StartTimers()
/dports/audio/lenticular-lv2/lenticular_lv2-0.5.0-14-g14d8075/parasites/yarns/drivers/
H A Dsystem.cc46 timer_init.TIM_Period = F_CPU / (48000 * 4) - 1; in Init()
68 SysTick_Config(F_CPU / 8000); in StartTimers()
/dports/audio/lenticular-lv2/lenticular_lv2-0.5.0-14-g14d8075/eurorack/streams/drivers/
H A Dsystem.cc53 timer_init.TIM_Period = F_CPU / 48000 - 1; in Init()
72 SysTick_Config(F_CPU / 4000); in StartTimers()
/dports/audio/lenticular-lv2/lenticular_lv2-0.5.0-14-g14d8075/parasites/streams/drivers/
H A Dsystem.cc53 timer_init.TIM_Period = F_CPU / 48000 - 1; in Init()
72 SysTick_Config(F_CPU / 4000); in StartTimers()

12345678910