1 Star 0 Fork 0

Hell-Prototypes/Hell_Watch_Sport

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
global.c 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
Hell-Prototypes 提交于 2014-09-29 09:01 . add nrf24 files
//*********************************************************************
// Copyright (C) 2014 Hell Prototypes / www.hellprototypes.com
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or (at
// your option) any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
//********************************************************************
#include <avr/io.h>
#include <avr/pgmspace.h>
#include "common.h"
void OLED_Write (uint8_t cmd);
#define OLED_TO_RST() clrbit(PORT_OLED_OUT, PIN_OLED_RST);
byte SP_ReadCalibrationByte(byte location)
{
byte result;
/* Load the NVM Command register to read the calibration row. */
NVM_CMD = NVM_CMD_READ_CALIB_ROW_gc;
result = pgm_read_byte(location);
/* Clean up NVM Command register. */
NVM_CMD = NVM_CMD_NO_OPERATION_gc;
return result;
}
void sys_power_off(void)
{
OLED_TO_RST();
ms_delay(10);
vbat_m_pwr_off();
ms_delay(10);
pwr_lock_free();//LDO off
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/hell-prototypes/Hell_Watch_Sport.git
git@gitee.com:hell-prototypes/Hell_Watch_Sport.git
hell-prototypes
Hell_Watch_Sport
Hell_Watch_Sport
master

搜索帮助