#![feature(compiler_builtins_lib, lang_items, asm, pointer_methods)]#![no_builtins]#![no_std]externcratecompiler_builtins;pubmodlang_items;constGPIO_BASE:usize=0x3F000000+0x200000;constGPIO_FSEL1:*mutu32=(GPIO_BASE+0x04)as*mutu32;constGPIO_SET0:*mutu32=(GPIO_BASE+0x1C)as*mutu32;constGPIO_CLR0:*mutu32=(GPIO_BASE+0x28)as*mutu32;#[inline(never)]fnspin_sleep_ms(ms:usize){for_in0..(ms*600){unsafe{asm!("nop"::::"volatile");}}}#[no_mangle]pubunsafeextern"C"fnkmain(){// STEP 1: Set GPIO Pin 16 as output.GPIO_FSEL1.write_volatile(1<<18);// STEP 2: Continuously set and clear GPIO 16.loop{GPIO_SET0.write_volatile(1<<16);spin_sleep_ms(1000);GPIO_CLR0.write_volatile(1<<16);spin_sleep_ms(1000);}}
fnblinky(){letmutpin16=Gpio::new(16);letmutpin_out16=pin16.into_output();loop{pin_out16.set();spin_sleep_ms(1000);pin_out16.clear();spin_sleep_ms(1000);}}#[no_mangle]pubextern"C"fnkmain(){// FIXME: Start the shell.blinky();}
# Documentation: https://docs.brew.sh/Formula-Cookbook.html# http://www.rubydoc.info/github/Homebrew/brew/master/Formula# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!classRecoll<Formuladesc"Recoll is a desktop full-text search tool."homepage"https://www.lesbonscomptes.com/recoll/"url"https://www.lesbonscomptes.com/recoll/recoll-1.23.5.tar.gz"sha256"9b6b6941efc3e87c8325e95a69a5d0a37c022c3c45773c71dccd0fb3f364475f"depends_on"xapian"depends_on"qt"depends_on"aspell"definstallinreplace"Makefile.in","-Wl,--no-undefined -Wl,--warn-unresolved-symbols","--no-undefined --warn-unresolved-symbols"system"./configure","--disable-dependency-tracking","--disable-silent-rules","--without-x","--disable-x11mon","--with-aspell","--enable-recollq","--disable-webkit",# requires qtwebkit, which is not bundled with qt5"--prefix=#{prefix}"system"make","install"mkdirlibexecmvbin/"recoll.app",libexec/"recoll.app"endtestdo# `test do` will create, run in and delete a temporary directory.## This test will fail and we won't accept that! For Homebrew/homebrew-core# this will need to be a test that verifies the functionality of the# software. Run the test with `brew test recoll`. Options passed# to `brew install` such as `--HEAD` also need to be provided to `brew test`.## The installed folder is not in the path, so use the entire path to any# executables being tested: `system "#{bin}/program", "do", "something"`.system"false"endend