| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | Improve executor naming. Add docs. | Dario Nieuwenhuis | 2021-08-31 | 1 | -4/+4 | |
| | | ||||||
| * | embassy-macros: Use `defmt::unwrap!` when spawning `embassy::main` | Ben Gamari | 2021-08-05 | 1 | -1/+1 | |
| | | | | | But only when `defmt` feature is enabled. | |||||
| * | time: replace dyn clock/alarm with a global Driver trait | Dario Nieuwenhuis | 2021-08-05 | 3 | -38/+0 | |
| | | ||||||
| * | Forward attributes to generated task function | Liam Murphy | 2021-08-05 | 1 | -0/+3 | |
| | | | | | | | | Fixes #18 Syn considers doc comments to be attributes, so forwarding those fixes the issue. It's probably a good idea to forward most attributes anyway. | |||||
| * | rp/timer: add | Dario Nieuwenhuis | 2021-07-12 | 1 | -0/+6 | |
| | | ||||||
| * | STM: Change embassy main to use TIM3 instead of TIM2 | Thales Fragoso | 2021-07-04 | 1 | -2/+2 | |
| | | ||||||
| * | Provide a way for a peripheral to query its clock frequency | Ulf Lilleengen | 2021-06-14 | 1 | -3/+1 | |
| | | | | | | | Currently this looks up the frequency in the global singleton that must be initialized by the per-chip RCC implementation. At present, this is only done for the L0 family of chips. | |||||
| * | Enable timer clock in RCC on timer start | Ulf Lilleengen | 2021-06-10 | 1 | -1/+4 | |
| | | | | | | | | | | * Moves the tim2-specific code into macro which always uses TIM2 * For peripherals without clock specified, attempt to locate enable and reset registers in the RCC block matching the peripheral name. This could be useful for peripherals where deducing the clock name might not be feasible, but it remains to be tested with more chip families to see if it is sufficiently accurate. | |||||
| * | Assume tim2 in macro and remove clock setup in chip specific rcc init | Ulf Lilleengen | 2021-05-26 | 1 | -2/+6 | |
| | | | | | | Add temporary start_tim2() fn to Clock to assist macro in starting embassy clock | |||||
| * | Remove debug code | Ulf Lilleengen | 2021-05-26 | 1 | -7/+0 | |
| | | ||||||
| * | Enable clock by default for stm32l0 | Ulf Lilleengen | 2021-05-26 | 2 | -9/+13 | |
| | | | | | | | | | | | Modify init function to return a Clock instance defined by a per-chip SystemClock type and use this in macro setup A proof of concept implementation for STM32 L0 chips. This allows using embassy::main macros for STM32 devices that have the clock setup logic. | |||||
| * | Re-adds embassy macros for stm32 | Ulf Lilleengen | 2021-05-25 | 2 | -1/+31 | |
| | | | | | | | * Hook RCC config into chip config and use chip-specific RCC init function * RTC/clock setup is ignored for now | |||||
| * | Mark Unborrow as unsafe to implement | Dario Nieuwenhuis | 2021-05-19 | 1 | -1/+1 | |
| | | ||||||
| * | impl Unborrow for &'a mut T | Dario Nieuwenhuis | 2021-05-19 | 1 | -7/+0 | |
| | | | | | This plays nicer with user code that's generic over peripheral traits like `Instance` or `Pin`. | |||||
| * | Merge branch 'stm32-neo' | Dario Nieuwenhuis | 2021-05-17 | 1 | -1/+1 | |
| |\ | ||||||
| | * | stm32: codegen interrupts | Dario Nieuwenhuis | 2021-05-01 | 1 | -5/+68 | |
| | | | ||||||
| | * | Add Priority enums to embassy-extras | Dario Nieuwenhuis | 2021-05-01 | 1 | -2/+2 | |
| | | | ||||||
| * | | Add `init` fn. Initializes hw and returns Peripherals. | Dario Nieuwenhuis | 2021-05-17 | 3 | -5/+5 | |
| | | | ||||||
| * | | Remove stm32. | Dario Nieuwenhuis | 2021-05-17 | 2 | -33/+1 | |
| | | | | | | | | | stm32 developemnt continues in the `stm32-neo` branch for now. | |||||
| * | | Add `#[interrupt]` macro to register static interrupts. | Dario Nieuwenhuis | 2021-05-17 | 1 | -5/+68 | |
| | | | ||||||
| * | | nrf: add support for nrf52805, nrf52811, nrf52820 | Dario Nieuwenhuis | 2021-05-17 | 1 | -1/+1 | |
| | | | ||||||
| * | | Pass config directly to chip specific configure function | Ulf Lilleengen | 2021-04-22 | 4 | -119/+42 | |
| |/ | | | | | | | | | | | | | This removes the need to duplicate the configuration for each individual chip, but will instead pass on the configuration specified in the config attribute. Update nrf, stm32, rp macros with passing the config to a per-chip configure function which assumes the appropriate configuration to be passed to it. To demonstrate this feature, the stm32l0xx clock setup and RTC is added which exposes clock configuration different from stm32f4xx (and has a different set of timers and HAL APIs). | |||||
| * | Rename PeripheralBorrow to Unborrow | Dario Nieuwenhuis | 2021-04-14 | 1 | -2/+2 | |
| | | ||||||
| * | Add embassy_prefix attribute parameter to task and main macros | Ulf Lilleengen | 2021-04-14 | 5 | -29/+122 | |
| | | | | | | | | This allows crates depending on embassy that wants to use a different module path to do so for the 'task' and 'main' macros, by passing the parameter 'embassy_prefix'. The prefix defaults to '::', which will retain the existing behavior. | |||||
| * | Add std version of embassy::main | Ulf Lilleengen | 2021-04-12 | 1 | -0/+66 | |
| | | ||||||
| * | Fix unused import warnings | Dario Nieuwenhuis | 2021-03-29 | 2 | -9/+4 | |
| | | ||||||
| * | rp: add initial version | Dario Nieuwenhuis | 2021-03-29 | 4 | -5/+26 | |
| | | ||||||
| * | stm32: use embassy::main in more places | xoviat | 2021-03-29 | 1 | -0/+6 | |
| | | ||||||
| * | Reexport macros at root, use eveywhere as `#[embassy::task]` | Dario Nieuwenhuis | 2021-03-29 | 1 | -1/+1 | |
| | | ||||||
| * | nrf: add main macro support | Dario Nieuwenhuis | 2021-03-29 | 3 | -43/+130 | |
| | | ||||||
| * | Code size optimizations. | Dario Nieuwenhuis | 2021-03-29 | 1 | -6/+4 | |
| | | ||||||
| * | Implement PeripheralBorrow for interrupts. | Dario Nieuwenhuis | 2021-03-29 | 1 | -0/+14 | |
| | | ||||||
| * | add embassy::main and implement for stm32f4 | xoviat | 2021-03-27 | 1 | -0/+117 | |
| | | ||||||
| * | Add spawn/spawn_pool APIs to Task | Dario Nieuwenhuis | 2021-03-18 | 1 | -1/+1 | |
| | | ||||||
| * | Move Task into raw | Dario Nieuwenhuis | 2021-03-18 | 1 | -3/+4 | |
| | | ||||||
| * | Do not reexport atomic-polyfill | Dario Nieuwenhuis | 2021-03-17 | 1 | -4/+4 | |
| | | ||||||
| * | thumbv6m support with emulated atomics | Dario Nieuwenhuis | 2021-03-04 | 1 | -4/+4 | |
| | | ||||||
| * | Cleanup interrupt package naming. Fixes #40 | Dario Nieuwenhuis | 2021-02-26 | 1 | -5/+5 | |
| | | | | | | | | | | The `interrupt` package previously tried to be drop-in compatible with the `interrupt` package from PACs. THis meant that there was both a PAC-style enum value `UARTE0` and an embassy-style owned `UARTE0Interrupt` type. This made things VERY confusing. This drops compatibility with the PAC, improving the names for embassy interrupts. | |||||
| * | Fix macro if user crate is not using feature(const_in_array_repeat_expressions) | Dario Nieuwenhuis | 2021-02-23 | 1 | -1/+2 | |
| | | ||||||
| * | Update to cortex-m 0.7 | Dario Nieuwenhuis | 2021-02-14 | 1 | -3/+3 | |
| | | ||||||
| * | Get rid of some warnings | Thales Fragoso | 2021-02-13 | 1 | -2/+2 | |
| | | ||||||
| * | Executor API V2. | Dario Nieuwenhuis | 2021-02-02 | 1 | -5/+15 | |
| | | | | | | - It's no longer possible to call run() reentrantly from within a task (soundness issue) - it's now possible to spawn Send tasks across threads (SendSpawner, #37) | |||||
| * | Fix IRQ numbers | Timo Kröger | 2021-01-17 | 1 | -1/+3 | |
| | | | | | | The raw enum values are not always equal to the interrupt number fixes #23 | |||||
| * | Add "context" pointer to owned interrupt handlers. | Dario Nieuwenhuis | 2021-01-04 | 1 | -7/+8 | |
| | | ||||||
| * | Fix warnings for tasks that take mutable parameters | Timo Kröger | 2020-12-31 | 1 | -4/+7 | |
| | | | | | | | | #[task] pub async fn run(mut param: Param) {} warning: variable does not need to be mutable | |||||
| * | Remove use of deprecated compare_and_swap. | Dario Nieuwenhuis | 2020-12-30 | 1 | -1/+1 | |
| | | ||||||
| * | WIP owned irqs | Dario Nieuwenhuis | 2020-12-29 | 1 | -0/+62 | |
| | | ||||||
| * | Allow spawning tasks with non-copy args. | Dario Nieuwenhuis | 2020-11-03 | 1 | -1/+1 | |
| | | ||||||
| * | task codegen: use local items instead of non-locals with prefixed names. | Dario Nieuwenhuis | 2020-10-31 | 1 | -19/+5 | |
| | | ||||||
| * | integrate static-executor, cleanup time module. | Dario Nieuwenhuis | 2020-10-19 | 1 | -0/+114 | |
