Skip to content

Add pulseio.FrequencyIn #1144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 29 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b49996a
add port specific FrequencyIn stuff
sommersoft Jul 29, 2018
c5694eb
add FrequencyIn to shared-bindings
sommersoft Jul 29, 2018
fb9ca32
SAMD51 measurements are now more accurate after adding use of the FRE…
sommersoft Aug 17, 2018
00daa82
add weak functions to stub non-supported ports
sommersoft Aug 18, 2018
d173273
cleanup unused functions
sommersoft Aug 18, 2018
e29416a
Merge branch 'new_master' of https://github.com/sommersoft/circuitpyt…
sommersoft Aug 18, 2018
3a3c4d8
move 'shared_timer_handler' back into circuitpython; introduce states…
sommersoft Aug 19, 2018
3f3a76a
add translation calls; use new timer handler
sommersoft Aug 19, 2018
fe91fa8
update to use new 'shared_timer_handler'
sommersoft Aug 19, 2018
851731e
removed SAMD exclusivity, since weak functions are now defined
sommersoft Aug 20, 2018
ee81c2d
documentation updates
sommersoft Aug 20, 2018
bdafc9f
updated samd-peripherals submodule
sommersoft Aug 20, 2018
5ddeb67
updated asf4 submodule
sommersoft Aug 20, 2018
1d764a7
updated deinit
sommersoft Aug 20, 2018
39be65b
Merge branch 'master' of https://github.com/adafruit/circuitpython in…
sommersoft Aug 20, 2018
45dcdea
updated translations
sommersoft Aug 20, 2018
cbb8130
Revert "updated asf4 submodule"
sommersoft Aug 21, 2018
ff70790
update CORRECT branch from asf4
sommersoft Aug 21, 2018
18e3e3d
Sphinx fix
sommersoft Aug 21, 2018
b285f49
stub FrequencyIn for esp & nrf; MP_WEAK didn't work since an object i…
sommersoft Aug 21, 2018
d009677
remove MP_WEAK functions
sommersoft Aug 21, 2018
25ffed1
update Makefiles
sommersoft Aug 21, 2018
7cb4b11
removed extra include
sommersoft Aug 22, 2018
7bb9799
fix stubs: did too much pruning and removed necessary header
sommersoft Aug 23, 2018
7a2a2bf
pruned extraneous header files
sommersoft Aug 23, 2018
e18e557
missed a translate call
sommersoft Aug 23, 2018
c0afef2
pruned headers too much. again.
sommersoft Aug 23, 2018
c33581f
update translations
sommersoft Aug 23, 2018
e066b19
Merge branch 'master' of https://github.com/adafruit/circuitpython in…
sommersoft Aug 25, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,336 changes: 1,176 additions & 1,160 deletions locale/circuitpython.pot

Large diffs are not rendered by default.

2,336 changes: 1,176 additions & 1,160 deletions locale/en_US.po

Large diffs are not rendered by default.

2,336 changes: 1,176 additions & 1,160 deletions locale/es.po

Large diffs are not rendered by default.

3,261 changes: 1,641 additions & 1,620 deletions locale/fr.po

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions ports/atmel-samd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ SRC_C = \
flash_api.c \
mphalport.c \
reset.c \
timer_handler.c \
peripherals/samd/clocks.c \
peripherals/samd/dma.c \
peripherals/samd/events.c \
Expand Down Expand Up @@ -332,6 +333,7 @@ SRC_COMMON_HAL = \
pulseio/PulseIn.c \
pulseio/PulseOut.c \
pulseio/PWMOut.c \
pulseio/FrequencyIn.c \
usb_hid/__init__.c \
usb_hid/Device.c \
touchio/__init__.c \
Expand Down
2 changes: 1 addition & 1 deletion ports/atmel-samd/asf4
3 changes: 2 additions & 1 deletion ports/atmel-samd/common-hal/audioio/AudioOut.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#endif

#include "audio_dma.h"
#include "timer_handler.h"

#include "samd/dma.h"
#include "samd/events.h"
Expand Down Expand Up @@ -181,7 +182,7 @@ void common_hal_audioio_audioout_construct(audioio_audioout_obj_t* self,
tc_gclk = 1;
#endif

turn_on_clocks(true, tc_index, tc_gclk);
turn_on_clocks(true, tc_index, tc_gclk, TC_HANDLER_NO_INTERRUPT);

// Don't bother setting the period. We set it before you playback anything.
tc_set_enable(t, false);
Expand Down
Loading