Merge pull request #1044 from openmv/sthal_inc

Remove STM32_HAL_H from common code.
This commit is contained in:
Ibrahim Abd Elkader 2020-12-19 21:17:37 +02:00 committed by GitHub
commit d0cde1d0f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 5 deletions

View File

@ -40,7 +40,7 @@ char *fb_alloc_stack_pointer()
return pointer; return pointer;
} }
__weak NORETURN void fb_alloc_fail() MP_WEAK NORETURN void fb_alloc_fail()
{ {
nlr_raise(mp_obj_new_exception_msg(&mp_type_MemoryError, nlr_raise(mp_obj_new_exception_msg(&mp_type_MemoryError,
"Out of fast Frame Buffer Stack Memory!" "Out of fast Frame Buffer Stack Memory!"

View File

@ -8,9 +8,9 @@
* *
* Trace buffer. * Trace buffer.
*/ */
#include "trace.h"
#include <stdint.h> #include <stdint.h>
#include STM32_HAL_H #include "cmsis_gcc.h"
#include "trace.h"
#define TRACEBUF_SIZE (256) #define TRACEBUF_SIZE (256)
typedef struct _tracebuf_t { typedef struct _tracebuf_t {

View File

@ -8,11 +8,14 @@
* *
* Basic drawing functions. * Basic drawing functions.
*/ */
#include STM32_HAL_H
#include "dma.h"
#include "font.h" #include "font.h"
#include "imlib.h" #include "imlib.h"
#ifdef IMLIB_ENABLE_DMA2D
#include STM32_HAL_H
#include "dma.h"
#endif
void* imlib_compute_row_ptr(const image_t *img, int y) { void* imlib_compute_row_ptr(const image_t *img, int y) {
switch(img->bpp) { switch(img->bpp) {
case IMAGE_BPP_BINARY: { case IMAGE_BPP_BINARY: {