Common board functionality. More...
#include <hal/uart.h>
#include <lcd.h>
#include <fpga.h>
#include <servo.h>
#include <analog.h>
#include <digital.h>
#include <encoder.h>
#include <motor.h>
#include <buttons.h>
#include <rf.h>
Data Structures | |
struct | BoardConfig |
Functions | |
void | board_init (void) |
This file initializes most of the drivers for the happyboard.
void board_init | ( | void | ) |
Initializes the board. Should not be called by the user. It is run before user code near the beginnning of the JoyOS startup sequence. Specifically:
1) It sets various registers in the ATMega128 for IO, eXternal MEMory, and UART.
2) It loads the FPGA code, board config, checks the battery.
3) It initializes many locks, including those for: uart, digital, encoder, SPI, motor, servo, LCD, ADC, and ISR.
4) It allocates memory for malloc() usage; defaults to having .heap section in external memory (SRAM chip).