-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove needs to change Makefile and tgy.asm for a new board configuration #97
Open
msperl
wants to merge
1
commit into
sim-:master
Choose a base branch
from
msperl:simk-dynamic-board-configs
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,9 +48,20 @@ | |
; | ||
; Simon Kirby <[email protected]> | ||
; | ||
|
||
; the default include when building tgy - the others are handles via make | ||
#if defined(tgy_esc) | ||
#include "m8def.inc" | ||
#include "tgy.inc" ; TowerPro/Turnigy Basic/Plush "type 2" (INT0 PWM) | ||
#endif | ||
|
||
; just in case check for some defines | ||
#if !defined(SREG) || !defined(F_CPU) | ||
#error "No board or CPU is defined" | ||
#endif | ||
|
||
;-- Device ---------------------------------------------------------------- | ||
; | ||
.include "m8def.inc" | ||
; | ||
; 8K Bytes of In-System Self-Programmable Flash | ||
; 512 Bytes EEPROM | ||
|
@@ -80,83 +91,6 @@ | |
; | ||
; The following only works with avra or avrasm2. | ||
; For avrasm32, just comment out all but the include you need. | ||
#if defined(afro_esc) | ||
#include "afro.inc" ; AfroESC (ICP PWM, I2C, UART) | ||
#elif defined(afro2_esc) | ||
#include "afro2.inc" ; AfroESC 2 (ICP PWM, I2C, UART) | ||
#elif defined(afro_hv_esc) | ||
#include "afro_hv.inc" ; AfroESC HV with drivers (ICP PWM, I2C, UART) | ||
#elif defined(afro_nfet_esc) | ||
#include "afro_nfet.inc" ; AfroESC 3 with all nFETs (ICP PWM, I2C, UART) | ||
#elif defined(afro_pr0_esc) | ||
#include "afro_pr0.inc" ; AfroESC prototype rev0 with NCP5911 (ICP PWM) | ||
#elif defined(afro_pr1_esc) | ||
#include "afro_pr1.inc" ; AfroESC prototype rev1 with NCP5911 (ICP PWM) | ||
#elif defined(arctictiger_esc) | ||
#include "arctictiger.inc" ; Arctic Tiger 30A ESC with all nFETs (ICP PWM) | ||
#elif defined(birdie70a_esc) | ||
#include "birdie70a.inc" ; Birdie 70A with all nFETs (INT0 PWM) | ||
#elif defined(mkblctrl1_esc) | ||
#include "mkblctrl1.inc" ; MK BL-Ctrl v1.2 (ICP PWM, I2C, UART, high side PWM, sense hack) | ||
#elif defined(bs_esc) | ||
#include "bs.inc" ; HobbyKing BlueSeries / Mystery (INT0 PWM) | ||
#elif defined(bs_nfet_esc) | ||
#include "bs_nfet.inc" ; HobbyKing BlueSeries / Mystery with all nFETs (INT0 PWM) | ||
#elif defined(bs40a_esc) | ||
#include "bs40a.inc" ; HobbyKing BlueSeries / Mystery 40A (INT0 PWM) | ||
#elif defined(dlu40a_esc) | ||
#include "dlu40a.inc" ; Pulso Advance Plus 40A DLU40A inverted-PWM-opto (INT0 PWM) | ||
#elif defined(dlux_esc) | ||
#include "dlux.inc" ; HobbyKing Dlux Turnigy ESC 20A | ||
#elif defined(diy0_esc) | ||
#include "diy0.inc" ; HobbyKing DIY Open ESC (unreleased rev 0) | ||
#elif defined(dys_nfet_esc) | ||
#include "dys_nfet.inc" ; DYS 30A ESC with all nFETs (ICP PWM, I2C, UART) | ||
#elif defined(hk200a_esc) | ||
#include "hk200a.inc" ; HobbyKing SS Series 190-200A with all nFETs (INT0 PWM) | ||
#elif defined(hm135a_esc) | ||
#include "hm135a.inc" ; Hacker/Jeti Master 135-O-F5B 135A inverted-PWM-opto (INT0 PWM) | ||
#elif defined(hxt200a_esc) | ||
#include "hxt200a.inc" ; HexTronik F3J HXT200A HV ESC (INT0 PWM, I2C, UART) | ||
#elif defined(kda_esc) | ||
#include "kda.inc" ; Keda/Multistar 12A, 20A, 30A (original) (inverted INT0 PWM) | ||
#elif defined(kda_8khz_esc) | ||
#include "kda_8khz.inc" ; Keda/Multistar 30A (early 2014) (inverted INT0 PWM) | ||
#elif defined(kda_nfet_esc) | ||
#include "kda_nfet.inc" ; Keda/Multistar 30A with all nFETs (inverted INT0 PWM) | ||
#elif defined(kda_nfet_ni_esc) | ||
#include "kda_nfet_ni.inc" ; Keda/Multistar/Sunrise ~30A with all nFETs (INT0 PWM) | ||
#elif defined(rb50a_esc) | ||
#include "rb50a.inc" ; Red Brick 50A with all nFETs (INT0 PWM) | ||
#elif defined(rb70a_esc) | ||
#include "rb70a.inc" ; Red Brick 70A with all nFETs (INT0 PWM) | ||
#elif defined(rb70a2_esc) | ||
#include "rb70a2.inc" ; Newer Red Brick 70A with blue pcb and all nFETs (INT0 PWM) | ||
#elif defined(rct50a_esc) | ||
#include "rct50a.inc" ; RCTimer 50A (MLF version) with all nFETs (INT0 PWM) | ||
#elif defined(tbs_esc) | ||
#include "tbs.inc" ; TBS 30A ESC (Team BlackSheep) with all nFETs (ICP PWM, UART) | ||
#elif defined(tbs_hv_esc) | ||
#include "tbs_hv.inc" ; TBS high voltage ESC (Team BlackSheep) with all nFETs (ICP PWM, UART) | ||
#elif defined(tp_esc) | ||
#include "tp.inc" ; TowerPro 25A/HobbyKing 18A "type 1" (INT0 PWM) | ||
#elif defined(tp_8khz_esc) | ||
#include "tp_8khz.inc" ; TowerPro 25A/HobbyKing 18A "type 1" (INT0 PWM) at 8kHz PWM | ||
#elif defined(tp_i2c_esc) | ||
#include "tp_i2c.inc" ; TowerPro 25A/HobbyKing 18A "type 1" (I2C) | ||
#elif defined(tp_nfet_esc) | ||
#include "tp_nfet.inc" ; TowerPro 25A with all nFETs "type 3" (INT0 PWM) | ||
#elif defined(tp70a_esc) | ||
#include "tp70a.inc" ; TowerPro 70A with BL8003 FET drivers (INT0 PWM) | ||
#elif defined(tgy6a_esc) | ||
#include "tgy6a.inc" ; Turnigy Plush 6A (INT0 PWM) | ||
#elif defined(tgy_8mhz_esc) | ||
#include "tgy_8mhz.inc" ; TowerPro/Turnigy Basic/Plush "type 2" w/8MHz oscillator (INT0 PWM) | ||
#elif defined(tgy_esc) | ||
#include "tgy.inc" ; TowerPro/Turnigy Basic/Plush "type 2" (INT0 PWM) | ||
#else | ||
#error "Unrecognized board type." | ||
#endif | ||
|
||
.equ CPU_MHZ = F_CPU / 1000000 | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These comments would be made unnecessary