Add missing import
This commit is contained in:
parent
81084066df
commit
1aff0b085d
@ -1,3 +1,4 @@
|
|||||||
|
#include <8051.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
@ -45,7 +46,7 @@ static void scratch_start(void) __naked {
|
|||||||
void scratch_trampoline(void) {
|
void scratch_trampoline(void) {
|
||||||
// Uses SCAR0, 1, 2, 3, and 4 which are mapped at 0x0000 in data space and are
|
// Uses SCAR0, 1, 2, 3, and 4 which are mapped at 0x0000 in data space and are
|
||||||
// 4096 bytes in size.
|
// 4096 bytes in size.
|
||||||
|
|
||||||
// Disable interrupts
|
// Disable interrupts
|
||||||
EA = 0;
|
EA = 0;
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <8051.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
@ -45,7 +46,7 @@ static void scratch_start(void) __naked {
|
|||||||
void scratch_trampoline(void) {
|
void scratch_trampoline(void) {
|
||||||
// Uses SCAR0, 1, 2, 3, and 4 which are mapped at 0x0000 in data space and are
|
// Uses SCAR0, 1, 2, 3, and 4 which are mapped at 0x0000 in data space and are
|
||||||
// 4096 bytes in size.
|
// 4096 bytes in size.
|
||||||
|
|
||||||
// Disable interrupts
|
// Disable interrupts
|
||||||
EA = 0;
|
EA = 0;
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <8051.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
@ -29,7 +30,7 @@ static void scratch_start(void) __naked {
|
|||||||
void scratch_trampoline(void) {
|
void scratch_trampoline(void) {
|
||||||
// Uses SCAR0 which is mapped at 0x0000 in data space and are
|
// Uses SCAR0 which is mapped at 0x0000 in data space and are
|
||||||
// 4096 bytes in size.
|
// 4096 bytes in size.
|
||||||
|
|
||||||
// Disable interrupts
|
// Disable interrupts
|
||||||
EA = 0;
|
EA = 0;
|
||||||
|
|
||||||
@ -49,7 +50,7 @@ void scratch_trampoline(void) {
|
|||||||
SCAR0L = 0x00;
|
SCAR0L = 0x00;
|
||||||
SCAR0M = 0x00;
|
SCAR0M = 0x00;
|
||||||
SCAR0H = 0x00;
|
SCAR0H = 0x00;
|
||||||
|
|
||||||
// Jump to reset function
|
// Jump to reset function
|
||||||
__asm__("ljmp 0");
|
__asm__("ljmp 0");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user