mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #1044 from openmv/sthal_inc
Remove STM32_HAL_H from common code.
This commit is contained in:
commit
d0cde1d0f3
@ -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!"
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
@ -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: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user