1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 17:25:20 +03:00

Optimisation of driver header files

This commit is contained in:
Martin Budden 2016-08-04 00:55:16 +01:00
parent ca703b1ff1
commit 2cabb9f3a0
100 changed files with 212 additions and 138 deletions

View file

@ -2,6 +2,7 @@
#include "platform.h"
#include "common/utils.h"
#include "rcc_types.h"
enum rcc_reg {
RCC_EMPTY = 0, // make sure that default value (0) does not enable anything
@ -17,9 +18,6 @@ enum rcc_reg {
#define RCC_APB1(periph) RCC_ENCODE(RCC_APB1, RCC_APB1ENR_ ## periph ## EN)
#define RCC_AHB1(periph) RCC_ENCODE(RCC_AHB1, RCC_AHB1ENR_ ## periph ## EN)
typedef uint8_t rccPeriphTag_t;
void RCC_ClockCmd(rccPeriphTag_t periphTag, FunctionalState NewState);
void RCC_ResetCmd(rccPeriphTag_t periphTag, FunctionalState NewState);