1
0
Fork 0

clang-format changes

This commit is contained in:
skullY 2019-08-30 11:19:03 -07:00 committed by skullydazed
parent 61af76a10d
commit b624f32f94
502 changed files with 32259 additions and 39062 deletions

View file

@ -1,4 +1,3 @@
#include "bootloader.h"
void bootloader_jump(void) {}

View file

@ -1,6 +1,5 @@
#include <stdbool.h>
void suspend_power_down(void) {}
bool suspend_wakeup_condition(void) { return true; }
void suspend_wakeup_init(void) {}

View file

@ -5,37 +5,19 @@
volatile uint32_t timer_count = 0;
/* Timer interrupt handler */
void SysTick_Handler(void) {
timer_count++;
}
void SysTick_Handler(void) { timer_count++; }
void timer_init(void)
{
void timer_init(void) {
timer_count = 0;
SysTick_Config(SystemCoreClock / 1000); /* 1ms tick */
}
void timer_clear(void)
{
timer_count = 0;
}
void timer_clear(void) { timer_count = 0; }
uint16_t timer_read(void)
{
return (uint16_t)(timer_count & 0xFFFF);
}
uint16_t timer_read(void) { return (uint16_t)(timer_count & 0xFFFF); }
uint32_t timer_read32(void)
{
return timer_count;
}
uint32_t timer_read32(void) { return timer_count; }
uint16_t timer_elapsed(uint16_t last)
{
return TIMER_DIFF_16(timer_read(), last);
}
uint16_t timer_elapsed(uint16_t last) { return TIMER_DIFF_16(timer_read(), last); }
uint32_t timer_elapsed32(uint32_t last)
{
return TIMER_DIFF_32(timer_read32(), last);
}
uint32_t timer_elapsed32(uint32_t last) { return TIMER_DIFF_32(timer_read32(), last); }

View file

@ -3,10 +3,9 @@
#include "mbed.h"
#include "mbed/xprintf.h"
#define STRING_STACK_LIMIT 120
#define STRING_STACK_LIMIT 120
//TODO
// TODO
int __xprintf(const char* format, ...) { return 0; }
#if 0

View file

@ -13,5 +13,4 @@ int __xprintf(const char *format, ...);
}
#endif
#endif