Deprecated files, not needed anymore

This commit is contained in:
GabrielKoppenstein committed 2022-01-04 21:47:38 +01:00
1 parent 54e4c3661d
commit 6070af4b10
4 files changed
+1 -1860

No files matched your search

+1 -2
View File
@@ -21,8 +21,7 @@ add_compile_options(-Wall
add_executable(
hello_multicore
multicore.c
automat.c
)
)
pico_generate_pio_header(hello_multicore ${CMAKE_CURRENT_LIST_DIR}/pwm.pio)
-1818
View File
File diff suppressed because it is too large. Load diff
-9
View File
@@ -1,9 +0,0 @@
//
// Created by r3d on 8/22/21.
//
#ifndef PICO_EXAMPLES_AUTOMAT_H
#define PICO_EXAMPLES_AUTOMAT_H
int fsm_main(const bool *arr, int index, const int len);
#endif //PICO_EXAMPLES_AUTOMAT_H
-31
View File
@@ -1,31 +0,0 @@
;
; Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
;
; SPDX-License-Identifier: BSD-3-Clause
;
; Side-set pin 0 is used for PWM output
.program pwm
.side_set 1 opt
pull noblock side 0 ; Pull from FIFO to OSR if available, else copy X to OSR.
mov x, osr ; Copy most-recently-pulled value back to scratch X
mov y, isr ; ISR contains PWM period. Y used as counter.
countloop:
jmp x!=y noset ; Set pin high if X == Y, keep the two paths length matched
jmp skip side 1
noset:
nop ; Single dummy cycle to keep the two paths the same length
skip:
jmp y-- countloop ; Loop until Y hits 0, then pull a fresh PWM value from FIFO
% c-sdk {
static inline void pwm_program_init(PIO pio, uint sm, uint offset, uint pin) {
pio_gpio_init(pio, pin);
pio_sm_set_consecutive_pindirs(pio, sm, pin, 1, true);
pio_sm_config c = pwm_program_get_default_config(offset);
sm_config_set_sideset_pins(&c, pin);
pio_sm_init(pio, sm, offset, &c);
}
%}