Set fan to 100% when in scratch ROM
This commit is contained in:
parent
dc246237c6
commit
ff639a7836
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <board/smfi.h>
|
#include <board/smfi.h>
|
||||||
#include <common/macro.h>
|
#include <common/macro.h>
|
||||||
|
#include <ec/pwm.h>
|
||||||
|
|
||||||
// Include scratch ROM
|
// Include scratch ROM
|
||||||
uint8_t __code __at(SCRATCH_OFFSET) scratch_rom[] = {
|
uint8_t __code __at(SCRATCH_OFFSET) scratch_rom[] = {
|
||||||
@ -16,6 +17,12 @@ volatile uint8_t __xdata __at(0x1045) SCAR1H;
|
|||||||
|
|
||||||
// Enter or exit scratch ROM
|
// Enter or exit scratch ROM
|
||||||
void scratch_trampoline(void) {
|
void scratch_trampoline(void) {
|
||||||
|
// Set fans to 100%
|
||||||
|
DCR2 = 0xFF;
|
||||||
|
|
||||||
|
//TODO: Clear keyboard presses
|
||||||
|
|
||||||
|
// Start watchdog timer
|
||||||
smfi_watchdog();
|
smfi_watchdog();
|
||||||
|
|
||||||
// Disable interrupts
|
// Disable interrupts
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <board/smfi.h>
|
#include <board/smfi.h>
|
||||||
#include <common/macro.h>
|
#include <common/macro.h>
|
||||||
|
#include <ec/pwm.h>
|
||||||
|
|
||||||
// Include scratch ROM
|
// Include scratch ROM
|
||||||
uint8_t __code __at(SCRATCH_OFFSET) scratch_rom[] = {
|
uint8_t __code __at(SCRATCH_OFFSET) scratch_rom[] = {
|
||||||
@ -16,6 +17,12 @@ volatile uint8_t __xdata __at(0x1045) SCAR1H;
|
|||||||
|
|
||||||
// Enter or exit scratch ROM
|
// Enter or exit scratch ROM
|
||||||
void scratch_trampoline(void) {
|
void scratch_trampoline(void) {
|
||||||
|
// Set fans to 100%
|
||||||
|
DCR2 = 0xFF;
|
||||||
|
|
||||||
|
//TODO: Clear keyboard presses
|
||||||
|
|
||||||
|
// Start watchdog timer
|
||||||
smfi_watchdog();
|
smfi_watchdog();
|
||||||
|
|
||||||
// Disable interrupts
|
// Disable interrupts
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <board/smfi.h>
|
#include <board/smfi.h>
|
||||||
#include <common/macro.h>
|
#include <common/macro.h>
|
||||||
|
#include <ec/pwm.h>
|
||||||
|
|
||||||
// Include scratch ROM
|
// Include scratch ROM
|
||||||
uint8_t __code __at(SCRATCH_OFFSET) scratch_rom[] = {
|
uint8_t __code __at(SCRATCH_OFFSET) scratch_rom[] = {
|
||||||
@ -16,6 +17,12 @@ volatile uint8_t __xdata __at(0x1042) SCAR0H;
|
|||||||
|
|
||||||
// Enter or exit scratch ROM
|
// Enter or exit scratch ROM
|
||||||
void scratch_trampoline(void) {
|
void scratch_trampoline(void) {
|
||||||
|
// Set fans to 100%
|
||||||
|
DCR2 = 0xFF;
|
||||||
|
|
||||||
|
//TODO: Clear keyboard presses
|
||||||
|
|
||||||
|
// Start watchdog timer
|
||||||
smfi_watchdog();
|
smfi_watchdog();
|
||||||
|
|
||||||
// Disable interrupts
|
// Disable interrupts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user