Selaa lähdekoodia

Merge pull request #249 from FrankBoesing/patch-8

Fix some Warnings
teensy4-core
Paul Stoffregen 8 vuotta sitten
vanhempi
commit
c0580c4875
1 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  1. +6
    -1
      teensy3/mk20dx128.c

+ 6
- 1
teensy3/mk20dx128.c Näytä tiedosto

#endif #endif
#endif #endif


#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"

void * _sbrk(int incr) void * _sbrk(int incr)
{ {
char *prev, *stack; char *prev, *stack;
*g = 1; *g = 1;
} }


#pragma GCC diagnostic pop

int nvic_execution_priority(void) int nvic_execution_priority(void)
{ {
int priority=256;
uint32_t priority=256;
uint32_t primask, faultmask, basepri, ipsr; uint32_t primask, faultmask, basepri, ipsr;


// full algorithm in ARM DDI0403D, page B1-639 // full algorithm in ARM DDI0403D, page B1-639

Loading…
Peruuta
Tallenna