'.c' files should now include the header that defines their functions

partial-rewrite
Ben Blazak 2013-06-13 23:41:26 -07:00
parent 559fe97d7e
commit 36edee2eb7
14 changed files with 17 additions and 3 deletions

View File

@ -10,9 +10,9 @@
#include <stdbool.h>
#include <stdint.h>
#include "../../../firmware/keyboard.h"
#include "./controller/mcp23018.h"
#include "./controller/teensy-2-0.h"
#include "../../keyboard.h"
// ----------------------------------------------------------------------------

View File

@ -15,6 +15,7 @@
#include <util/twi.h>
#include "../../../../firmware/keyboard.h"
#include "../../../../firmware/lib/twi.h"
#include "./mcp23018.h"
// ----------------------------------------------------------------------------

View File

@ -16,6 +16,7 @@
#include <util/delay.h>
#include "../../../../firmware/keyboard.h"
#include "../../../../firmware/lib/twi.h"
#include "./teensy-2-0.h"
// ----------------------------------------------------------------------------

View File

@ -14,6 +14,7 @@
#include <stdint.h>
#include <avr/io.h>
#include <util/delay.h>
#include "../../keyboard.h"
// ----------------------------------------------------------------------------

View File

@ -25,7 +25,7 @@
#include <avr/eeprom.h>
#include "../../../../firmware/keyboard.h"
#include "../../../../firmware/lib/eeprom.h"
#include "../eeprom-macro.h" // TODO: add includes like this to all implementation files
#include "../eeprom-macro.h"
// ----------------------------------------------------------------------------

View File

@ -13,6 +13,7 @@
#include <stdint.h>
#include "../../../../firmware/lib/usb.h"
#include "../../../../firmware/lib/usb/usage-page/keyboard.h"
#include "../key-functions.h"
// ----------------------------------------------------------------------------

View File

@ -13,12 +13,13 @@
#include <stdint.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "../../key-functions.h"
// ----------------------------------------------------------------------------
// from PJRC (slightly modified)
// <http://www.pjrc.com/teensy/jump_to_bootloader.html>
void key_functions__jump_to_bootloader (uint16_t ignore) {
void key_functions__jump_to_bootloader(void) {
// --- for all Teensy boards ---
cli();

View File

@ -17,6 +17,7 @@
#include <avr/io.h>
#include "../../../../firmware/lib/data-types/list.h"
#include "../event-list.h"
#include "../../timer.h"
// ----------------------------------------------------------------------------

View File

@ -12,6 +12,7 @@
#include <stdint.h>
#include <stdlib.h>
#include "../../../firmware/lib/data-types/list.h"
#include "./event-list.h"
// ----------------------------------------------------------------------------

View File

@ -13,6 +13,7 @@
#include <stdint.h>
#include "../../../firmware/lib/data-types/list.h"
#include "./event-list.h"
#include "../timer.h"
// ----------------------------------------------------------------------------

View File

@ -24,6 +24,7 @@
#include <util/twi.h>
#include "../twi.h"
// ----------------------------------------------------------------------------

View File

@ -12,6 +12,7 @@
#include <stdbool.h>
#include "./keyboard/from-pjrc/usb_keyboard.h"
#include "../../usb.h"
// ----------------------------------------------------------------------------

View File

@ -12,6 +12,7 @@
#include <stdint.h>
#include "../usage-page/keyboard.h"
#include "./keyboard/from-pjrc/usb_keyboard.h"
#include "../../usb.h"
// ----------------------------------------------------------------------------

View File

@ -14,6 +14,9 @@
- add a note in the docs somewhere that SDA and SCL need to have a pull-up
resistor on them, or `mcp23018__init()` will hang (or something like that)
- add notes to directories, explaining why things are organized the way they
are; specifically, why the directory structure is so deep
## Dependencies
- the gnu avr toolchain
- python 3