RTOS refactoring + more AVR removal
This commit is contained in:
@@ -107,10 +107,10 @@ extern "C" void INTERRUPT_xMS_IRQHandler()
|
||||
#endif
|
||||
|
||||
#if (defined(PCBX9E) && !defined(SIMU))
|
||||
const pm_uchar bmp_startup[] PROGMEM = {
|
||||
const pm_uchar bmp_startup[] = {
|
||||
#include "startup.lbm"
|
||||
};
|
||||
const pm_uchar bmp_lock[] PROGMEM = {
|
||||
const pm_uchar bmp_lock[] = {
|
||||
#include "lock.lbm"
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -106,9 +106,6 @@ extern "C" {
|
||||
#define TIMER_MULT_APB1 2
|
||||
#define TIMER_MULT_APB2 2
|
||||
|
||||
#define strcpy_P strcpy
|
||||
#define strcat_P strcat
|
||||
|
||||
extern uint16_t sessionTimer;
|
||||
|
||||
// Board driver
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
/* Lock / unlock functions */
|
||||
/*-----------------------------------------------------------------------*/
|
||||
#if !defined(BOOT)
|
||||
static OS_MutexID ioMutex;
|
||||
static RTOS_MUTEX_HANDLE ioMutex;
|
||||
|
||||
int ff_cre_syncobj (BYTE vol, _SYNC_t *mutex)
|
||||
{
|
||||
@@ -70,12 +70,13 @@ int ff_cre_syncobj (BYTE vol, _SYNC_t *mutex)
|
||||
|
||||
int ff_req_grant (_SYNC_t mutex)
|
||||
{
|
||||
return CoEnterMutexSection(mutex) == E_OK;
|
||||
RTOS_LOCK_MUTEX(mutex);
|
||||
return 1;
|
||||
}
|
||||
|
||||
void ff_rel_grant (_SYNC_t mutex)
|
||||
{
|
||||
CoLeaveMutexSection(mutex);
|
||||
RTOS_UNLOCK_MUTEX(mutex);
|
||||
}
|
||||
|
||||
int ff_del_syncobj (_SYNC_t mutex)
|
||||
|
||||
Reference in New Issue
Block a user