This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// lptimTick.c -- Jeff Tenney | |
// | |
// STM32 No-Drift FreeRTOS Tick/Tickless via LPTIM | |
// | |
// Example integration and validation: https://github.com/jefftenney/LPTIM-Tick | |
// | |
// Revision: 2021.11.23 | |
// Tabs: None | |
// Columns: 110 | |
// Compiler: gcc (GNU) / armcc (Arm-Keil) / iccarm (IAR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __ERASE_FROM_MEMORY_H__ | |
#define __ERASE_FROM_MEMORY_H__ 1 | |
#define __STDC_WANT_LIB_EXT1__ 1 | |
#include <stdlib.h> | |
#include <string.h> | |
void *erase_from_memory(void *pointer, size_t size_data, size_t size_to_remove) { | |
#ifdef __STDC_LIB_EXT1__ | |
memset_s(pointer, size_data, 0, size_to_remove); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.5) | |
project(LedTest CXX C ASM) | |
add_definitions(-DSTM32F4) | |
add_definitions(-DSTM32F405xx) | |
add_definitions(-DUSE_HAL_DRIVER) | |
# List your application specific source files here, include header files! | |
file(GLOB_RECURSE USER_SOURCES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is the OpenCL page... |
I recently found a nice emacs-mode, [irony-mode], which can be used with [company-mode], [flycheck-mode], and [eldoc-mode]. It works nicely with CMake-based projects. The document contains a list of instructions for setting things up. I assume that you're using a fresh-installed Ubuntu-12.04.5 (64-bit). It uses [Lean theorem prover][lean] as an example project.