mirror of https://github.com/rusefi/ChibiOS.git
Fixed a couple problems, running fine now.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15763 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
a70d5bdca9
commit
b2c24de257
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16
|
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -O0 -ggdb -fomit-frame-pointer --specs=nano.specs
|
USE_OPT = -O2 -ggdb -fomit-frame-pointer --specs=nano.specs
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
|
|
|
@ -575,7 +575,7 @@
|
||||||
* @note The default is @p FALSE.
|
* @note The default is @p FALSE.
|
||||||
*/
|
*/
|
||||||
#if !defined(CH_DBG_STATISTICS)
|
#if !defined(CH_DBG_STATISTICS)
|
||||||
#define CH_DBG_STATISTICS TRUE
|
#define CH_DBG_STATISTICS FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -586,7 +586,7 @@
|
||||||
* @note The default is @p FALSE.
|
* @note The default is @p FALSE.
|
||||||
*/
|
*/
|
||||||
#if !defined(CH_DBG_SYSTEM_STATE_CHECK)
|
#if !defined(CH_DBG_SYSTEM_STATE_CHECK)
|
||||||
#define CH_DBG_SYSTEM_STATE_CHECK TRUE
|
#define CH_DBG_SYSTEM_STATE_CHECK FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -597,7 +597,7 @@
|
||||||
* @note The default is @p FALSE.
|
* @note The default is @p FALSE.
|
||||||
*/
|
*/
|
||||||
#if !defined(CH_DBG_ENABLE_CHECKS)
|
#if !defined(CH_DBG_ENABLE_CHECKS)
|
||||||
#define CH_DBG_ENABLE_CHECKS TRUE
|
#define CH_DBG_ENABLE_CHECKS FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -609,7 +609,7 @@
|
||||||
* @note The default is @p FALSE.
|
* @note The default is @p FALSE.
|
||||||
*/
|
*/
|
||||||
#if !defined(CH_DBG_ENABLE_ASSERTS)
|
#if !defined(CH_DBG_ENABLE_ASSERTS)
|
||||||
#define CH_DBG_ENABLE_ASSERTS TRUE
|
#define CH_DBG_ENABLE_ASSERTS FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -619,7 +619,7 @@
|
||||||
* @note The default is @p CH_DBG_TRACE_MASK_DISABLED.
|
* @note The default is @p CH_DBG_TRACE_MASK_DISABLED.
|
||||||
*/
|
*/
|
||||||
#if !defined(CH_DBG_TRACE_MASK)
|
#if !defined(CH_DBG_TRACE_MASK)
|
||||||
#define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_ALL
|
#define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -654,7 +654,7 @@
|
||||||
* @note The default is @p FALSE.
|
* @note The default is @p FALSE.
|
||||||
*/
|
*/
|
||||||
#if !defined(CH_DBG_FILL_THREADS)
|
#if !defined(CH_DBG_FILL_THREADS)
|
||||||
#define CH_DBG_FILL_THREADS TRUE
|
#define CH_DBG_FILL_THREADS FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -O0 -ggdb -fomit-frame-pointer --specs=nano.specs
|
USE_OPT = -O2 -ggdb -fomit-frame-pointer --specs=nano.specs
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
.bss
|
.bss
|
||||||
|
|
||||||
.align 2
|
.align 2
|
||||||
.globl __sb_vectors
|
.globl __sb_in_vrq
|
||||||
__sb_in_vrq:
|
__sb_in_vrq:
|
||||||
.ds.l 1
|
.ds.l 1
|
||||||
|
|
||||||
|
|
|
@ -318,7 +318,7 @@ void sio_lld_update_enable_flags(SIODriver *siop) {
|
||||||
*/
|
*/
|
||||||
sioevents_t sio_lld_get_and_clear_errors(SIODriver *siop) {
|
sioevents_t sio_lld_get_and_clear_errors(SIODriver *siop) {
|
||||||
|
|
||||||
__syscall2r(201, SB_VUART_GCERR, siop->nvuart);
|
__syscall2rr(201, SB_VUART_GCERR, siop->nvuart);
|
||||||
osalDbgAssert((msg_t)r0 == HAL_RET_SUCCESS, "unexpected failure");
|
osalDbgAssert((msg_t)r0 == HAL_RET_SUCCESS, "unexpected failure");
|
||||||
|
|
||||||
return (sioevents_t)r1;
|
return (sioevents_t)r1;
|
||||||
|
@ -334,7 +334,7 @@ sioevents_t sio_lld_get_and_clear_errors(SIODriver *siop) {
|
||||||
*/
|
*/
|
||||||
sioevents_t sio_lld_get_and_clear_events(SIODriver *siop) {
|
sioevents_t sio_lld_get_and_clear_events(SIODriver *siop) {
|
||||||
|
|
||||||
__syscall2r(201, SB_VUART_GCEVT, siop->nvuart);
|
__syscall2rr(201, SB_VUART_GCEVT, siop->nvuart);
|
||||||
osalDbgAssert((msg_t)r0 == HAL_RET_SUCCESS, "unexpected failure");
|
osalDbgAssert((msg_t)r0 == HAL_RET_SUCCESS, "unexpected failure");
|
||||||
|
|
||||||
return (sioevents_t)r1;
|
return (sioevents_t)r1;
|
||||||
|
@ -350,7 +350,7 @@ sioevents_t sio_lld_get_and_clear_events(SIODriver *siop) {
|
||||||
*/
|
*/
|
||||||
sioevents_t sio_lld_get_events(SIODriver *siop) {
|
sioevents_t sio_lld_get_events(SIODriver *siop) {
|
||||||
|
|
||||||
__syscall2r(201, SB_VUART_GEVT, siop->nvuart);
|
__syscall2rr(201, SB_VUART_GEVT, siop->nvuart);
|
||||||
osalDbgAssert((msg_t)r0 == HAL_RET_SUCCESS, "unexpected failure");
|
osalDbgAssert((msg_t)r0 == HAL_RET_SUCCESS, "unexpected failure");
|
||||||
|
|
||||||
return (sioevents_t)r1;
|
return (sioevents_t)r1;
|
||||||
|
|
Loading…
Reference in New Issue