mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-20 17:53:20 +00:00
917410a0a8
* fbt: reworking targets & assets handling WIP * fbt: dist fixes * fbt: moved SD card resources to owning apps * unit_tests: moved resources to app folder * github: updated unit_tests paths * github: packaging fixes * unit_tests: fixes * fbt: assets: internal cleanup * fbt: reworked assets handling * github: unit_tests: reintroducing fixes * minor cleanup * fbt: naming changes to reflect private nature of scons tools * fbt: resources: fixed dist archive paths * docs: updated paths * docs: updated more paths * docs: included "resources" parameter in app manifest docs; updated assets readme * updated gitignore for assets * github: updated action versions * unit_tests: restored timeout; scripts: assets: logging changes * gh: don't upload desktop animations for unit test run Co-authored-by: あく <alleteam@gmail.com>
21 lines
613 B
C
21 lines
613 B
C
#ifndef _STM32_H_
|
|
#define _STM32_H_
|
|
|
|
/* modify bitfield */
|
|
#define _BMD(reg, msk, val) (reg) = (((reg) & ~(msk)) | (val))
|
|
/* set bitfield */
|
|
#define _BST(reg, bits) (reg) = ((reg) | (bits))
|
|
/* clear bitfield */
|
|
#define _BCL(reg, bits) (reg) = ((reg) & ~(bits))
|
|
/* wait until bitfield set */
|
|
#define _WBS(reg, bits) while(((reg) & (bits)) == 0)
|
|
/* wait until bitfield clear */
|
|
#define _WBC(reg, bits) while(((reg) & (bits)) != 0)
|
|
/* wait for bitfield value */
|
|
#define _WVL(reg, msk, val) while(((reg) & (msk)) != (val))
|
|
/* bit value */
|
|
#define _BV(bit) (0x01 << (bit))
|
|
|
|
#include "stm32wbxx.h"
|
|
|
|
#endif // _STM32_H_
|