Add missing import

This commit is contained in:
Jeremy Soller 2020-02-04 09:46:12 -07:00
parent 81084066df
commit 1aff0b085d
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
3 changed files with 7 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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");
} }