Commit graph

  • deb3c93892 Simpliify PeripheralMutex a bit. Dario Nieuwenhuis 2021-01-06 22:48:54 +01:00
  • 31ba052f14 mark new unsafe xoviat 2021-01-06 14:31:43 -06:00
  • 1c3b7541cb use transmute for now xoviat 2021-01-06 14:12:33 -06:00
  • 77bdb5428e buffered_uarte naming cleanup Dario Nieuwenhuis 2021-01-06 17:09:42 +01:00
  • 27cfcbacb8 try uart implementation xoviat 2021-01-06 12:12:29 -06:00
  • 896eb0ed52
    Merge pull request from xoviat/fix-interrupts Dario Nieuwenhuis 2021-01-06 18:06:23 +01:00
  • 66622de82a fix set_handler context xoviat 2021-01-06 10:49:08 -06:00
  • f6be0b8d12 Add gpio WaitForFoo traits Dario Nieuwenhuis 2021-01-06 01:10:48 +01:00
  • 61a7cf5c3d
    Merge pull request from xoviat/stm32f4 Dario Nieuwenhuis 2021-01-06 00:41:19 +01:00
  • 938919367a
    add levels xoviat 2021-01-05 17:38:46 -06:00
  • a9d9f3bf80 fix problems xoviat 2021-01-05 17:24:27 -06:00
  • 7bee584808
    remove dead code in waker xoviat 2021-01-05 17:19:05 -06:00
  • f62eb66bf2
    add new levels xoviat 2021-01-05 17:18:24 -06:00
  • 9bb4c97dc2
    Merge pull request from timokroeger/uarte-power-optimization Dario Nieuwenhuis 2021-01-05 22:10:52 +01:00
  • 607e67f51a Cleanup BufferedUarte Dario Nieuwenhuis 2021-01-05 21:14:04 +01:00
  • 3a4dbfa52e Massicely simplify peripheral abstraction Dario Nieuwenhuis 2021-01-05 01:57:05 +01:00
  • 0631623b51 uarte: Low power wait for RX drop Timo Kröger 2021-01-03 17:05:04 +01:00
  • 93780fa31d uarte: Wait for the peripheral to be disabled Timo Kröger 2021-01-03 13:56:13 +01:00
  • 9b1f7b8a17 uarte: Enable peripheral with first poll Timo Kröger 2021-01-03 13:31:33 +01:00
  • 85ec9dd16f uarte: Be on safe side with potentially racy code Timo Kröger 2021-01-03 12:09:51 +01:00
  • a3b3305b8e uarte: Only stop TX forcefully when a transmissions is running Timo Kröger 2021-01-03 12:02:03 +01:00
  • a7c03e4cb6 uarte: Only stop RX forcefully when a reception is running Timo Kröger 2021-01-03 11:12:11 +01:00
  • 9f28c7ab8d uarte: Do not spin when stopping a receive future Timo Kröger 2021-01-02 22:40:36 +01:00
  • 9e88718fbd Add "context" pointer to owned interrupt handlers. Dario Nieuwenhuis 2021-01-04 22:25:39 +01:00
  • d89462fc16
    remove macros xoviat 2021-01-04 12:53:27 -06:00
  • f3676e1eab rename examples xoviat 2021-01-04 12:52:00 -06:00
  • be541b94aa
    Merge branch 'master' into stm32f4 xoviat 2021-01-04 12:50:22 -06:00
  • 9bf09488f1 fix interrupts xoviat 2021-01-04 12:48:13 -06:00
  • 39ca8b8ded Fix build on non-nrf52840 Dario Nieuwenhuis 2021-01-03 22:30:47 +01:00
  • ace4f40f80 Introduce "peripheral" abstraction to share state between main and interrupt. Dario Nieuwenhuis 2021-01-03 01:40:40 +01:00
  • 4ce51795f2 use hal::Pins for BufferedUarte Dario Nieuwenhuis 2021-01-02 20:31:50 +01:00
  • 8fa3294f35 Update readme Dario Nieuwenhuis 2021-01-02 20:13:35 +01:00
  • 0ab88ea279 Add Uart trait, implement it for nrf. Dario Nieuwenhuis 2021-01-02 19:59:37 +01:00
  • 1d53985abe Remove now-stable slice_fill feature Dario Nieuwenhuis 2021-01-02 19:56:05 +01:00
  • 3c7e7220b3 Don't use embedded_dma in nrf uarte. Dario Nieuwenhuis 2021-01-02 19:14:54 +01:00
  • 396d7650ca Add some comments to uart example. Dario Nieuwenhuis 2021-01-01 23:04:18 +01:00
  • 20d3dc87f9 Rename examples -> embassy-nrf-examples Dario Nieuwenhuis 2021-01-01 22:41:59 +01:00
  • 4783222f67 Rename WakerStore -> WakerRegistration. Dario Nieuwenhuis 2021-01-01 22:30:11 +01:00
  • 2ee2d18465 simplify impl. and add interupt idea xoviat 2021-01-01 14:59:57 -06:00
  • d5cb9bebaa implement on irqs xoviat 2020-12-31 17:59:01 -06:00
  • cc8d162859 begin integrate interrupt xoviat 2020-12-31 16:59:42 -06:00
  • cc0076a0eb update hal branch xoviat 2020-12-31 16:49:27 -06:00
  • 925ede848e rename uarte as serial xoviat 2020-12-31 16:40:51 -06:00
  • 308756f366 generalize uarte xoviat 2020-12-31 16:38:31 -06:00
  • 142c01ad01 generalize futures xoviat 2020-12-31 16:11:23 -06:00
  • d52e1b2276 use transfer_complete_flag; make partially generic xoviat 2020-12-31 15:58:35 -06:00
  • ffb92731cd
    Merge pull request from timokroeger/task-macro-warning Dario Nieuwenhuis 2020-12-31 16:32:44 +01:00
  • c17954ccba Fix warnings for tasks that take mutable parameters Timo Kröger 2020-12-31 15:38:10 +01:00
  • 43904e8db0 clean-up example xoviat 2020-12-30 21:24:32 -06:00
  • 2d979eb4ef add interrupts xoviat 2020-12-30 21:14:56 -06:00
  • ea36029a3d reformat xoviat 2020-12-30 19:50:15 -06:00
  • a5cf65a17b impl. poll:ready xoviat 2020-12-30 19:45:07 -06:00
  • de2b1adafe Merge branch 'master' of https://github.com/akiles/embassy into stm32f4 xoviat 2020-12-30 13:17:47 -06:00
  • cd56d2621a
    Merge pull request from timokroeger/low-power-uarte Dario Nieuwenhuis 2020-12-30 19:57:36 +01:00
  • c6cf9b801d minor rework to get tx working (maybe) xoviat 2020-12-30 12:27:47 -06:00
  • 6695bf0f21 Low power UART driver Timo Kröger 2020-12-23 16:18:29 +01:00
  • c97d5262f5 Blocking wait method for signals Timo Kröger 2020-12-30 12:15:49 +01:00
  • 60c7d112b1 fix borrowing errors xoviat 2020-12-30 11:05:52 -06:00
  • 41db867d9a fix transfer mutability xoviat 2020-12-29 22:57:00 -06:00
  • 6bc1a712ff Fix Forever Dario Nieuwenhuis 2020-12-30 04:17:45 +01:00
  • a02d0a378e Fix race in enqueuing expired tasks. Dario Nieuwenhuis 2020-12-30 04:12:48 +01:00
  • 53c2829eb1 add dma example; rename uarte xoviat 2020-12-29 19:10:47 -06:00
  • bb6f25d010 Remove use of deprecated compare_and_swap. Dario Nieuwenhuis 2020-12-30 01:06:05 +01:00
  • 015b6bbce4 Ensure timers always yield at least once. Dario Nieuwenhuis 2020-12-30 00:56:32 +01:00
  • 74b5d4693c implement prelim draft xoviat 2020-12-29 12:33:50 -06:00
  • 2bf9b14ef0
    Merge pull request from akiles/irq Dario Nieuwenhuis 2020-12-29 15:32:23 +01:00
  • 7dc81faa4e Declare irqs for each nrf chip Dario Nieuwenhuis 2020-12-29 15:20:42 +01:00
  • 04944b6379 overhaul implementation xoviat 2020-12-28 20:48:26 -06:00
  • af5454fbfe Update drivers to owned irqs. Dario Nieuwenhuis 2020-12-29 01:53:17 +01:00
  • 4b8d8ba87e Update RTC for owned irqs Dario Nieuwenhuis 2020-12-29 01:05:28 +01:00
  • 0750234fbe WIP owned irqs Dario Nieuwenhuis 2020-12-29 00:05:52 +01:00
  • b01a88a839 Do not run timer queue if no alarm is set. Dario Nieuwenhuis 2020-12-29 00:04:58 +01:00
  • 267ec334ac Rename Uarte -> BufferedUarte Dario Nieuwenhuis 2020-12-28 23:57:50 +01:00
  • 3cf85df176 add dma transfer example xoviat 2020-12-28 16:43:29 -06:00
  • b5e0116f76 add interrupt channels, waker xoviat 2020-12-28 13:31:18 -06:00
  • 56db0e1c61 add dma transfer logic xoviat 2020-12-28 13:13:43 -06:00
  • 12fa5909c3 set-up draft serial interface xoviat 2020-12-28 09:55:49 -06:00
  • 18cd87ae12 create stm32f4 crate xoviat 2020-12-28 09:17:36 -06:00
  • 4a7344cb6f Add embassy-std crate with glue to run embassy on std. Dario Nieuwenhuis 2020-12-28 03:40:28 +01:00
  • 32c67381df Add missing ?Sized bound in read_line Dario Nieuwenhuis 2020-12-27 23:34:05 +01:00
  • 692d8bb813 More efficient timer queue, integrated into Executor directly. Dario Nieuwenhuis 2020-12-26 23:44:53 +01:00
  • 8b7a42a4f9 Split waker to separate file. Dario Nieuwenhuis 2020-12-26 17:22:36 +01:00
  • 3df66c44e3 Split executor into multiple files, remove old timers implementation. Dario Nieuwenhuis 2020-12-26 16:42:44 +01:00
  • db8b4ca565 Better SpawnToken error messages Dario Nieuwenhuis 2020-12-26 15:15:50 +01:00
  • 80c504cd95 Add std impl for rand Dario Nieuwenhuis 2020-12-14 00:36:29 +01:00
  • 1aae27270e Better fmt macros. Dario Nieuwenhuis 2020-12-13 21:17:58 +01:00
  • 3be7ace878 add time::Ticker Dario Nieuwenhuis 2020-12-13 19:54:18 +01:00
  • ca2ff632ba Fix possibly ambiguous macro Dario Nieuwenhuis 2020-12-01 20:00:55 +01:00
  • 02af635e7b Fix CI Dario Nieuwenhuis 2020-12-01 17:52:06 +01:00
  • 6f76c0ebcc Add support for log+defmt again, but better. Dario Nieuwenhuis 2020-12-01 17:46:56 +01:00
  • 78135a81d9 Remove anyfmt Dario Nieuwenhuis 2020-11-27 18:42:59 +01:00
  • 49d5121094 Fix unsoundness in Forever Dario Nieuwenhuis 2020-11-16 01:04:56 +01:00
  • 2e062f5627 gpiote: change port api to directly return futures. Dario Nieuwenhuis 2020-11-09 01:04:34 +01:00
  • 61b1d4e188 Fix build for nrfs with 32 gpios Dario Nieuwenhuis 2020-11-08 19:05:34 +01:00
  • e539cd32ca Fix logging with anyfmt/log Dario Nieuwenhuis 2020-11-08 19:00:23 +01:00
  • 36517fd1c5 Add gpiote port example. Dario Nieuwenhuis 2020-11-08 19:00:08 +01:00
  • fc0fe842ee Add support for GPIOTE Port event. Dario Nieuwenhuis 2020-11-08 18:59:31 +01:00
  • a2735a716c Add signal reset() Dario Nieuwenhuis 2020-11-08 18:41:22 +01:00
  • def225b982 gpiote: better naming Dario Nieuwenhuis 2020-11-08 17:38:45 +01:00
  • b40e09d502 Allow spawning tasks with non-copy args. Dario Nieuwenhuis 2020-11-03 22:12:45 +01:00