Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into cmsis-5
Browse files Browse the repository at this point in the history
  • Loading branch information
concatime committed Mar 4, 2021
2 parents 5453e72 + 54d7cca commit 64f437e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
21 changes: 10 additions & 11 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
[submodule "vendor/libdw1000"]
path = vendor/libdw1000
url = https://github.com/bitcraze/libdw1000
[submodule "vendor/unity"]
path = vendor/unity
url = https://github.com/throwtheswitch/unity.git
[submodule "vendor/cmock"]
path = vendor/cmock
url = https://github.com/throwtheswitch/cmock.git
[submodule "vendor/CMSIS"]
path = vendor/CMSIS
url = https://github.com/ARM-software/CMSIS_5.git
[submodule "vendor/FreeRTOS"]
path = vendor/FreeRTOS
url = https://github.com/FreeRTOS/FreeRTOS-Kernel
branch = V10.2.1-convergence-FreeRTOS-Source
url = https://github.com/FreeRTOS/FreeRTOS-Kernel.git
[submodule "vendor/cmock"]
path = vendor/cmock
url = https://github.com/throwtheswitch/cmock.git
[submodule "vendor/libdw1000"]
path = vendor/libdw1000
url = https://github.com/bitcraze/libdw1000.git
[submodule "vendor/unity"]
path = vendor/unity
url = https://github.com/throwtheswitch/unity.git
2 changes: 2 additions & 0 deletions src/hal/src/pm_stm32f4.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ void pmTask(void *param)
pmSetChargeState(charge500mA);
systemWaitStart();

systemSetCanFly(true);

while(1)
{
vTaskDelay(100);
Expand Down
4 changes: 2 additions & 2 deletions src/utils/interface/eprintf.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ typedef int (*putc_t)(int c);
* @param[in] ... Parameters to print
* @return the number of character printed
*/
int eprintf(putc_t putcf, char * fmt, ...)
int eprintf(putc_t putcf, const char * fmt, ...)
__attribute__ (( format(printf, 2, 3) ));

/**
Expand All @@ -39,6 +39,6 @@ int eprintf(putc_t putcf, char * fmt, ...)
* @param[in] ap Parameters to print
* @return the number of character printed
*/
int evprintf(putc_t putcf, char * fmt, va_list ap);
int evprintf(putc_t putcf, const char * fmt, va_list ap);

#endif //__EPRINTF_H__
8 changes: 4 additions & 4 deletions src/utils/src/eprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static int itoa16(putc_t putcf, uint64_t num, int width, char padChar)
return len;
}

static int handleLongLong(putc_t putcf, char** fmt, unsigned long long int val, int width, char padChar)
static int handleLongLong(putc_t putcf, const char** fmt, unsigned long long int val, int width, char padChar)
{
int len = 0;

Expand All @@ -176,7 +176,7 @@ static int handleLongLong(putc_t putcf, char** fmt, unsigned long long int val,
return len;
}

static int handleLong(putc_t putcf, char** fmt, unsigned long int val, int width, char padChar)
static int handleLong(putc_t putcf, const char** fmt, unsigned long int val, int width, char padChar)
{
int len = 0;

Expand All @@ -201,7 +201,7 @@ static int handleLong(putc_t putcf, char** fmt, unsigned long int val, int width
return len;
}

int evprintf(putc_t putcf, char * fmt, va_list ap)
int evprintf(putc_t putcf, const char * fmt, va_list ap)
{
int len=0;
float num;
Expand Down Expand Up @@ -305,7 +305,7 @@ int evprintf(putc_t putcf, char * fmt, va_list ap)
return len;
}

int eprintf(putc_t putcf, char * fmt, ...)
int eprintf(putc_t putcf, const char * fmt, ...)
{
va_list ap;
int len;
Expand Down

0 comments on commit 64f437e

Please sign in to comment.