Merge commit 'e067fcbe30' as 'stm32f103c8t6-bootloader'
This commit is contained in:
commit
3ca6ea3e9e
34 changed files with 15445 additions and 0 deletions
12
stm32f103c8t6-bootloader/src/ownership.h
Normal file
12
stm32f103c8t6-bootloader/src/ownership.h
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
#define _PASTE(x, y) x ## y
|
||||
#define PASTE(x, y) _PASTE(x, y)
|
||||
|
||||
#define MODULE_OWNS_PERIPHERAL(peripheral) \
|
||||
void *_PERIPHERAL_OWNERSHIP_ ## peripheral \
|
||||
= (void*)(peripheral)
|
||||
|
||||
#define MODULE_OWNS_PIN(gpio, pin) \
|
||||
void *PASTE(_PIN_OWNERSHIP_ ## gpio ## _, pin) \
|
||||
= (void*)(gpio + pin)
|
||||
Loading…
Add table
Add a link
Reference in a new issue