NanoPayload

Annotated stage1/stage1.c

18:5d33753dfd71
2015-06-07 Paul Boddie Separated the stages into separate directories in order to employ different compilation options, principally to introduce the object relocation technique apparently required by stage 2.
paul@0 1
/*
paul@0 2
 * Ben NanoNote stage 1 payload test.
paul@0 3
 *
paul@0 4
 * Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk>
paul@0 5
 * Copyright (C) Wolfgang Spraul <wolfgang@sharism.cc>
paul@0 6
 *
paul@0 7
 * This program is free software; you can redistribute it and/or modify it under
paul@0 8
 * the terms of the GNU General Public License as published by the Free Software
paul@0 9
 * Foundation; either version 3 of the License, or (at your option) any later
paul@0 10
 * version.
paul@0 11
 *
paul@0 12
 * This program is distributed in the hope that it will be useful, but WITHOUT
paul@0 13
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
paul@0 14
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
paul@0 15
 * details.
paul@0 16
 *
paul@0 17
 * You should have received a copy of the GNU General Public License along with
paul@0 18
 * this program.  If not, see <http://www.gnu.org/licenses/>.
paul@0 19
 */
paul@0 20
paul@0 21
#include "board-nanonote.h"
paul@0 22
paul@0 23
void c_main(void)
paul@0 24
{
paul@0 25
	load_args();
paul@0 26
	gpio_init();
paul@0 27
	pll_init();
paul@0 28
	sdram_init();
paul@0 29
}