Commit Graph

159 Commits

Author SHA1 Message Date
patacongo
64142a1ea1 Clean up AVR timer setup
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3692 42af7a65-404d-4744-a932-0658087f49c3
2011-06-10 23:09:23 +00:00
patacongo
4321a2a272 Handle differences between AVR and AVR32 stacks
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3690 42af7a65-404d-4744-a932-0658087f49c3
2011-06-09 21:40:21 +00:00
patacongo
cfe6ed9671 Fixes most integer overflows for AVR
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3689 42af7a65-404d-4744-a932-0658087f49c3
2011-06-09 21:21:29 +00:00
patacongo
db4a213355 This finishes ALL AVR assembly language
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3685 42af7a65-404d-4744-a932-0658087f49c3
2011-06-08 23:30:39 +00:00
patacongo
84f35843f2 More logic for the AVR port
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3684 42af7a65-404d-4744-a932-0658087f49c3
2011-06-08 21:10:47 +00:00
patacongo
9801377f7d More AVR context switching logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3683 42af7a65-404d-4744-a932-0658087f49c3
2011-06-08 18:10:55 +00:00
patacongo
afbfd492af Add basic context switching logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3682 42af7a65-404d-4744-a932-0658087f49c3
2011-06-08 16:22:50 +00:00
patacongo
7bd5768988 First AVR compile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3681 42af7a65-404d-4744-a932-0658087f49c3
2011-06-07 23:37:59 +00:00
patacongo
fef4ba3fcd More AVR build fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3680 42af7a65-404d-4744-a932-0658087f49c3
2011-06-07 23:02:34 +00:00
patacongo
f7ead3cd72 Setting up AVR build environment
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3679 42af7a65-404d-4744-a932-0658087f49c3
2011-06-07 21:09:02 +00:00
patacongo
56d4c4583a Add AT90USB configuration
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3678 42af7a65-404d-4744-a932-0658087f49c3
2011-06-07 19:06:07 +00:00
patacongo
b747fdbe76 Add AT90USB support and AVR vector/startup logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3677 42af7a65-404d-4744-a932-0658087f49c3
2011-06-07 17:15:56 +00:00
patacongo
417683a4a9 Add directory structure for AVR and ATMEGA
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3651 42af7a65-404d-4744-a932-0658087f49c3
2011-05-31 13:41:11 +00:00
patacongo
ea1594a398 Add resource.h and fixed frequently cloned typo
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3642 42af7a65-404d-4744-a932-0658087f49c3
2011-05-24 19:11:47 +00:00
patacongo
33400b311d Add directory structure to support PIC32
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3579 42af7a65-404d-4744-a932-0658087f49c3
2011-05-08 21:38:47 +00:00
patacongo
a98febc6b2 Add kernel mode hooks and reminders for other architectures
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3484 42af7a65-404d-4744-a932-0658087f49c3
2011-04-08 18:42:26 +00:00
patacongo
1001d1f35e Fix AVR build, Add hooks for kernel threads
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3477 42af7a65-404d-4744-a932-0658087f49c3
2011-04-07 01:54:59 +00:00
patacongo
bd12973b36 current_regs should be volatile; add support for nested interrupts; enable interrupts during syscall processing
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3475 42af7a65-404d-4744-a932-0658087f49c3
2011-04-06 23:01:06 +00:00
patacongo
c0e7e4c2ff Remove user_initialize(); Make sure all integer types are signed that need to be
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3474 42af7a65-404d-4744-a932-0658087f49c3
2011-04-06 17:48:56 +00:00
patacongo
0df702514b Pass __KERNEL__ define (or not) to all makes to handle small differences in user-/kernel-builds
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3459 42af7a65-404d-4744-a932-0658087f49c3
2011-04-03 18:42:33 +00:00
patacongo
b76ccc6361 Add basic syscall logic for i486 and AVR32
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3437 42af7a65-404d-4744-a932-0658087f49c3
2011-03-30 00:50:16 +00:00
patacongo
e54aa41778 Add more syscall files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3436 42af7a65-404d-4744-a932-0658087f49c3
2011-03-29 12:35:11 +00:00
patacongo
4d215e34ca Moving toward system call infrastructure
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3435 42af7a65-404d-4744-a932-0658087f49c3
2011-03-29 00:07:02 +00:00
patacongo
eca79de436 Progress debugging serial driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3078 42af7a65-404d-4744-a932-0658087f49c3
2010-11-06 02:42:59 +00:00
patacongo
6c12d52e7a Fix console init link probllem
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3076 42af7a65-404d-4744-a932-0658087f49c3
2010-11-05 04:38:39 +00:00
patacongo
a2ff9013bb The AVR32 port now passes the OS test
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3075 42af7a65-404d-4744-a932-0658087f49c3
2010-11-05 03:48:09 +00:00
patacongo
017ed0b582 Fix excepion handling reg save
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3074 42af7a65-404d-4744-a932-0658087f49c3
2010-11-05 02:18:32 +00:00
patacongo
2b04ad72ee Update some comments
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3073 42af7a65-404d-4744-a932-0658087f49c3
2010-11-05 00:29:37 +00:00
patacongo
eeb7e5a294 Add NSH configuration
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3072 42af7a65-404d-4744-a932-0658087f49c3
2010-11-03 02:01:40 +00:00
patacongo
780464c28d Fixes timer interrupts
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3071 42af7a65-404d-4744-a932-0658087f49c3
2010-11-03 00:38:55 +00:00
patacongo
e977b06239 Need to wait not busy in another place
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3070 42af7a65-404d-4744-a932-0658087f49c3
2010-11-02 12:32:32 +00:00
patacongo
ed36c6caff It took me a long time to figure out that the board has no 32KHz crystal
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3069 42af7a65-404d-4744-a932-0658087f49c3
2010-11-02 03:30:11 +00:00
patacongo
d8d7e07913 Missing quote
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3068 42af7a65-404d-4744-a932-0658087f49c3
2010-10-31 22:46:33 +00:00
patacongo
0e2dce184a comments
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3067 42af7a65-404d-4744-a932-0658087f49c3
2010-10-31 18:03:48 +00:00
patacongo
aefdf9657f Some context switch fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3066 42af7a65-404d-4744-a932-0658087f49c3
2010-10-31 17:08:05 +00:00
patacongo
aae7a25702 Fix heap allocation and RTC not-busy wait
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3065 42af7a65-404d-4744-a932-0658087f49c3
2010-10-31 15:56:47 +00:00
patacongo
1f0b0d223e Basic serial console now works
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3064 42af7a65-404d-4744-a932-0658087f49c3
2010-10-31 14:06:59 +00:00
patacongo
c5da65f014 Debug typo fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3063 42af7a65-404d-4744-a932-0658087f49c3
2010-10-31 01:10:24 +00:00
patacongo
9945bf0356 Fix conditional compilation
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3062 42af7a65-404d-4744-a932-0658087f49c3
2010-10-30 19:17:40 +00:00
patacongo
c2ff2adeae Early debug changes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3061 42af7a65-404d-4744-a932-0658087f49c3
2010-10-30 18:25:10 +00:00
patacongo
2ddd9aa263 Fix big-time naming error -- what was I thinking?
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3058 42af7a65-404d-4744-a932-0658087f49c3
2010-10-30 00:40:53 +00:00
patacongo
30f2743926 Fix a signal trampoline bug
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3053 42af7a65-404d-4744-a932-0658087f49c3
2010-10-27 01:46:08 +00:00
patacongo
baab0da46b Finish clocking logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3040 42af7a65-404d-4744-a932-0658087f49c3
2010-10-18 21:57:10 +00:00
patacongo
6bfb2c9270 Fix compile errors with debug enabled
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3039 42af7a65-404d-4744-a932-0658087f49c3
2010-10-18 16:14:31 +00:00
patacongo
6b9bd4758e Completes USB definitions
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3036 42af7a65-404d-4744-a932-0658087f49c3
2010-10-18 15:13:31 +00:00
patacongo
78a239b4e1 More USB definitions
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3035 42af7a65-404d-4744-a932-0658087f49c3
2010-10-18 14:04:00 +00:00
patacongo
2e09e53c33 More USB definitions
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3034 42af7a65-404d-4744-a932-0658087f49c3
2010-10-17 23:35:55 +00:00
patacongo
df54819b28 More USB definitions
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3033 42af7a65-404d-4744-a932-0658087f49c3
2010-10-17 19:44:54 +00:00
patacongo
09ee213f4e More USB register definitions
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3032 42af7a65-404d-4744-a932-0658087f49c3
2010-10-17 18:54:44 +00:00
patacongo
89916e830f Make irq init function a weak function
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3031 42af7a65-404d-4744-a932-0658087f49c3
2010-10-17 17:41:28 +00:00
patacongo
d872538195 Add button logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3030 42af7a65-404d-4744-a932-0658087f49c3
2010-10-17 17:38:40 +00:00
patacongo
08bc87f9cf Add LED logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3027 42af7a65-404d-4744-a932-0658087f49c3
2010-10-17 00:42:01 +00:00
patacongo
1a0e3e7290 Initial AVR32 task state
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3026 42af7a65-404d-4744-a932-0658087f49c3
2010-10-16 21:26:15 +00:00
patacongo
b18f556344 Finish signal handling
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3025 42af7a65-404d-4744-a932-0658087f49c3
2010-10-16 21:04:20 +00:00
patacongo
32b4ad2e1c Add register dump logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3024 42af7a65-404d-4744-a932-0658087f49c3
2010-10-16 17:00:20 +00:00
patacongo
c7fa3cd716 Add exception handling logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3023 42af7a65-404d-4744-a932-0658087f49c3
2010-10-16 16:30:47 +00:00
patacongo
50cea43ee4 No up_en/disable_irq's
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3022 42af7a65-404d-4744-a932-0658087f49c3
2010-10-16 03:22:24 +00:00
patacongo
a117c6bc8e Add AVR32 system timer
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3021 42af7a65-404d-4744-a932-0658087f49c3
2010-10-16 02:15:50 +00:00
patacongo
d01bbeb562 USB register offsets
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3020 42af7a65-404d-4744-a932-0658087f49c3
2010-10-15 19:15:37 +00:00
patacongo
6a4601776f Finish SSC header file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3019 42af7a65-404d-4744-a932-0658087f49c3
2010-10-15 15:05:30 +00:00
patacongo
4b23c7efa1 Bits low to high
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3018 42af7a65-404d-4744-a932-0658087f49c3
2010-10-15 02:30:47 +00:00
patacongo
0dfbc35804 Partial SSC registers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3017 42af7a65-404d-4744-a932-0658087f49c3
2010-10-15 02:14:34 +00:00
patacongo
1cf064bc91 More context switching logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3016 42af7a65-404d-4744-a932-0658087f49c3
2010-10-15 01:05:15 +00:00
patacongo
6bb878ba15 Add PWM definitions
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3015 42af7a65-404d-4744-a932-0658087f49c3
2010-10-14 20:00:43 +00:00
patacongo
8b303ffc14 Add TC definitions
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3014 42af7a65-404d-4744-a932-0658087f49c3
2010-10-14 18:17:14 +00:00
patacongo
56753c6097 Finish ADC header file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3013 42af7a65-404d-4744-a932-0658087f49c3
2010-10-14 15:42:15 +00:00
patacongo
b8f63cb1c0 Beginning of context switch logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3012 42af7a65-404d-4744-a932-0658087f49c3
2010-10-14 03:24:18 +00:00
patacongo
d81f6e8e32 Memory map clean-up
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3011 42af7a65-404d-4744-a932-0658087f49c3
2010-10-13 22:41:31 +00:00
patacongo
c71832cfcd Add ABDAC header file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3010 42af7a65-404d-4744-a932-0658087f49c3
2010-10-13 22:13:48 +00:00
patacongo
8b359dad68 Add TWI header file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3009 42af7a65-404d-4744-a932-0658087f49c3
2010-10-13 21:42:34 +00:00
patacongo
aed93ecc12 Add SPI header file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3008 42af7a65-404d-4744-a932-0658087f49c3
2010-10-13 15:06:10 +00:00
patacongo
5025461c2a GPIO support/USART GPIO init
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3007 42af7a65-404d-4744-a932-0658087f49c3
2010-10-13 02:45:17 +00:00
patacongo
465010c617 misc
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3006 42af7a65-404d-4744-a932-0658087f49c3
2010-10-12 23:26:49 +00:00
patacongo
26d65d7509 Add PDCA header file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3005 42af7a65-404d-4744-a932-0658087f49c3
2010-10-12 20:41:12 +00:00
patacongo
36cd58b1e8 Add HMATRIX header file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3004 42af7a65-404d-4744-a932-0658087f49c3
2010-10-12 15:48:45 +00:00
patacongo
120c6de8e7 Add PMR0/1 definitions
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3003 42af7a65-404d-4744-a932-0658087f49c3
2010-10-12 04:06:53 +00:00
patacongo
0582c4f80e Need GPIO output driver enable
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3002 42af7a65-404d-4744-a932-0658087f49c3
2010-10-12 04:02:26 +00:00
patacongo
e2dec5cae3 Add pinmux header file framework
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3001 42af7a65-404d-4744-a932-0658087f49c3
2010-10-12 03:22:58 +00:00
patacongo
3b6bbd7839 Add UC3B pin mux info
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3000 42af7a65-404d-4744-a932-0658087f49c3
2010-10-12 02:58:56 +00:00
patacongo
8b2391b33f Add skeleton of GPIO utilities
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2999 42af7a65-404d-4744-a932-0658087f49c3
2010-10-12 01:30:27 +00:00
patacongo
14827eea3e Fix comment
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2998 42af7a65-404d-4744-a932-0658087f49c3
2010-10-12 00:41:33 +00:00
patacongo
a8c944922a Fix comment
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2997 42af7a65-404d-4744-a932-0658087f49c3
2010-10-12 00:41:01 +00:00
patacongo
ed54a9a515 Add GPIO header file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2996 42af7a65-404d-4744-a932-0658087f49c3
2010-10-12 00:39:15 +00:00
patacongo
6a01f12944 Add FLASH header file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2995 42af7a65-404d-4744-a932-0658087f49c3
2010-10-11 22:05:16 +00:00
patacongo
2bb44c6d85 Add EIC header file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2994 42af7a65-404d-4744-a932-0658087f49c3
2010-10-11 14:52:01 +00:00
patacongo
48006e3cf4 Add WDT header file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2993 42af7a65-404d-4744-a932-0658087f49c3
2010-10-11 02:56:03 +00:00
patacongo
a155e6c776 cosmetic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2992 42af7a65-404d-4744-a932-0658087f49c3
2010-10-10 21:18:42 +00:00
patacongo
8e28154c8d More INTC logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2991 42af7a65-404d-4744-a932-0658087f49c3
2010-10-10 17:30:20 +00:00
patacongo
c67ce949f2 Add exception handling basics
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2990 42af7a65-404d-4744-a932-0658087f49c3
2010-10-10 14:57:10 +00:00
patacongo
dc9d27c301 Add stubs for AVR32 IRQ controls
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2988 42af7a65-404d-4744-a932-0658087f49c3
2010-10-09 22:02:25 +00:00
patacongo
c11c3212f0 Add clock initialization logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2985 42af7a65-404d-4744-a932-0658087f49c3
2010-10-09 20:58:50 +00:00
patacongo
93426fdbd0 Finish serial driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2983 42af7a65-404d-4744-a932-0658087f49c3
2010-10-09 17:39:02 +00:00
patacongo
b2aac9211a Add uart init logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2982 42af7a65-404d-4744-a932-0658087f49c3
2010-10-09 02:16:20 +00:00
patacongo
470ddbac2b Add RTC register definitions
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2981 42af7a65-404d-4744-a932-0658087f49c3
2010-10-08 23:18:39 +00:00
patacongo
21238364b8 Add (empty) RTC header file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2980 42af7a65-404d-4744-a932-0658087f49c3
2010-10-08 12:56:52 +00:00
patacongo
a56493267e Add INTC header file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2978 42af7a65-404d-4744-a932-0658087f49c3
2010-10-08 03:17:42 +00:00
patacongo
942855370e Add beginnings of a serial console
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2977 42af7a65-404d-4744-a932-0658087f49c3
2010-10-08 02:21:43 +00:00
patacongo
d1df8ce7e7 typos
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2976 42af7a65-404d-4744-a932-0658087f49c3
2010-10-08 01:38:08 +00:00
patacongo
6ee68e07fe Add skeleton of AVR32 init
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2975 42af7a65-404d-4744-a932-0658087f49c3
2010-10-08 01:34:16 +00:00
patacongo
25c1065882 Add USART bit-fields
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2974 42af7a65-404d-4744-a932-0658087f49c3
2010-10-07 16:01:09 +00:00