aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2023-05-19 14:14:08 +0000
committerGitHub <[email protected]>2023-05-19 14:14:08 +0000
commit464018e12db16f5926f49cfc8c348baee07f5fa7 (patch)
treea44c2bbe0e948f2d0a4fd5d434419c431d4d9d89 /examples
parent55e4a89819b68a8c3c8e54b50901ac96b08dd710 (diff)
parent4e9ed223a9c489ec75d2d928e26d5a83c2cdf5d4 (diff)
Merge #1463
1463: Allow for an optional user-defined entry macro when targeting RISC-V r=Dirbaio a=jessebraham In [esp-hal](https://github.com/esp-rs/esp-hal) we use our own custom runtime crate, [esp-riscv-rt](https://github.com/esp-rs/esp-riscv-rt). This PR adds the ability to optionally specify an entry macro when using `embassy_executor::main`. The following forms are both accepted: ```rust #[embassy_executor::main] // uses `riscv_rt::entry` by default async fn main() {} #[embassy_executor::main(entry = "esp_riscv_rt::entry")] async fn main() {} ``` I attempted to get this working without needing to quote the entry macro argument, however I was not able to get this working. Based off some reading I did this may not be possible, however I am rather inexperienced with proc macros. Happy to change this if anybody has any insight. Co-authored-by: Jesse Braham <[email protected]>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions